Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is a Python question. I have to write a Python program for this Welcom to MyStore! 1. Get Customer Info 2. Add Items to

image text in transcribedimage text in transcribed

This is a Python question. I have to write a Python program for this

Welcom to MyStore! 1. Get Customer Info 2. Add Items to Cart 3. Print Cart Content 4. Complete the Transaction 5. Abort the Transaction Enter your choice: 1 Customer Info Enter customer name: Tom Enter customer age (15 to 120): 5 Invalid age 5 Enter customer age (15 to 120): 65 1. Get Customer Info 2. Add Items to Cart 3. Print Cart Content 4. Complete the Transaction 5. Abort the Transaction Enter your choice: 2 Add to Cart. Enter item name: Coffee Enter price for Coffee: 9.95 Enter quantity of Coffee: 2 1. Get Customer Info 2. Add Items to Cart 3. Print Cart Content 4. Complete the Transaction 5. Abort the Transaction Enter your choice: 2 Add to Cart. Enter item name: Milk Enter price for Milk: 3.99 Enter quantity of Milk: 4 1. Get Customer Info 2. Add Items to Cart 3. Print Cart Content 4. Complete the Transaction 5. Abort the Transaction Enter your choice: 6 Invalid choice. Try again. 1. Get Customer Info 2. Add Items to Cart 3. Print Cart Content 4. Complete the Transaction 5. Abort the Transaction Enter your choice: 3 Item: Coffee: 2 @ $9.950000 discount: $1.990000 Item: Milk: 4 @ $3.990000 discount: $1.596000 1. Get Customer Info 2. Add Items to Cart 3. Print Cart Content 4. Complete the Transaction 5. Abort the Transaction Enter your choice: 4 Checkout Customer: Tom, age: 65 - - - - - - - - - - - - - - - - - Item: Coffee: 2 @ $9.950000 discount: $1.990000 Item: Milk: 4 @ $3.990000 discount: $1.596000 - - - - - - - - - - - - - - - - - - - - Sub_total: $32.274000 Tax: $1.129590 Total: $33.403590 Enter cash amount: 35 Cash: $35.000000 Change: $1.596410 Thank you for shapping at MyStore

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

What is the preferred personality?

Answered: 1 week ago

Question

What is the relationship between humans?

Answered: 1 week ago