Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need a program using Raptor . Raptor programs must run with no errors. Scenario: You work as the night manager for a local grocery

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:

 


image

The highlighted portion is a requirement of the Final Project. MasterConsole Font Font Size Edit Help No coins collected from Store #1 Store l's check total is $100 Store 1's cash total is $186 Store 1's coin total is SO Store 2's check total is $70.3500 Store 2's cash total is $45 I Store 2's coin total is $0.4100 Total cash collected from Store #1: $286 Total cash collected from Store # 2: $115.7600 The total collected from 2 stores: $401.7600 ----Kun complete. 136 symbols evaluated.----| X < Clear

Step by Step Solution

There are 3 Steps involved in it

Step: 1

start Declare variables integer storeCount checkAmount dollarAmount integer pennies nickels dimes qu... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamental Accounting Principles

Authors: Larson Kermit, Tilly Jensen

Volume I, 14th Canadian Edition

71051503, 978-1259066511, 1259066517, 978-0071051507

More Books

Students also viewed these Programming questions

Question

What would you do if the bullies were in your classes?

Answered: 1 week ago