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
marin [14]
4 years ago
8

Write a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county s

ales tax. Assume the state sales tax is 5 percent and the county sales tax is 2.5 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax). Hint: Use the value 0.025 to represent 2.5 percent, and 0.05 to represent 5 percent. Miles-per-Gallon
Computers and Technology
1 answer:
iVinArrow [24]4 years ago
7 0

Answer:

purchase_amount = float(input("Enter the amount of a purchase: "))

state_sales_tax = purchase_amount * 0.05

country_sales_tax = purchase_amount * 0.025

print("The amount of the purchase is " + str(purchase_amount))

print("The state sales tax is " + str(state_sales_tax))

print("The county sales tax is " + str(country_sales_tax))

print("The total sales tax is " + str(state_sales_tax + country_sales_tax))

print("The total of the sale is " + str(purchase_amount + state_sales_tax + country_sales_tax))

Explanation:

*The code is in Python.

Ask the user to enter purchase amount

Calculate the state sales tax, multiply purchase amount by 0.05

Calculate the county sales tax, multiply purchase amount by 0.025

Calculate the total sales tax, sum the state sales tax and county sales tax

Print the amount of the purchase, state sales tax, county sales tax, total sales tax and  total of the sale

You might be interested in
Please help with this question​
babunello [35]

Answer:

whats the problem/question?

Explanation:

8 0
3 years ago
How many bits are used to direct traffic to specific services running on a networked computer?
Mars2501 [29]

Answer:

The correct answer is 16 bit.

Explanation:  

The main role of the transport layer provided the communication channel of the process which are running in a different host. When the information flows there is always traffic that is arisen but the transport layer aimed is that process will go at the correct node and received at the proper destination. The 16-bit number specifies that the process or node is running in the networked traffic.

3 0
4 years ago
What is the difference between asking a question with few points and asking a question with many? New to Brainly :D
ANTONII [103]

Answer:

one would be more helpful and the other more vague and less convincing.

6 0
3 years ago
What’s a device that uses the measurement of a BIT?
Akimi4 [234]
A computer uses BIT. Hope this helps
5 0
3 years ago
Write a program that utilizes a loop to read a set of five floating-point values from user input. Ask the user to enter the valu
rjkz [21]

Answer:

Python code is given below

Explanation:

# create an empty array

arr = []

# loop 5 times

for i in range( 0 , 5 ):

   x = float(input('Enter a number : '))

   # add x to arr

   arr.append( x )

sum = 0

# find the sum of all elements in arr

for x in arr:

   sum += x

# calculate average

average = sum / len(arr)

print('\n%15s %15s\n' %('Original Value' , 'Interest Value'))

for Original_value in arr:

   # calculate interesr value

   Interest_Value = Original_value * 0.2

   print('%10f %15f' %( Original_value , Interest_Value ))

print('\nTotal :', sum)

print('Average :', average)

print('Maximum :', max(arr))

print('Miniimum :', min(arr))

3 0
4 years ago
Other questions:
  • You need to put cabling for connecting two new computers in a room, which did not have any network infrastructure. Because of th
    9·2 answers
  • write a c++program that allows the user to enter the last names of fivecandidates in a local election and the number of votes re
    15·1 answer
  • How to find something in the cloud?
    8·1 answer
  • What is the most common drive letter where window stores most data and programs. 1,a 2,b 3,c 4,e
    9·1 answer
  • An attacker compromises the Washington Post's web server and proceeds to modify the homepage slightly by inserting a 1x1 pixel i
    12·1 answer
  • What properties make it suitable to be used for supportive frames
    15·1 answer
  • These statements describe a network server.
    5·1 answer
  • In a sport like baseball, which of the following could be considered a “rule”?
    12·1 answer
  • Raman will perform in pune tomorrow(simple past)​
    11·2 answers
  • Explain how to create a constant variable. Give an example of creating a speed constant that does not include a decimal.
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!