Write program to input a purchase amount and calculate the


Write 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 8 have a 5% sales tax. The 8-20 codes have a sales tax of 6%. Codes above 20 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 5 and 30. Display the amount of the sales tax and the total.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write program to input a purchase amount and calculate the
Reference No:- TGS02681480

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)