1. Write a Python program to decide who get the Face mask Define a function to calculate your budget named "calBudget()"
Posted: Mon May 09, 2022 6:06 am
1. Write a Python program to decide who get the Face mask Define a function to calculate your budget named "calBudget()" by passing 2 variables to this function that are the number of 100-bath banknotes and 500-bath banknotes. The number of 100-bath banknotes and 500 bath banknotes will input from keyboard Define a function named "getMasko)" to decide whether you get the Face mask. If your total budget is over than 3000, you will get the Face mask. Otherwise, you miss it. Results The number of 100-baht banknote is: 10 The number of 500-baht banknote is: 5 You have totally 3500 baht. You got the Face mask The number of 100-baht banknote is: 2 The number of 500-baht banknote is: 5 You have totally 2700 baht. Your amount is not enough. The number of 100-baht banknote is: 5 The number of 500-baht banknote is: 5 You have totally 3000 baht. Your amount is not enough.