Display a count of the number of items ordered by customers

Assignment Help Computer Engineering
Reference no: EM131851537

Problem

The Café Noir Coffee Shop wants some market research on its customers. 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 0 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 10 or more than 110), the program re-prompts the clerk continuously.

When the clerk enters fewer than 1 or more than 12 items, the program re-prompts the clerk two more times. If the clerk enters a high value 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 counted. 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 (54984), and a count from other zip codes. Also display the average customer age, as well as counts of the number of items ordered by customers under 30 and by customers 30 and older.

Reference no: EM131851537

Questions Cloud

Provide opportunities for the licensees employees : provides opportunities for the licensee's employees to learn new technology skills d. has few legal issues to contend with.
Create the logic for the dice game pig : Create the logic for the dice game Pig, in which a player can compete with the computer. The object of the game is to be the first to score 100 points.
Create the logic for a game that simulates rolling two dice : Create the logic for a game that simulates rolling two dice by generating two numbers between 1 and 6 inclusive. The player chooses a number between 2 and 12.
Is the hospital liable about the situation given : While in recovery, the patient hires an attorney who sues the radiologist and the hospital based upon Respondeat Superior. Is the hospital liable?
Display a count of the number of items ordered by customers : Display a count of the number of items ordered by customers from the same zip code as the coffee shop (54984), and a count from other zip codes.
How can the level of cooperation be enhanced : How can the level of cooperation and collaboration be enhanced in a virtual team?
What are the biggest challenges that exist for manager : What are some of the biggest challenges and opportunities that exist for managers in using organizational behavior concepts?
Design a program for the hollywood movie rating guide : Design a program for the Hollywood Movie Rating Guide, in which users continuously enter a value from 0 to 4 that indicates number of stars they are awarding.
Compare quality control versus quality audit : Compare Quality Control versus Quality Audit.Many people outside of people working in Quality get these confused or think that they are the same thing.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Outline the pros and cons of the two alternatives

Make a recommendation to Fred about which is better for his company

  Cpp file of the program

Student must submit each lab assignment along with two files: a working .cpp file of the program design and a screenshot of its program execution output in Word format.

  Questionassume you want to deposit a certain amount of

questionassume you want to deposit a certain amount of money into a saving account and after that leave it alone to

  Implement the given class hierarchy inside of a module

Implement the following class hierarchy inside of a module file called polygon.py. Write another "driver" script called project1.py which imports the polygon.py module, reads an input file of polygonal data and writes another file of areas and peri..

  Calculate the sentiment of each tweet

- Calculate the sentiment of each tweet - Calculate the sentiment of each group - Visualize the hierarchical structure of the data, the rank of groups

  Calculate the displacement thickness of the boundary layer

Air at 26°C and 1 atm pressure flows normally to a 5 cm diameter circular cylinder at a velocity of 9 m/s. It can be shown from potential flow theory.

  Discuss the tester and developer relationship

Discuss the tester and developer relationship within spiral development methodology. You may use your personal experiences to support the arguments.

  Define the matlab spline function

In computerized typography the problem arises of finding an interpolant to points that lie on a path in the plane (e.g., a printed capital S).

  Explain about virtualisation technology

Describe your reasoning for choosing the virtualisation technology and what advantages this technology gives you in this scenario - what are the disadvantages/limitations of this technology?

  Develop and the function that returns the periodic payment

Develop and the function that returns the periodic payment. The amount loaned, rate of interest and the number of payments in a year must be input by the user.

  Create application containing an array that stores integers

display all values that are higher than the calculated average value. Then, create another array that store 5 integers.

  United parcel services operations are driven by its

after reading chapter one watch the video real media player can be downloaded for free at www.real.com and read the

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd