Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that asks a shop owner for product information and creates a menu system that allows customers to purchase multiple products of varying

Write a program that asks a shop owner for product information and creates a menu system that allows customers to purchase multiple products of varying quantities. The program should start by asking the shop owners name and company name. Next it should ask for three (3) products and their prices. Finally, it should display a menu.

Below is a sample run of the program that demonstrates how your output could look (user input is highlighted for emphasis):

Sample output:

Please enter your name: Alice

What is your company name? Wonderland

Hi Alice! We can set setup your 'Wonderland' sales menu. Please enter 3 products and their prices that you would like to sell.

Enter Product 1 and its price:

> Cake

> 1.5

Enter Product 2 and its price:

> Hat

> 2

Enter Product 3 and its price:

> Magic wand

> 1.99

This is what your customer will see as the menu.

===========================================================

Please select what you want to buy from the following menu:

1. Cake (each $1.50)

2. Hat (each $2.00)

3. Magic wand (each $1.99)

4. Done!

===========================================================

use python

n

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_2

Step: 3

blur-text-image_3

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 Management An Organizational Perspective

Authors: Richard T. Watson

1st Edition

0471305340, 978-0471305347

More Books

Students also viewed these Databases questions