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
A wireless (radio) transmission of data can only travel a short distance.<br><br> True or false?
timofeeve [1]

I believe this is false as some radio waves can travel beyond our solar system

7 0
2 years ago
Quiero saber que tipo de gama es mi laptop (gama baja, media, o alta)
nalin [4]

Answer:

I think the answer would be 60x something but I'm not for sure

8 0
2 years ago
If you sort a portion of an Excel sheet and you get an error message such as #DIV/0, what is a likely cause of the error message
yulyashka [42]
<span>If you sort a portion of an Excel sheet and you get an error message such as #DIV/0, the cause of the error message is (B) one or more cells containing absolute cell references. The possible reason of this error message includes: (1) e</span><span>ntering division formula that divided by zero (0), (2) and that is being used as a reference.</span>
7 0
3 years ago
Question 1<br> a node is.<br> •a sever<br> A Cell Phone<br> A Laptop<br> a device on a network
RSB [31]

Answer:

From Networkopoint of view, a node is a redistribution point or communication point or a connection point.

It can also mean devices or data points on a large network Such as laptop, phones, printers, etc

Explanation:

3 0
3 years ago
Digital Sep <br> helps as reimagine outcomes true or false
iragen [17]

Answer:

true

Explanation:

mark me as brailyist pls

6 0
3 years ago
Other questions:
  • Write a program whose input is two integers and whose output is the two integers swapped. Ex: If the input is: 3 8 then the outp
    12·1 answer
  • At the aquarium Grandma Simpson hugged the dolphin is that passive or active sentence​?
    6·1 answer
  • Rewrite this if/else if code segment into a switch statement int num = 0; int a = 10, b = 20, c = 20, d = 30, x = 40; if (num &g
    13·1 answer
  • IDE devices require the use of a controller mounted on the motherboard. True False
    14·2 answers
  • The benefit of host and guest operating system difference is:
    8·2 answers
  • A national tax preparation firm is accessing industry-specific productivity applications in the cloud; many other tax preparatio
    13·1 answer
  • Who invented the speaker?
    14·2 answers
  • MULTIPLE CHOICE:
    15·1 answer
  • How can you rotate and resize your drawing?​
    9·2 answers
  • IPv4 and IPv6 are addresses used to identify computers on the Internet. Is this whether true or not:
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!