Question: Write a full C + + program please COMPSCI - 1 Assignment Chapter 7 Requirements: 1 . The behaviors of your program should be well
Write a full C program please
COMPSCI Assignment Chapter
Requirements:
The behaviors of your program should be welldefined. The definitions should be clear and specific such that one can reasonably tell whether your program is correct according to your definition. The definition should have enough details so that another programmer can create a similar program according to your definition.
The program is of sufficient complexity
The program is interactive ie it allow inputs from the user and provides feedback to the user The program uses user interfaces that provide clear, welldesigned, and visually pleasing feedback to the user.
Your program should perform file inputoutput It should read and write to an external file. An example of how files can be used in your program is storing persistent program state or data such as scores for a game, large amount of external input data
Your program must show good modularized program design using functions. Your program must define and use at least three functions. Functions should be used to maximize code reuse and ease of code maintenance there will be point deductions if your program contains a significant amount of redundant code
Your program must use named constants where appropriate ie there should be no hardcoded literals other than named constants
Project should use a data structure
Your program should NOT use any global variables unless specifically needed and documented.
Your project must make use of object oriented design SPECIFICALLY classes
MODIFY TO INCLUDE AT LEAST FUNCTIONS AND USE OBJECT ORIENTED DESIGN indicate where each is used
Project Psuedocode to follow:
Cout use a class to give the Starbucks an overall rating of out of
promt user yes or no if they would like to enter if yes continue to next if no end program
cout a menu in a tabular form with each item labled with a number for user to place
an order in the next step along with price
once the menu is couted the user will then be prompted to place an order
once the user puts in the order they will be asked "can I get you anything else?" yes or no
if yes the user will be prompted to put another number corresponding to an item on menu
if no the user will be asked "can I get a name for the order" at which time the user will enter their name
create a total amount that the order will cost with a tax rate
ask user if that will be paid with cash or card
if user says cash prompt them top input how much cash they would like to pay with and cout a
amount of change that they will receive back. account for if they don't put enough cash in dollars by stating
that they need to pay more money. continue to next
if user says card output "approved" and change as and continue to next
cout "Okay I will have that ready in just a moment"
use a random function that will pick between and if if picked delay next cout for seconds
and cout "order for name user entered have a good day" if is picked delay for seconds and cout
"order for nameUser entered sorry for the wait we are busy right now have a good day"
promt user to say either or for "you too" or for Im never coming back here"
End Program
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
