Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Sprint 9:18 PM ggc.view.usg.edu Continue the fruit_stand.py program. It should prompt the vendor for custome names, and then for each customer calculate the total. The

image text in transcribed
Sprint 9:18 PM ggc.view.usg.edu Continue the fruit_stand.py program. It should prompt the vendor for custome names, and then for each customer calculate the total. The program should only stop once the vendor types "done" for a customer name. The following is an example. Your program must first prompt the vendor for th fruit names and prices (see parts 1, 2) before prompting for customer names an fruit quantities PS C:\UsersissivalDesktop> python fruit_stand.py Enter a fruit name (or done): Mango Enter a fruit name (or done): Strawberry Enter a fruit name (or done) Kiwi Enter a fruit name (or done): done Enter the price for Mango: 2.54 Enter the price for Strawberry: 0.23 Enter the price for Kiwi: .75 Enter customer name (or done): Bob Mango($2.54) Quantity: 3 Strawberry $0.23) Quantity: 10 Kiwi(s0.75) Quantity: 2 Bob's total purchase is 11.42 Enter customer name (or done): Lisa Mango ($2.54) Quantity: 10 Strawberry ($0.23) Quantity: 40 Kiwi ($0.75) Quantity: 20 Lisa's total purchase is $49.6 Enter customer name (or done): Sam Mango($2.54) Quantity: 0 Strawberry ($0.23) Quantity:0 Kiwi ($0.75) Quantity: 1 Sam's total purchase is so.75 Enter customer name (or done): done PS C:\Users ssiva\Desktop> Submit the fruit_stand.py file in the FruitStandProject_Part4 dropbox

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions