Answer:
In Python:
#1
service = input("Enter desired auto service: ")
print("You entered: "+service)
#2
if service.lower() == "oil change":
print("Cost of oil change: $35")
elif service.lower() == "car wash":
print("Cost of car wash: $7")
elif service.lower() == "tire rotation":
print("Cost of tire rotation: $19")
else:
print("Invalid Service")
Explanation:
First, we prompt the user for the auto service
service = input("Enter desired auto service: ")
Next, we print the service entered
print("You entered: "+service)
Next, we check if the service entered is available (irrespective of the sentence case used for input). If yes, the cost of the service is printed.
This is achieved using the following if conditions
For Oil Change
<em>if service.lower() == "oil change":</em>
<em> print("Cost of oil change: $35")</em>
For Car wash
<em>elif service.lower() == "car wash":</em>
<em> print("Cost of car wash: $7")</em>
For Tire rotation
<em>elif service.lower() == "tire rotation":</em>
<em> print("Cost of tire rotation: $19")</em>
Any service different from the above three, is invalid
<em>else:</em>
<em> print("Invalid Service")</em>
<em></em>