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
Stels [109]
3 years ago
6

Write a program that reads the subtotal and the gratuity rate, then computes the gratuity and total. For example, if the user en

ters 10 for subtotal and 15% for gratuity rate, the program displays $1.5 as gratuity and $11.5 as total.
Computers and Technology
1 answer:
guajiro [1.7K]3 years ago
6 0

Answer:

subtotal = float(input("Subtotal: "))

gratuity_rate = float(input("Gratuity Rate: "))

gratuity = subtotal * gratuity_rate / 100

total = subtotal + gratuity

print("Gratuity is $" + str(gratuity))

print("Total is $" + str(total))

Explanation:

*The code is in Python.

Ask the user to enter subtotal and gratuity_rate

Calculate the gratuity, multiply subtotal and gratuity_rate and divide the result by 100

Calculate the total, sum the subtotal and gratuity

Print the gratuity and total

You might be interested in
4.5 code practice edhesive
Bezzdna [24]

Answer:

n= input("Please enter the next word: ")

x=1

while(n != "STOP"):

 print("#" + str(x) + ": You entered " + n)

  x=x+1

  n= input("Please enter the next word: ")

print("All done. " + str(x-1) + " words entered.")

Explanation:

8 0
3 years ago
Which of the following software programs provides for e-mail communication?
Mila [183]
Outlook is a software program that provides for e-mail communication
8 0
3 years ago
You work as a network technician for uCertify Inc. You have erased data saved in your laptop. You still have many device configu
zloy xaker [14]

Answer:

Data remanence

Explanation:

Data remanence is the retention of erased data on a magnetic medium. Sensitive detection systems can pick up the residue (remnants) from previously recorded data even though the area has been rewritten.

This is not a simple procedure; however, it is employed if the <u>missing information</u> is related to national defense or some other critical situation

7 0
4 years ago
Inserting a new value in the middle of a singly lnked list requires changing the pinter of the list node that follows the new no
lukranit [14]

Answer:

A.) True

Explanation:

Inserting a new value in the middle of a singly lnked list requires changing the pinter of the list node that follows the new node.

8 0
3 years ago
It is possible to make the document larger for viewing small text. <br> True or False
kirill [66]
I believe your answer is true
5 0
4 years ago
Read 2 more answers
Other questions:
  • An attacker watches people as they enter a building requiring a key card. He waits until he sees someone who appears to be in a
    7·1 answer
  • What command launches the remote desktop client for windows?
    12·1 answer
  • What are the examples of personal computers ?
    8·1 answer
  • Workstation control standards institute security requirements to harden end user devices. For example, a Malicious Code Protecti
    10·1 answer
  • Climax Medical Technology, a fast-growing global research firm, has accumulated so much client information that conventional dat
    15·1 answer
  • Matt is a senior developer for Cyber Protect, a company that helps secure management information systems. Matt's new task is to
    8·1 answer
  • Designing a mouse to fit well in your hand would demonstrate ..?
    14·2 answers
  • Write a program that gets a list of integers from a user. First, the user should be asked to enter the number of integers to be
    5·1 answer
  • Is it bad to leave your laptop plugged in all the time
    13·1 answer
  • Write the program of while loop .<br>​
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!