بســم الله الـرحمــن الرحيــم
السلام عليكــم ورحمـة الله وبركاتــه
اخواني واخواتي اعضاء المنتدى هذه اول مشاركه لي في المندى وإن شاء الله ما تكون الاخيره
بليييييز مطلوب مني برنامج اعمله بالسي بلس بلس
وانا ما اعرف اشتغل في هذا البرنامج وابغى مساعدتكم لو سمحتو
ولكم مني الدعاء بظهر الغيب
والمطلوب هو
Write a program in C++ version.6 code to compute the finish time of set of jobs run in multiprogramming system where:
§ The average I/O waiting time is 80%.
§ CPU use round-robin scheduling.
Do the following:
- Declare the following as global constants:
- N è number of jobs
- M è 3 [three columns for: arrival time (hours),arrival time (minutes), processing time]
- Declare the following variable as global variables:
- job è 2-dimension array (N*M) contains the jobs' data
Program Input:
No input from user. All needed values will be declared as global variables and initialized inside the program.
Const int n =4; //number of jobs
Const int m= 3; //number of array's columns
// values of job array
float job[n][m]= { {10,0,4},
{10,10,3},
{10,15,2},
{10,20,2}};
Important Note:
You must try all possible values & check your results.
Program Output:
The program must display the finish time of each job.
Output format:
JOB ARRIVAL PROCESSING FINISH
TIME TIME (Min.) TIME
==== ======== ======== ========
J1 10:00 4 10:22
J2 10:10 3 10:28.2
J3 10:15 2 10:27.6
J4 10:20 2 10:31.7
=======================================================
شكراااا جزيلاً
