subject

Please help with this I attached a pic of what I have tried to come up with. I'll give more point !! You have been asked to write a program that calculates the total price for a picnic lunch that the user is purchasing for a group of friends. Your program should:
• Ask the user to enter her budget for the lunch • The user has the option of buying apples, cheese, and bread.
• Set the price per apple, price per pound of cheese, and price per loaf of bread as constant variables.
• Use a nested repetition/selection structure to ask the user what type of item and how much of each item he/she would like to purchase. Keep a running total of the items purchased inside the loop.
• Exit the loop if the total has exceeded the user's budget. Additionally, provide a sentinel value that allows the user to exit the purchasing loop at any time. • After the loop is exited, display the total amount spent, the total amount of each item purchased (quantity and cost) and the amount of the budget that remains. .
Be sure to include appropriate documentation at the start of the program and within the program.
You will submit your .py file for this part of the test as a response to this question.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:50
Answer the following questions regarding your system by using the commands listed in this chapter. for each question, write the command you used to obtain the answer. a. what are the total number of inodes in the root filesystem? how many are currently utilized? how many are available for use? b. what filesystems are currently mounted on your system? c. what filesystems are available to be mounted on your system? d. what filesystems will be automatically mounted at boot time?
Answers: 1
question
Computers and Technology, 23.06.2019 10:50
Your friend kayla is starting her own business and asks you whether she should set it up as a p2p network or as a client-server network. list three questions you might ask to kayla decide which network to use and how her answers to those questions would affect your recommendation.
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
1. which of the following is not an example of an objective question? a. multiple choice. b. essay. c. true/false. d. matching 2. why is it important to recognize the key word in the essay question? a. it will provide the answer to the essay. b. it will show you a friend's answer. c. it will provide you time to look for the answer. d. it will guide you on which kind of answer is required.
Answers: 1
question
Computers and Technology, 25.06.2019 03:40
Acurrent vehicle registration expires at of the first owner listed on the registration form. a. stretch and flex b. bend and break c. wear down d. bounce around
Answers: 1
You know the right answer?
Please help with this I attached a pic of what I have tried to come up with. I'll give more point !!...
Questions
question
Mathematics, 27.10.2020 17:00
question
Mathematics, 27.10.2020 17:00
question
Mathematics, 27.10.2020 17:00
Questions on the website: 13722361