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.
Write a program that asks the user for the amount of a purchase. Then, use three functions to perform calculations and d
-
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!