Question
Scenario: You work as the night manager for a local grocery store chain. One of your duties includes to go to several store locations at
Scenario: You work as the night manager for a local grocery store chain. One of your duties includes to go to several store locations at closing time to collect cash and checks on hand at the end of the day. After collecting, you must record how much money (specifically bill denominations) was collected from each store and then calculate the grand total. You currently are counting by hand, using a simple calculator and recording this in a notebook. After being in this SDEV120 course, you know that you can create a program to help you with this nightly task. You know that if this is successful, you can promote this to the other managers as well as other local stores that have chains, so you want to create proper documentation.
The Raptor program will do the following:
Collect check amounts, if there are any available, for each store.
Collect cash amounts by denominations for each store, including coins, if there are any.
Display the total amount, including cash and checks, for each store.
Display the total amount of cash and checks collected from all stores.
Incorporate defensive programming to make sure that the user is inputting valid data.
With good programming style, code the program using Raptor in a way that enhances readability and ease of use, including the appropriate use of internal documentation (comments) and external documentation (user friendly outputs).
Implement a menu-driven program to help with collecting data.
Use an array to capture the totals for each store location. Use correctly nested loops to capture the totals from each store and then calculate the grand total collected from all stores.
Below is an example of what your output in Raptor may look like for your completed project; note that your output may look different.
Below is an example of what your output in Raptor may look like for your completed project, note that your output may look different MasterConsole Font Font Size Edit Help No coins collected from Store #1 Store 1's check total is S100 Store 1's cash total is $186 Store 1's coin total is SO Store 2's check totalis $70.3500 Store 2's cash total is $45 Store 2's coin total is $0.41 Total cash collected from Store #1: S286 Total cash collected from Store #2: $115.7600 The total collected from 2 stores: $401.7600 The highlighted portion is a requirement of the Final Project. Run complete. 136 symbols evaluat ear Below is an example of what your output in Raptor may look like for your completed project, note that your output may look different MasterConsole Font Font Size Edit Help No coins collected from Store #1 Store 1's check total is S100 Store 1's cash total is $186 Store 1's coin total is SO Store 2's check totalis $70.3500 Store 2's cash total is $45 Store 2's coin total is $0.41 Total cash collected from Store #1: S286 Total cash collected from Store #2: $115.7600 The total collected from 2 stores: $401.7600 The highlighted portion is a requirement of the Final Project. Run complete. 136 symbols evaluat ear
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started