I know you guys don't like it when users post questions like this, but I don't know any easier way. I don't want the answer I just need help getting started.
Purpose:
Implement a program that simulates running generators at a power station based on demand.
Program Description:
The simulated power station has three generators which each have a capacity of 5300 KW. When demand is less than 4500 KW only one generator should be running. When demand is less than 9300 KW only two generators should be running. When a generator must be brought online, the one with the least cumulative operating hours should be selected. When a generator must be taken offline, the one with the most cumulative operating hours should be selected. When more than one generator is running the demand is evenly distributed among them.
Program Requirements:
1. For each generator use a structure to monitor the load and the cumulative running hours.
2. Read the hourly demand on the power station from the provided data file.
3. When each record (hour and demand) is read, determine which generators should be brought online or taken offline, if any. Each time a generator is brought online or taken offline print the hour, demand, and the load and hours for each generator.
4. At the end of the simulation (when the end of the file is reached) print the hour, demand, and load and hours for each generator.
Dear Jennifer, you need to start and look at the problem from an analytical point of view breaking down the problem into objects/components/modules/data flow etc. This is part of your assignment and probably the most difficult part compared to the actual coding. This is the part were you actually will be learning something.
Then once you have a proposal, post it here and we can help you further.
Start by identifying what components are involved, you three generators ok so thats a start. they are of the same model so you could have a class called generator with certain properties etc.