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
after teaching a group of students about measuring systems and drug calculations, the instructor determines that the teaching wa
dusya [7]
  • After teaching a group of students about drug measurement and calculation systems, the instructor determines that teaching is successful when students can identify which metric system is the most widely used system.

  • The metric system is a measurement system for something that is done in a study and calculation. An example of a metric system is the meter used to measure length, grams to measure weight, milliliters to measure volume.

  • In this case, we can take an example from the application of the metric system in the world of health. A nurse uses the metric system to calculate doses and uses the liter as the base unit for measuring fluids.

Learn more about Metric System here brainly.com/question/1764307

#SPJ1

7 0
1 year ago
On a network, which protocol is responsible for dividing files into chunks, adding headers containing information for reassembli
andrew11 [14]

Answer:

TCP

Explanation:

TCP (Transmission Control Protocol) is a standard that defines how to establish and maintain a network conversation through which application programs can exchange data. TCP works with the Internet Protocol (IP), which defines how computers send packets of data to each other.

4 0
3 years ago
For all those among our fans and SpongeBob fans which is better SpongeBob or amount us
Ivenika [448]

Answer:

!!!!SPONGEBOB!!! XD

Explanation:

5 0
3 years ago
Read 2 more answers
Explain the correct ways of using keyboard. .​
Naily [24]

Answer:

https://www.digitalunite.com/technology-guides/computer-basics/using-computer/how-use-computer-keyboard

Explanation:

the link at the top should explain it all! :)

7 0
3 years ago
Please help I need help with web technology I forgot to post the question in the last one. here it is tho.
Vitek1552 [10]

Answer:

basically search tag <img>

Explanation:

<img src="image.gif" alt="MyImage">

3 0
3 years ago
Other questions:
  • Write a C++ program that searches for anagrams in a dictionary. An anagram is a word obtained by scrambling the letters of some
    5·1 answer
  • What is the software called that allows the user to create, access, and manage a database? question 8 options:
    10·1 answer
  • How is a computer component, such as a network card, commonly marked for identification?
    12·1 answer
  • How does the access point know whether a wireless data packet is intended for its network?
    14·1 answer
  • HELP ASAP U GET BRAINLIEST
    15·2 answers
  • In order for Dr. Reynolds to send a CPOE from her office computer system to the computer system at the local hospital, a/an ____
    5·1 answer
  • Which two encryption protocols might be used to provide secure transmissions for browser and web server communications?
    14·1 answer
  • What is WEB 1.0 to WEB3.0
    11·1 answer
  • A location in memory which stores a value, the value can change as the program is running is
    12·1 answer
  • Define management styles
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!