Please Write English Code Need 1 Write Algorithm Written Using Full English Sentences Supp Q43887026
Please write this in English and not code.
You will need to:
1. Write an algorithm written using full English sentences. Itshould be supplied as part of your header comments.
2. Program using a consistent style of indentation, header commentsfor each function, inline comments for each major block ofcode.
Program
The program should start by asking the employee for the amount ofmoney in the opening cash drawer. Your program will need to keeptrack of the number of $1’s, $5’s, $10’s, $20’s, and $50’s, and$100’s. The store keeps only dollars (no cents).
Next, the daily sales will take place. For fun, we will use arandom number generator to tell us how many sales will be takingplace during the day and the amount of each sale (usually no morethan 20 sales take place in a day). You can limit items for sale tobe only whole numbers (no cents) and all are under $100. Only cashsales affect the cash drawer (charges with a visa or debit card arenot used by this app). See below for an explanation of how to usethe random number generator.
Then, when the daily sales have been completed, have the programcalculate how much to deposit in the bank, leaving somewherebetween somewhere between $70 and $85 dollars in the cash drawerwith appropriate denominations. You will want to work on thealgorithm 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 totalamount left in the cash drawer along with the number of eachdemonization 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 thebeginning 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 fromthe random number generator, such as limiting the number to a rangeof 1-100. variable = some_number % maximum +1; The % gives you theremainder (which is what is left over after an integerdivision).
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 sureit 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, don’t forget to add comments and to work on your program’sreadability
Thank you. Please write this in English and not code. This is;basically a flow chart but written in English. It would later beconverted into a C++ program.
Expert Answer
Answer to Please write this in English and not code. You will need to: 1. Write an algorithm written using full English sentences…
OR