1. Write a Python program to decide who get the Face mask Define a function to calculate your budget named "calBudget()"

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

1. Write a Python program to decide who get the Face mask Define a function to calculate your budget named "calBudget()"

Post by answerhappygod »

1 Write A Python Program To Decide Who Get The Face Mask Define A Function To Calculate Your Budget Named Calbudget 1
1 Write A Python Program To Decide Who Get The Face Mask Define A Function To Calculate Your Budget Named Calbudget 1 (48.43 KiB) Viewed 25 times
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply