subject
Computers and Technology, 05.09.2019 04:20 1846252

Develop a simple food receipt (python coding)
a. ask the user for inputs about two food items using the following prompts in turn. do not forget to assign each user entry to a unique variable name:
item1 name?
item1 price?
item1 quantity?
item2 name?
item2 price?
item2 quantity
b. convert the price and quantity variables to integers
c. calculate the total cost for the order by calculating each item's total price by multiplying price and quantity for each item and then adding up the total prices for the two items
d. display the results using the format:
receipt
you ordered: [item1 name] and [item2 name]
total cost: $ [total price for both items calculated in 3c above

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 19:30, bbgirl8638
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
image
Computers and Technology, 24.06.2019 08:20, bob4059
Evaluate the scenario below and indicate how to handle the matter appropriately. situation: michael received an e-mail from what he thought was his doctor’s office, requesting his social security number. since he had just been in to see his doctor last week, he replied to the e-mail with his social security number.
Answers: 2
image
Computers and Technology, 24.06.2019 08:50, bo4isbad
Write a program that will compute the volume of ice cream served in a cone. as you can see in the diagram below, the ice cream is served as a hemisphere of frozen deliciousness on top of a cone, which is also packed with frozen deliciousness. thus, the total volume of ice cream sold is the volume of the hemisphere plus the volume of the cone. the example shows an ice cream cone in which the hemisphere and cone have a radius of 10 inches and the cone has a height of 15 inches. your program must instead prompt for these two values, which are taken from the keyboard as integers: • the hemisphere/cone radius in inches, and
Answers: 3
image
Computers and Technology, 24.06.2019 11:00, airbenderjermai
Need fast im timed in a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their projects.
Answers: 2
You know the right answer?
Develop a simple food receipt (python coding)
a. ask the user for inputs about two food items...

Questions in other subjects:

Konu
Mathematics, 09.06.2021 19:40
Konu
Mathematics, 09.06.2021 19:40