Need a program using Raptor . Raptor programs must run with no errors. Scenario: You work
Question:
Need a program using Raptor. Raptor programs must run with no errors.
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. 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 proper documentation.
The Program should 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.
o Bill Denominations:
$1
$2
$5
$10
$20
$50
$100
o Coin Denominations:
.01 - Penny
.05 - Nickel
.10 - Dime
.25 - Quarter
.50 - Half Dollar/50 cent piece
1.00 - Dollar coin
The user is to enter the count for each for each denomination, and the program will
display the totals. For example:
7 pennies, 3 nickels, 1 $1Dollar coin 4 $1 bills, 3 $5 bills would be:
$1.22 coins $19 Bills $0 checks - Store total: $20.22
Display the total amount, including bills and coins separately, checks, with an overall
cash total of all for each store.
Display the grand total amount of cash and checks collected from all stores (Single
amount, not broken into categories) .
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).
o Implement a menu-driven program to help with collecting data.
o 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:
Fundamental Accounting Principles
ISBN: 978-0071051507
Volume I, 14th Canadian Edition
Authors: Larson Kermit, Tilly Jensen