-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex015.py
More file actions
18 lines (16 loc) · 799 Bytes
/
Copy pathex015.py
File metadata and controls
18 lines (16 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
print('Locadora XYZ'.center(50))
marcaCarro = str(input("Informe a marca do carro...: "))
aluguel = int(input("Informe quantidade de dias...: "))
kmRodado = int(input("Informa a quantidade de KM rodado...: "))
valorDiaria = 60.00
valorKmRodado = 0.15
auxValorDiaria = (valorDiaria * aluguel)
auxValorKmRodado = (valorKmRodado * kmRodado)
valorTotalPagarAluguel = (auxValorDiaria + auxValorKmRodado)
print(" ")
print("...:::SAÍDA DE DADOS:::...".center(50))
print('A marca do carro é...: ' + marcaCarro)
print('Total de dias do aluguel...: {}' .format(aluguel))
print('Valor total das diárias...: {:.2f}' .format(auxValorDiaria))
print('Valor total de KM rodado...: {:.2f}' .format(auxValorKmRodado))
print('VALOR TOTAL A PAGAR PELO ALUGUEL DO CARRO...: {:.2f}' .format(valorTotalPagarAluguel))