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
Idea citizen activation
Tatiana [17]
<h2>Answer:</h2><h2>Idea citizen activation badge is a part of the idea silver award and is in the citizen category,helping you learn digital awareness,safety and ethics.</h2>

7 0
4 years ago
Read 2 more answers
How do I insert a row above the selected row in between row and row 2 revenue xls
Scorpion4ik [409]
I believe you go to the the tools selection or just click control alt space 
5 0
3 years ago
The application window controls include: minimize, maximize, and close<br><br> A) true <br> B) false
Arlecino [84]

Answer:

True

Explanation:

Look at the top right of your computer while having a chrome tab open. You will see a line, a box, and a x. Hover over each and you can see the names.

6 0
3 years ago
Toby wants to gain experience in child development. Toby chooses to enter a month-long certificate program after high school and
Stolb23 [73]

the answer is short term goal

4 0
3 years ago
Complete each sentence to describe features of the VLOOKUP function. The VLOOKUP function structure begins with =VLOOKUP( , …) T
fenix001 [56]

Answer:

The complete sentences are:

<em>The VLOOKUP function structure begins with =VLOOKUP(value, table, col_index, [range_lookup])</em>

<em>To use the VLOOKUP function, the lookup value should be in the first column of the table.</em>

<em></em>

Explanation:

Required

Complete the given sentence with the right values

In Excel, the syntax of the VLOOK function is:

<em>=VLOOKUP (value, table, col_index, [range_lookup])</em>

value -> The value to look up to and it should be located in the first column of the table

table -> The table name

col_index -> The column number to check

[range_lookup] -> This is optional and it returns either true of false depending on the result of the query,

6 0
3 years ago
Other questions:
  • What aspect do you need to keep in mind when you add images in a word document?
    11·2 answers
  • Why is Charles de Gaulle significant?​
    9·1 answer
  • Type the correct answer in the blank. Spell all words correctly.
    13·1 answer
  • The software application associated with a specific file type is called a(n) __________ application.
    12·1 answer
  • A computer company has $3840000 in research and development costs. Before accounting for these costs, the net income of the comp
    5·1 answer
  • How do the portrait and landscape page orientations help in the process of printing a worksheet?
    11·1 answer
  • Write a short program that uses a for loop to write the numbers 1 through 10 to a file
    11·1 answer
  • When is the kids choiceee awads?????????????????????????
    12·2 answers
  • Jeremy is working with a team that is creating an application using attributes and associated methods. What type of programming
    8·1 answer
  • Write an algorithm to check whether the given number is divisible by 2,3 and 6 or not​​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!