Question: 4 . 1 5 Ch 4 Program: Automobile service invoice ( Python 3 ) ( 1 ) Output a menu of automotive services and the

4.15 Ch 4 Program: Automobile service invoice (Python 3)
(1) Output a menu of automotive services and the corresponding cost of each service. (2 pts)
Ex:
Davy's auto shop services
Oil change -- $35
Tire rotation -- $19
Car wash -- $7
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'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 dash (-), which indicates no service. (3 pts)
Ex:
Davy's auto shop services
Oil change -- $35
Tire rotation -- $19
Car wash -- $7
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

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!