Write a program to input a purchase amount and calculate the sales tax and total due

computer science

Description

1. (TCO 2,4, 5, and 8) Write a program to input a purchase amount and calculate the sales tax and total due. The sales tax depends on the county identifying code. Counties with a number less than 15 have a 5% sales tax. The 16–30 codes have a sales tax of 6%. Codes above 30 have a sales tax of 7%. The purchase amount and county code are entered by the user. Use a loop to validate that the county code is between 8 and 40. Display the amount of the sales tax and the total.


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.