1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
irga5000 [103]
3 years ago
12

Write out an algorithm where you know the cost of an item, the state tax rate on it; the federal tax rate on it; and the money a

customer gives you. Write out steps and formulas it takes to solve You will calculate and output to the customer the change you will to give them.
Computers and Technology
1 answer:
Dmitry_Shevchenko [17]3 years ago
8 0

Answer:

Algorithm:

1. Declare variables "cost","state_tax" and "federal_tax".

2.Initialize these variables.

3.Create a variable "cust_money".

   3.1 Ask user to give money.

   3.2 Assign this to "cust_money".

4. Calculate total_tax=state_tax+federal_tax

   4.1 Calculate total_to_be_paid=cost(1+total_tax)

5. Calculate change_to_give= cust_money-total_to_be_paid

6.Print the change_to_give

7. End the program.

Explanation:

Declare variables and initialize "cost"  with initial cost of item, "state_tax" with  state tax and "federal_tax"  with federal tax on the item. Ask user to give money and assign it  to "cust_money". calculate the total tax=state+federal tax. Then calculate the total to be paid for item as cost*(1+total tax). Subtract the total paid from customer money and print the change to give user.

You might be interested in
Which of these is one of the primary concerns for protecting your family when online?
Lady_Fox [76]
Sharing personal information
7 0
3 years ago
Read 2 more answers
Who plays Rblx?? What do yall play?
djyliett [7]

Answer:

i play rblx

Explanation:

queenloveadriana (main acc)

AdiosLoca (alt)

Azazel_Iblis (the acc I'll use for my YT channel)

I also play Fn, CofD, Destiny, 2k, Mortal Combat, but my PS4 broke and I'm waiting to get my PS5 that I ordered        

8 0
3 years ago
Read 2 more answers
What component has the job of managing data as it flows into and out of the places it needs to go?
kompoz [17]
Memory controller. ......
3 0
4 years ago
Read 2 more answers
To make the most informed purchasing decision, you should:
musickatia [10]

Answer:

its either A or B but im leaning more towards B

Explanation:

6 0
2 years ago
A user calls the help desk and reports that the workstation, when powering up, displays error messages about an invalid system d
Nutka1998 [239]

Answer:

Option (A) is the right answer.

Explanation:

According to the scenario, the system is giving error of invalid boot disk when booting, which shows that the system is unable to detect the hard drive used to boot the system.

MBR / GPT is the partition format, which contains the coding which is useful in booting the system. some times the partition files, which contain the coding to boot system corrupts which results in giving an error message of invalid boot disk while booting the system.

Hence the most appropriate answer is option (A).

While the other options are wrong because of the following reasons :

  • If the boot system fails to start, it can not give the error of invalid boot disk.
  • If the operating system files corrupt it gives the error of missing file.
  • The device driver can not affect the booting system of the workstation.
5 0
4 years ago
Other questions:
  • Does anyone know a NC wise owl password I can use, it's an emergency!! I can't ask my school because they are closed and I need
    12·1 answer
  • What file type starts at offset 0 with a hexidecimal value of ffd8?​?
    6·1 answer
  • Suppose sum and num are int variables, and the input is 18 25 61 6 -1
    11·2 answers
  • Given positive integer num_insects, write a while loop that prints that number doubled up to, but without exceeding 100. Follow
    8·1 answer
  • Digital data is _____ and analog information is _____.
    5·1 answer
  • Is anyone good with auto Cad?
    7·1 answer
  • Describe conductors and insulators in terms of energy
    11·1 answer
  • Which behavior demonstrates teamwork
    8·2 answers
  • Who first demonstrated the computer mouse?
    11·1 answer
  • Identify the true statements about the approach to privacy around the world. a. Uncertainty concerning the nature, extent, and v
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!