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
Marysya12 [62]
3 years ago
9

A customer comes into a grocery store and buys 8 items. Write a PYTHON program that prompts the user for the name of the item AN

D the price of each item, and then simply displays whatever the user typed in on the screen nicely formatted. Some example input might be: Apples 2.10 Hamburger 3.25 Milk 3.49 Sugar 1.99 Bread 1.76 Deli Turkey 7.99 Pickles 3.42 Butter 2.79 Remember - you will be outputting to the screen - so do a screen capture to turn in your output. Also turn in your PYTHON program code.
Computers and Technology
1 answer:
Dmitrij [34]3 years ago
3 0

Answer:

name = []

price = []

for i in range(0,8):

item_name = input('name of item')

item_price = input('price of item')

name.append(item_name)

price.append(item_price)

for i in range(0, 8):

print(name[i], '_____', price[i])

Explanation:

Python code

Using the snippet Given :

Apples 2.10

Hamburger 3.25

Milk 3.49

Sugar 1.99

Bread 1.76

Deli Turkey 7.99

Pickles 3.42

Butter 2.79

name = []

price = []

#name and price are two empty lists

for i in range(0,8):

#Allows users to enter 8 different item and price choices

item_name = input('name of item')

item_price = input('price of item')

#user inputs the various item names and prices

#appends each input to the empty list

name.append(item_name)

price.append(item_price)

for i in range(0, 8):

print(name[i], '_____', price[i])

# this prints the name and prices of each item from the list.

You might be interested in
What option would fit the most content on a page?
zvonat [6]

Answer:

normal margins will fit the most content on a page

7 0
2 years ago
An interface that doesn’t contain any constants or methods is called a ____________ interface.
valina [46]
I dont under stand but i think it is a "plane"

4 0
4 years ago
What is a "telescreen"? How is it different from the televisions we know? Is it possible to make a television that could see and
mars1129 [50]

Answer:

  1. Telescreens are devices that operate as televisions, security cameras, and microphones.
  2. A television is an electronic communication medium that allows the transmission of real-time visual images, and often sound while a telescreen is a television and security camera-like device used to keep things or people under constant surveillance, thus eliminating the chance of secret conspiracies.
  3. It could be employed in secretly investigating criminals and terrorists.
  4. It could also play a major role in politics by investigating suspicious government officials and those that plan Ill towards a nation.
  5. It would definitely be a great idea to install one of such.

Explanation:

8 0
3 years ago
Literacy is best defined as knowing how to: (Points : 1
Soloha48 [4]
Depends on what kind of literacy you are referring to, (computer, health, etc). Since this was asked under computers and technology, I will base my answer on Computer Literacy.

Computer Literacy basically means how much you know about using a computer. Using applications such as Internet Explorer and Microsoft word, or simply typing a document is a form of computer literacy.
6 0
4 years ago
Graduating from college can boost your income 60% compared to high school graduates. An average high school graduate without a c
Aleksandr-060686 [28]

Answer: $2,240,000

Explanation:

If you multiply 35,000 by 1.6, you will get 56,000.

Then you multiply 56,000 by 40 and you will get $2,240,000.

8 0
3 years ago
Other questions:
  • The mass of a textbook is about 1.25 kilograms. Aproximately, how many ounces is this?
    10·1 answer
  • Compute the sum of all integers that are multiples of 9, from 1 to 250. Enter your result of your computation in the text box be
    9·2 answers
  • Which type of footwear should be worn while working on a hybrid vehicle?
    8·2 answers
  • A video game character prefers to take enemies on from a distance. What skills might such a character have?
    11·2 answers
  • Consider a system running 10 I/O-bound processes and 2 CPU-bound process. Assume that the I/O-bound processes issue an I/O opera
    9·1 answer
  • Problems of mobile phones
    8·1 answer
  • Describe a game that you have played (video game or other type of game) that had a good balance between being easy to learn the
    6·1 answer
  • Which types of online reading tools are available within the CloseReader? Check all that apply.
    11·1 answer
  • Is the<br>transmission and reception<br>of data between locations?​
    10·1 answer
  • 7. There are different tools needed in repairing computer, which of the following categories does parts retriever, screw driver,
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!