programming

posted by .

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.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Math

    please check my answer thanks :) The sales tax is 7% The purchase including sales tax is $676.24 what was tha total amount of sales tax ?
  2. 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 …
  3. 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 …
  4. 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 …
  5. 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 …
  6. 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?
  7. 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 …
  8. 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 …
  9. computer science

    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 …
  10. 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 …

More Similar Questions