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
Todays hard drives give up to or more than 1000gb of space. true or false
olya-2409 [2.1K]
Its true because most 2017 harddrives come with at least 250gb 
3 0
4 years ago
I am looking to build a pc but im on a budget of $3,000 can i have a pc part list?
Dimas [21]

Answer:

I recommend going to https://pcpartpicker.com/list/

I takes you step by step into choosing the best parts for your pc, along with comparable prices.

6 0
3 years ago
Do you think should give credit to people who invented viral dances?
guajiro [1.7K]

Answer:

michal jackson i think who credit to people invented viral dances.

3 0
3 years ago
Read 2 more answers
What does XML do with a data wrapped in the tags?
Arlecino [84]

Answer:

Especificación para diseñar lenguajes de marcado, que permite definir etiquetas personalizadas para descripción y organización de datos. ¿Para que sirve XML? Representar información estructurada en la web (todos documentos), de modo ... Las etiquetas se definen para crear los documentos, no tienen un significado

Explanation:

5 0
3 years ago
According to symbolic interaction theory, the internet has helped to remove:
DanielleElmas [232]

Answer:

According to symbolic  interaction theory, the internet has helped to remove:

(D) Time and space barriers.

Explanation:

  • The symbolic interaction theory is such theory which explains that language and symbols are the means of interaction in the social worlds. This theory tells us about the relationship between people in a society.
  • The option a is not correct as the internet has not remove the subculture rather it has provided safe space to it. Sub-culture refers to a group of special interest like group of a biker. Anyone can create their community on the internet.
  • The option b is also incorrect as internet has not remove interpersonal communication rather it has speed up this communication. It is a type of communication in which people communicate with each other via their expression of feelings, verbal and non-verbal means.
  • The option c is also incorrect as the inappropriate content has removed by internet rather now everyone can create content. But regulations and guidelines are being made. A lot of work has been to be done in this area.
  • The option d is correct as the internet has helped to remove the barriers of time and space. It has made this world a global village now anyone from any part of the world can talk to any person to other part of the world over the internet. They can create communities depending upon their interests. They can do business and many other things.
5 0
3 years ago
Other questions:
  • What is the definition of an extinct species?
    8·2 answers
  • Write a program that produces this output:
    10·1 answer
  • A user could find the icon for an attached usb flash drive under what heading in the my computer/computer window?
    7·1 answer
  • Daniel owns a construction company that builds homes. To help his customers visualize the types of homes he can build for them,
    6·1 answer
  • Select the correct text in the passage.
    13·1 answer
  • A range check that can be used in Microsoft access to calculate the data collected which is date and time
    10·1 answer
  • How many of yall are willing too sub to my channel called "Space Juice" with around 200 subs?!​
    14·1 answer
  • Part1) Given 3 integers, output their average and their product, using integer arithmetic.
    12·1 answer
  • What is the primary purpose of source code editor features such as keyword hi lighting and auto-completion A.to speed up the cod
    7·1 answer
  • A student has completed some work at school and wishes to take it home. He could use a pen
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!