Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Working on Python program and want to know what modifications regarding indentations and within the program I need to make esign Layout References Mailings Review

Working on Python program and want to know what modifications regarding indentations and within the program I need to make

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

esign Layout References Mailings Review iew -files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View Enable Editing You will turn in a flowchart and your Python file electronically on Moodle Flowchart: Use any program you wish to create your flowchart. Hand written Howcharts are fine. To send me electronic files, please submit jpg or png files. Follow elements of high-quality programs and be sure to include comment statements explaining your logic. Design and create a program for the ULM Coffee Shop to provide some customer market research data. When a customer places an order, a clerk asks for the customer's zip code and age. The clerk enters that data as well as the number of items the customer orders. The program operates continuously until the clerk enters a O for zip code at the end of the day. When the clerk enters an invalid zip code (more than 5 digits) or an invalid age (defined as less than 5 or more than 105), the program reprompts the clerk continuously until a valid entry is made. When the clerk enters fewer than 1 or more than 12 items, the program reprompts the clerk two more times. If the clerk enters a high value (greater than 12) on the third attempt, the program accepts the high value, but if the clerk enters a negative value on the third attempt, an error message is displayed, and the order is not processed further (not counted and not accumulated). At the end of the program, display a count of the number of items ordered by customers from the same zip code as the coffee shop (71209) and a count from all other zip codes combined. Display the overall average customer age. Additionally, display the total counts of the number of items ordered by customers under 30 and by customers 30 and older. No points, but bragging rights challenge: Add something that you think would be useful to the coffee shop. Use comments to explain what you added Turn in a flawchart and your Python fle alectronicaly on Moodle. Be sure to include your name inside both files

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

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

How are members held accountable for serving in the assigned roles?

Answered: 1 week ago