# programming

posted by jee

a sales report. Each record in the file contains a customer's number and name, a sales amount and a tax code. The tax code is to be applied to the sales amount to determine the sales tax due for that sale, as follows:

Tax code Sales tax
0 Tax exempt
1 3%
2 5%

The report is to print a heading 'SALES REPORT', and detail lines listing the customer number, name, sales amount, sales tax and the total amount owing.

Task need to do:

Total amount to match the tax using own creativity and logic.

1. Design algorithm [Note: Pseudocode and Flowchart]

2. Write program and use control structures required

• A DOWHILE loop to control the repetition

• A case structure to calculate the sales tax

Assume that the tax code field has been validated and will only contain a value of 0, 1, or 2.

## Similar Questions

1. ### Computer Programming Design

Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county tax. Assume the state sales tax is 4 percent (.04) and the county tax is 2 percent (.02). The program should …
2. ### Compter programing Design

Design a program that will ask the user to enter the amount of a purchase. The program should the compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should …
3. ### Java Programming

I'm a beginner to Java and I need to know how to do the following: Write a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax …
4. ### Computer Science

Design a program that will ask the user to enter the amount of a purchase. The program should the compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should …
5. ### math

A group of friends went to lunch. The bill, before sales tax and tip, was \$37.50 . A sales tax of 8% was added. The group then tipped 18% on the amount after the sales tax was added. What was the amount, in dollars, of the sales tax?
6. ### programming

Design a program and write program that will read a file of sales records and produce a sales report. Each record in the file contains a customer's number and name, a sales amount and a tax code. The tax code is to be applied to the …
7. ### Programming c++

a sales report. Each record in the file contains a customer's number and name, a sales amount and a tax code. The tax code is to be applied to the sales amount to determine the sales tax due for that sale, as follows: Tax code Sales …
8. ### programming

Write a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should …
9. ### Math

Midtown Antiques collects 2% sales tax on all sales. If total sales including tax are \$1161.87 find the portion that is the tax amount.
10. ### Math

__________ tax is a tax calculated on the subtotal of your bill. Sales *** Credit Income To find just the tax amount of a given subtotal, you would ___________________. multiply by the sum of one and the sales tax rate multiply by …

More Similar Questions