Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do you create this in pythons? Create a function that displays options for using the application and accepts the user's choice that will be

How do you create this in pythons?
Create a function that displays options for using the application and accepts the user's choice that will be stored in a variable:
Display a welcome message to the user and the options for navigating the application:
1) Salesperson Entry
2) Sales Entry
3) Display Sales Summary Report
4) Display Sales Metrics Reports
5) Exit Application
Store the user choice in a descriptive variable
Create a function for each option above (1-5)
As a placeholder, add a print message in each function that will display that the flow of control has gone to the function (print the name of the function)
Create a function for option 5 above that will:
Display a message thanking the user for using the application
Exit the application
The manager should be able to enter data for each salesperson to be reported (create a class for salespersons):
Salesperson name
Salesperson commission rate
The manager should be able to enter all items sold for each salesperson (create a class for items):
Item name
Item sold date
Item price
Item quantity
Item tax rate
Once salesperson and item data has been collected, the manager should have the option to display or save the data entered to file
Save option will first save the detail data to file and then display the detail data to the console
Display option will display the detail data saved to file

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

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions

Question

What accommodations might be helpful?

Answered: 1 week ago