Damus
November 17th, 2003, 10:27 AM
Hello everyone,
I need alot of help for my latest assigment, which has 3 tasks. It goes like this...
1 File Handling, Array Manipulations, Class, Exception Handling
Design and implement a program that helps a hospital analyse the flow of patients into the emergency room. An input file contains integers that represent the number of patients that entered the emergency room during each hour of each day for four weeks. Read the information and store it in a three-dimensional array. Then analyse the data to:
Obtain the total number of patients who have attended the emergency room over the four-week period.
Identify the week with the largest number of patients.
Identify the busiest four days within the four week period.
Identify the hour in which there were the least number of patients over the four-week period.
2 Class, Data Structures, Exception Handling
Develop a C++ Class which implements a queue data structure. It is assumed that a 20-element character array is used to implement this queue. Moreover, when a user types the letter ‘j’ a customer joins the queue and when a user types the letter ‘s’ a customer leaves the queue to receive service. Use the class feature of C++ to simulate the queue operation.
3 Class, Inheritance, Polymorphism
Develop a library borrowing system. A library may be represented as an array of objects of class book. A librarian must be able to:
Add a new book to the library.
Remove a book from the library.
Search for a specified book
List books on a given subject or author in an alphabetical order.
There is assumed to be a base class library. There will be three derived classes named: books, journals and videos. The previous operations of the earlier program (book class implemented in section a) are to be made available to all the derived classes. It is left to your judgment as to what additional operations are appropriate in each case. Obviously, more information may be obtained from the library.
I need alot of help for my latest assigment, which has 3 tasks. It goes like this...
1 File Handling, Array Manipulations, Class, Exception Handling
Design and implement a program that helps a hospital analyse the flow of patients into the emergency room. An input file contains integers that represent the number of patients that entered the emergency room during each hour of each day for four weeks. Read the information and store it in a three-dimensional array. Then analyse the data to:
Obtain the total number of patients who have attended the emergency room over the four-week period.
Identify the week with the largest number of patients.
Identify the busiest four days within the four week period.
Identify the hour in which there were the least number of patients over the four-week period.
2 Class, Data Structures, Exception Handling
Develop a C++ Class which implements a queue data structure. It is assumed that a 20-element character array is used to implement this queue. Moreover, when a user types the letter ‘j’ a customer joins the queue and when a user types the letter ‘s’ a customer leaves the queue to receive service. Use the class feature of C++ to simulate the queue operation.
3 Class, Inheritance, Polymorphism
Develop a library borrowing system. A library may be represented as an array of objects of class book. A librarian must be able to:
Add a new book to the library.
Remove a book from the library.
Search for a specified book
List books on a given subject or author in an alphabetical order.
There is assumed to be a base class library. There will be three derived classes named: books, journals and videos. The previous operations of the earlier program (book class implemented in section a) are to be made available to all the derived classes. It is left to your judgment as to what additional operations are appropriate in each case. Obviously, more information may be obtained from the library.