Answer to Question #173184 in Python for Ifer Jhen Ayap

Question #173184

Create a program that will accept number of passengers and distance from point of origin to destination. Calculate the expense of the passenger if the fare is P20.00 per kilometer.


1
Expert's answer
2021-03-18T23:44:42-0400
ps = int(input('Number of passengers: '))
ds = int(input('Distance from point of origin to destination: '))

print('Expense: P', ps * ds)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS