Write a program that asks the user for the amount of a purchase. Then, use three functions to perform calculations and d

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

Write a program that asks the user for the amount of a purchase. Then, use three functions to perform calculations and d

Post by answerhappygod »

Write a program that asks the user for the amount of a purchase.
Then, use three functions to perform calculations and display
values:
○ calcStateTax: Calculates and returns the state tax (5%)
of a provided purchase.
○ calcCountyTax: Calculates and returns the county tax
(2.5%) of a provided purchase.
○ displayPurchase: Given a price, it displays the purchase
price, the state sales tax, the county sales tax, the total sales
tax, and the total of the sale (purchase price + total sales
tax)
● Your main function will ask for the price, then call
displayPurchase, which will be responsible for getting the state
and county taxes.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply