Question: 1 # Type your code here Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in

1 # Type your code here
Run your program as often as you'd like, before submitting for grading. Below,
type any needed input values in the first box, then click Run program and observe
the program's output in the second box.
Enter program input (optional)
If your code requires input values, provide them here.
Program output displayed here4.14 Ch 4 Program: Automobile service invoice
(1) Output a menu of automotive services and the corresponding cost of each service. (2 pts)
Ex
Davy's auto shop services
Oil change =- $40
Tire rotation =- $19
Car wash =- $8
Car wax =- $12
(2) Prompt the user for two services from the menu (2 pts)
Ex
Select first service:
Oil change
select second service:
Car wax
(3) Output an invoice for the services selected. Output the cost for each service and the total cost. (3 pts)
Davy' a auto shop invoice
Service 1: oil change, $40
Service 2: Car wax, $12
Total: $52
(4) Extend the program to allow the user to enter a dash (-), which indicates no service. (3 pts)
Ex
Davy' a auto shop services
Oil change =- $40
Tire rotation =- $19
Car wash -- $8
Car wax =- $12
Select first service:
Tire rotation
select second service:
Davy's auto shop invoice
Service 1: Tire rotation, $19
Service 2: No service
Total: $19
1 # Type your code here Run your program as often

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 Programming Questions!