Question: Please write this in English and not code. You will need to: 1. Write an algorithm written using full English sentences. It should be supplied

Please write this in English and not code.

You will need to: 1. Write an algorithm written using full English sentences. It should be supplied as part of your header comments. 2. Program using a consistent style of indentation, header comments for each function, inline comments for each major block of code.

Program

The program should start by asking the employee for the amount of money in the opening cash drawer. Your program will need to keep track of the number of $1s, $5s, $10s, $20s, and $50s, and $100s. The store keeps only dollars (no cents).

Next, the daily sales will take place. For fun, we will use a random number generator to tell us how many sales will be taking place during the day and the amount of each sale (usually no more than 20 sales take place in a day). You can limit items for sale to be only whole numbers (no cents) and all are under $100. Only cash sales affect the cash drawer (charges with a visa or debit card are not used by this app). See below for an explanation of how to use the random number generator. Then, when the daily sales have been completed, have the program calculate how much to deposit in the bank, leaving somewhere between somewhere between $70 and $85 dollars in the cash drawer with appropriate denominations. You will want to work on the algorithm for this section in detail. (Saying Calculate Deposit will not give you enough detail to solve this problem!) The output at the end should be the amount to deposit and the total amount left in the cash drawer along with the number of each demonization for the next day. Random Numbers: In this program you will need to use the random number generator. There are two function needed to use this from the cstdlib library (standard library header file) and ctime: srand(time(0)); to seed the random number generator at the beginning of your program (i.e., at the beginning inside of main() ) rand() which will return a random number when you need it: value = rand(); The mod operation (%) is great to limit the value returned from the random number generator, such as limiting the number to a range of 1-100. variable = some_number % maximum +1; The % gives you the remainder (which is what is left over after an integer division). Things you should know...as part of your program: 1. Make sure to use a loop. 2. Make sure to prompt the user for any input requested. Make sure it is clear from your prompts what the user is expected to do. 3. You may not use any global variables in this program! 4. Make sure to use C++s I/O (iostream library) for I/O 5. And, dont forget to add comments and to work on your programs readability

Thank you. Please write this in English and not code. This is ;basically a flow chart but written in English. It would later be converted into a C++ program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!