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
SCORPION-xisa [38]
3 years ago
11

Write a cash register program that calculates change for a restaurant of your choice. Your program should include: Ask the user

to input the cost of 3 items purchased by the customer* Tell the user the total cost of the items purchased Ask the user to input the amount paid by the customer Calculate and print the amount of change to be given to the customer
Computers and Technology
1 answer:
eduard3 years ago
4 0

Answer:

Python Code

Explanation:

total = 0.0

change = 0.0

itemone = float(input("Enter the first price: "))

itemtwo = float(input("Enter the second price: "))

itemthree = float(input("Enter the third price: "))

total = itemone + itemtwo + itemthree

print("Total:", total)

cash = float(input("Cash given: "))

change = total - cash

print("Your change:", change)

You might be interested in
How do i recover a google account that was deleted?
Daniel [21]

Answer:

Just change your password

Explanation:

go to google account recovery and put in your old username and password if it has been a long time it might not come back. Or you can just change your password

7 0
3 years ago
Question #2
Viktor [21]

Answer:

The index of 50 is 2.

Explanation:

Index method is sued to return the index of a number or element in a list.

The syntax of using the index method when we have to find the index of a specific element is:

>>>ListName.Index(element)

It has to be remembered that the indexes of a list start from zero.

In the given statements, first a list is created with elements and the second statement will get the index of 50 in the list.

Hence,

The index of 50 is 2.

The next line can be written to display the index of 50 as:

print("The index of 50 is:",my Tuple.index(50))

6 0
3 years ago
(fill in the blank) <br><br> ____ is when data is formatted, transmitted and received in a network.
nadya68 [22]
I think it’s data transmission
3 0
3 years ago
Here we have a program which is calling the subtract function to calculate the difference between two numbers. The value from th
statuscvo [17]

Answer:

See explanation

Explanation:

Given

The above program that subtracts two numbers and returns the result

Required

Modify the source code to run perfectly

When the given program is tested, it displays

<em>4 minus 10 equals -6 </em>

<em></em>

<em>Which is different from the expected output of</em>

<em>10 minus 4 equals 6 </em>

<em></em>

Modify

<em>solution = minuend-subtrahend </em>

<em>to</em>

<em>solution = subtrahend  - minuend</em>

<em></em>

And that does it.

8 0
3 years ago
What should I put on a college application?⊕
gizmo_the_mogwai [7]

Answer:

Student Government. ...

Academic Teams and Clubs. ...

The Debate Team. ...

The Arts. ...

Internships. ...

Culture Clubs. ...

Volunteer Work and Community Service. ...

The Student Newspaper.

Explanation:

8 0
4 years ago
Other questions:
  • The default primary key for an access database is the id field true or falser
    7·1 answer
  •                                                        HELP PLEASE 
    12·2 answers
  • In networking, what addressing type is used in sending an email to someone?
    6·1 answer
  • If you're able to understand directions more easily when you hear them instead of reading them you are most likely
    12·1 answer
  • Analyze the following network traffic logs depicting communications between Computer1 and Computer2 on opposite sides of a route
    12·1 answer
  • Your computer is taking longer than usual to open files and you notice that your hard drive light stays on longer than usual. wh
    5·2 answers
  • Help please appreciate it
    15·1 answer
  • An anagram of a string is another string with the same characters in the same frequency, in any order. For example 'ab', 'bca, a
    5·1 answer
  • Which wireless technology will John use to provide wide-range cellular service that focuses on indoor coverage, low cost, long b
    13·1 answer
  • A computer is the __________ of an attack when it is used to conduct an attack against another computer.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!