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
liubo4ka [24]
2 years ago
15

4. //Program prompts users for names and quantities for a $2.00 product and displays total for each user until “XXX” is entered

Computers and Technology
1 answer:
igor_vitrenko [27]2 years ago
7 0

The program is an illustration of loops

<h3>What are loops?</h3>

Loops are program statements that are used to perform repeated operations

#This gets the product name

product = input("Product: ")

#This gets the quantity

quantity= float(input("Quantity: "))

#This initializes the total quantity to 0

total = 0

while(product.upper() != "XXX"):

   #This calculates the total price

   total+=price

   #This gets the product name

   product = input("Product: ")

   #This gets the quantity

   quantity= float(input("Quantity: "))

#This prints the total quantity

print(total)

Read more about loops at:

brainly.com/question/6954187

You might be interested in
Drivers must always yield to emergency vehicles traveling
alina1380 [7]

True. Drivers must always yield to emergency vehicles traveling. Emergency vehicles always have the right of way, and other cars on the road need move out of their way when they see them driving with their hazards on. If there are no emergency lights or sirens, then it is okay to treat these vehicles like another vehicle on the road.

4 0
3 years ago
What is the CPU Unit of a computer?
denis-greek [22]

Answer:

The computer's central processing unit (CPU) is the portion of a computer that retrieves and executes instructions. The CPU is essentially the brain of a CAD system. It consists of an arithmetic and logic unit (ALU), a control unit, and various registers.

Explanation:

.

4 0
3 years ago
Read 2 more answers
Which actions changed the look of the following word?
Julli [10]
We need to see the word to know what it looks like to answer your question.
3 0
3 years ago
Read 2 more answers
Which of the following is not one of the most common causes of electrical accidents ?
defon

Cords too long. The cords may be a tripping hazard, but no electrical accident will occur because of it.

7 0
4 years ago
Read 2 more answers
What is a generic phone
Zina [86]

Explanation:

Generic Android Device means the Android devices which does not any specific brand name or they can not be related to any specific class or brand. For ex: Samsung developed Epic 4g Touch Android device but they later removed lot of fancy features and stuffs from it launched with Galaxy S.

3 0
3 years ago
Read 2 more answers
Other questions:
  • In Word, how can you tell when text is selected?
    8·1 answer
  • How can you tell which of the policies in the security options folder have changed settings?
    10·1 answer
  • An employee who interacts with customers regarding the nature of their car problems, rather than actually working on the vehicle
    6·1 answer
  • Click to review the online content. Then answer the question(s) below, using complete sentences. Scroll down to view additional
    14·1 answer
  • A browser is a program that allow
    11·1 answer
  • A ___________ variable is used to add up a set of values. fill in the blank
    8·1 answer
  • Kkkkkkkkkkkkkkkkkk kkkkkkkkkkkkkkkkkkkkkkkkkk
    15·2 answers
  • Please help! i need this very quickly
    13·2 answers
  • Order the numbers (1.1)2, (1.4)10, and (1.5)16 from smallest to largest
    8·1 answer
  • Write a c program that asks the user to enter two numbers. the program should use the conditional operator to determine which nu
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!