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
lbvjy [14]
4 years ago
15

Write a program that calculates the total amount of a meal purchased at a restaurant by a customer. The program should ask the u

ser to input the charges of the food, then calculate the amounts of a 18% tip and 7 % sales tax. Display each of these amounts and total charges.
Computers and Technology
1 answer:
Illusion [34]4 years ago
7 0

Answer:

Python script is given below

Explanation:

charge = float(input('Enter the amount you were charged. $'))

#setting the formula for tip and tax

tip = charge*.18

tax = charge*.07

#printing the values

print('Charge for the food: %.2f' % charge)

print('The tip amount: %.2f' % tip)

print('Tax amount: %.2f' % tax)

print('Total amount: %.2f' % (charge+tip+tax))

You might be interested in
Can someone please tell me what I’m doing wrong ? Please and it’s due on Thursday!!
liberstina [14]

Answer:

Sure. In Unit test 5, it's looking for 1 instead of 0. You are returning 0 instead of 1.

0 requires 1 digit to express it and should therefore return 1.

In line 6, change the 0 to a 1.

8 0
2 years ago
Which type of network topology connects multiple devices to a central device?
Morgarella [4.7K]
Star topology is your answer

6 0
4 years ago
In Excel, ____ is/are used to place worksheet, column, and row titles on a worksheet.
vladimir1956 [14]
In excel, [Text] is used to place worksheet, column and row titles on a worksheet.
In excel you can inset text to make comment, to input words or number and to make title. 
8 0
3 years ago
Which of the following combinations would constitute a vertical merger?
Ksenya-84 [330]

Answer:

D

Explanation:

A vertical merger is when two or more companies merge and are involved at different stages in the supply chain process for a common good or service.  The merger is purposed to increase synchronism, gain more control of the supply chain process, and increase business. Also, it often results in reduced costs and increased productivity and efficiency.

A good example of a vertical merger is a auto manufacturer purchasing a tire company.  A vertical merger  of this sort reduces the cost of tires for the automaker and creates the possibility for expansion of its business by allowing it to supply tires to competing automakers.

6 0
4 years ago
in 1970s British artist harlod Cohen created a computer program that could produce paintings, how did it impact present art
docker41 [41]
The computerization of art meant that certain details and intricacy could be done which previously had been impossible give the limitations of the human body.
6 0
3 years ago
Other questions:
  • Interpersonal skills are extremely important in production management. true or false
    10·1 answer
  • A simple algorithm for handling requests works like this:________ a) all requests users make are stored. b) The elevator priorit
    15·2 answers
  • Sending a employee an email with important criticism represents a problem which communication process
    9·1 answer
  • ¿Por qué es importante generar proyectos innovadores?
    8·1 answer
  • Which of the following demonstrates the proper way to specify a variable-length argument list?
    7·1 answer
  • Can someone please explain this issue to me..?
    12·2 answers
  • It is desirable to provide a degree of __________ __________ among classes so that one class is not adversely affected by anothe
    8·1 answer
  • Write a method named countInRange that accepts three parameters: an ArrayList of integers, a minimum and maximum integer, and re
    6·1 answer
  • What is an algorithm?
    11·1 answer
  • To improve readability and maintainability, you should declare ________ instead of using literal values such as 3.14159.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!