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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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