(1) Output a menu of automotive services and the corresponding cost of each service.

Ex:

Davy's Auto Shop Services
1) Oil change -- $35
2) Tire rotation -- $19
3) Car wash -- $7
4) Car wax -- $12

(2) Prompt the user for two services from the menu by enter the menu item number.

Ex:

Select first service:
1
Select second service:
3

(3) Output an invoice for the services selected. Output the cost for each service and the total cost

Davy's Auto Shop Invoice

Service 1: Oil change, $35
Service 2: Car wax, $12

Total: $47

(4) Extend the program to allow the user to enter a zero, which indicates no service.

Ex:

Davy's Auto Shop Services
1) Oil change -- $35
2) Tire rotation -- $19
3) Car wash -- $7
4) Car wax -- $12

Select first service:
2
Select second service:
0

Davy's Auto Shop Invoice

Service 1: Tire rotation, $19
Service 2: No service

Total: $19
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.