Question: A small factory generates its own power with a 4 0 - kilowatt generator and an 8 0 - kilowatt generator. The plant manager indicates

A small factory generates its own power with a 40-kilowatt generator and an 80-kilowatt generator. The plant manager indicates which generator is required by typing a character code. Write a C++ program that uses the switch statement to accept this code as input. If code L is typed, a message directing the plant foreman to use the larger generator should be displayed, otherwise, a message directing use of the smaller generator should be displayed. Submit code with two sample runs, one for each option, and upload the .cpp file.
 A small factory generates its own power with a 40-kilowatt generator

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!