Question: Are you able to solve this? CSC 372 Program Assignment 1 Program Summar y Write a C++ object-oriented program to manage an I/O process list
Are you able to solve this?
CSC 372 Program Assignment 1
Program Summary
Write a C++ object-oriented program to manage an I/O process list and a ready process list for an operating system. The structure of a process is as follows:
Process id unsigned integer
Process name string
Process running time unsigned integer
The program will manipulate these lists based on the process requirements from the file process.dat
Class requirements
1. Create a process class or struct based on the process structure
2. Create a processes class which contains three private members an array of processes, the size of the array and a function to print the contents of a process. The processes class will also provide the following functionality.
a.Load data from a data file into a process list
b.Retrieve and print a process from a process list
c.Create a process and assign it the given values
d.Insert a process into a process list
e.Delete a process from the process list
f.Print the contents of a process
Processing requirements
1.Load the I/O list from the file io.dat
2.Load the Ready list from the file ready.dat
3.Read through the process file and carry out the given operations
Structure of the files
io.dat process id, process name, process running time
ready.dat process id, process name, process running time
process.dat a) operation code, process id, process name, process running time, list (for operation code i[insert])
b) operation code, process id, list (for operation codes d[delete], r[retrieve])
c) operation code, list (for operation code p[print])
0 represents the i/o list, 1 represents the ready list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
