amount = int(input())
if amount<=0:
print("No change")
else:
dollar = int(amount/100)
amount = amount % 100
quarter = int(amount/25)
amount = amount % 25
dime = int(amount/10)
amount = amount % 10
nickel = int(amount/5)
penny = amount % 5
if dollar >= 1:
if dollar == 1:
print(str(dollar)+" Dollar")
else:
print(str(dollar)+" Dollars")
if quarter >= 1:
if quarter == 1:
print(str(quarter)+" Quarter")
else:
print(str(quarter)+" Quarters")
if dime >= 1:
if dime == 1:
print(str(dime)+" Dime")
else:
print(str(dime)+" Dimes")
if nickel >= 1:
if nickel == 1:
print(str(nickel)+" Nickel")
else:
print(str(nickel)+" Nickels")
if penny >= 1:
if penny == 1:
print(str(penny)+" Penny")
else:
print(str(penny)+" Pennies")
-------------------------------------------------------------------------------
service = input('Enter desired auto service:\n')
print('You entered:', service)
if service == 'Oil change':
print('Cost of oil change: $35')
elif service == 'Tire rotation':
print('Cost of tire rotation: $19')
elif service == 'Car wash':
print('Cost of car wash: $7')
else:
print('Error: Requested service is not recognized')
--------------------------------------------------------------------------------
print("Davy's auto shop services")
print('Oil change -- $35')
print('Tire rotation -- $19')
print('Car wash -- $7')
print('Car wax -- $12')
print()
service1 = input('Select first service:\n')
service2 = input('Select second service:\n')
print()
print("Davy's auto shop invoice")
print()
if service1 == 'Tire rotation':
print('Service 1: Tire rotation, $19')
if service1 == 'Oil change':
print('Service 1: Oil change, $35')
if service1 == 'Car wash':
print('Service 1: Car wash, $7')
if service1 == 'Car wax':
print('Service 1: Car wax, $12')
if service1 == '-':
print('Service 1: No service')
if service2 == 'Tire rotation':
print('Service 2: Tire rotation, $19')
if service2 == 'Oil change':
print('Service 2: Oil change, $35')
if service2 == 'Car wash':
print('Service 2: Car wash, $7')
if service2 == 'Car wax':
print('Service 2: Car wax, $12')
if service2 == '-':
print('Service 2: No service')
print()
if service1 == 'Tire rotation' and (service2 == 'Tire rotation'):
print('Total: $38')
if service1 == 'Oil change' and (service2 == 'Oil change'):
print('Total: $70')
if service1 == 'Car wash' and (service2 == 'Car wash'):
print('Total: $14')
if service1 == 'Car wax' and (service2 == 'Car wax'):
print('Total: $24')
if service1 == '-' and (service2 == '-'):
print('Total: $0')
if service1 == 'Tire rotation' and (service2 == 'Oil change'):
print('Total: $54')
if service1 == 'Tire rotation' and (service2 == 'Car wax'):
print('Total: $31')
if service1 == 'Tire rotation' and (service2 == 'Car wash'):
print('Total: $26')
if service1 == 'Tire rotation' and (service2 == '-'):
print('Total: $19')
if service1 == 'Oil change' and (service2 == 'Car wash'):
print('Total: $42')
if service1 == 'Oil change' and (service2 == 'Car wax'):
print('Total: $47')
if service1 == 'Oil change' and (service2 == '-'):
print('Total: $35')
if service1 == 'Car wash' and (service2 == 'Tire rotation'):
print('Total: $0')
if service1 == 'Car wash' and (service2 == 'Oil change'):
print('Total: $0')
if service1 == 'Car wash' and (service2 == 'Car wax'):
print('Total: $0')
if service1 == 'Car wash' and (service2 == '-'):
print('Total: $7')
if service1 == 'Car wax' and (service2 == 'Tire rotation'):
print('Total: $0')
if service1 == 'Car wax' and (service2 == 'Oil change'):
print('Total: $0')
if service1 == 'Car wax' and (service2 == 'Car wash'):
print('Total: $0')
if service1 == 'Car wax' and (service2 == '-'):
print('Total: $12')
if service1 == '-' and (service2 == 'Tire rotation'):
print('Total: $19')
if service1 == '-' and (service2 == 'Oil change'):
print('Total: $35')
if service1 == '-' and (service2 == 'Car wash'):
print('Total: $7')
if service1 == '-' and (service2 == 'Car wax'):
print('Total: $12')