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
Sergeu [11.5K]
3 years ago
5

Write a program that will askthe user to enter the amount of a purchase. The program should thencompute the state and county sal

es tax. Assume the state sales tax is4 percent and the county sales tax is 2 percent. The program should displaythe amount of the purchase, the state tax, the county sales tax, the total salestax, and the total of the sale. (which is the sum of theamount of purchase plus the total sales tax). Hint: Use the value 0.02 torepresent 2 percent, and 0.04 to represent 4 percent.
Computers and Technology
1 answer:
grin007 [14]3 years ago
7 0

Info:

I am doing it in Python. Hope it will help you.

Code:

am = float(input('Enter the amount: '))

stx = (am*0.04)

slt= (am*0.02)

tl = stx+slt+stx

print(f'Sales Tax: {slt}, State Tax: {stx}, Grand Total: {tl}')

Result:

Enter the amount: 15

Sales Tax: 0.3, State Tax: 0.6, Grand Total: 1.5

You might be interested in
Which professional can film projects hire as part of their budgeted costs? You can hire special ____ lawyers and include their f
gregori [183]
This is clearly A it is not that hard
3 0
3 years ago
What is it called when a user makes a typing error when entering a url that takes him to an imposter website?
Shtirlitz [24]
It’s called a typo squatting
6 0
3 years ago
Write down the functions of network layer in your own words.ASAP pleaseeeeeee
Dima020 [189]

Answer:

The network layer is the layer is the layer 3 of the seven layer Open System Interconnect (OSI model) which functions as packet forwarder for the  intermediate routers  by implementing technologies used for switching that provides virtual circuits' logical path

The function of the network layer includes;

1) Routing and forwarding of packets to destination which enables connectionless communication

2) Enabling internetworking

3) Hierarchical host (IP) addressing

4) Sequencing of packets

5) Handling of errors

6) Control of network congestion to prevent the collapse of the network

Explanation:

7 0
3 years ago
What is the default zoom percentage in Word?<br><br> 50%<br> 100%<br> 150%<br> 200%
Hunter-Best [27]

Answer:

its 100%

Explanation:

5 0
3 years ago
Read 2 more answers
What is IBM compadibles
mixer [17]

Answer:

IBM PC compatible computers are computers similar to the original IBM PC, XT, and AT that are able to use the same software and expansion cards. Such computers were referred to as PC clones, or IBM clones

8 0
4 years ago
Other questions:
  • Do we have to use intersection?
    6·1 answer
  • What is the main function of the motherboard?
    12·1 answer
  • How do i change my Email in brainly ? ​
    7·2 answers
  • The Many–Hands Problem makes it difficult to determine who should be held accountable for mistakes since:
    7·1 answer
  • How many times will an infinite loop repeat?
    9·1 answer
  • Name the box where the name of the first cell of the selected range appears?
    7·1 answer
  • What is a Web server application?
    7·1 answer
  • List out the input and output device .​
    7·2 answers
  • Spreadsheets will be displayed as tables in presentations. True or False?
    10·2 answers
  • Which of these agents of education empowers the other..........
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!