C++, computer programming, Programming Languages

Assignment Help:
A charitable organization wants to design a special ATM machine to be used by needy people.
The association supplies the needy person with a pin number to be able to use the ATM machine.
He/she can then retrieve up to $150 per day depending on his/her needs (if possible less than $150 as contracted with the association which will penalize in case of misuse). The total daily balance of the machine is $2000.
When this amount is used nobody can retrieve anything further.
The person in charge of checking the balance, filling the machine and shutting down the machine (by pressing -1) has pin code 111.
Implement a program for this machine. Your program must start by displaying a main menu as follows:

THE NEEDY ATM SERVICE
1- Retrieve money
2- Check Balance

Enter your choice: _

When the user chooses menu item 1:
o he will be asked to enter his pin code and the code will be validated
o a valid pin code must be between 3000 - 10000 and should be divisible by 2
o If the pin is valid the user specifies the amount to retrieve which should be less than or equal to $150
o The amount must be retrieved from the total ATM balance
o The amount must be smaller or equal to the ATM balance else indicate that there is not enough money
o Let the program display the dollar amount as bills and coins
o The charitable association wants to have as many high denomination bills and coins as possible. The highest denomination bill that they would receive is a $20 bill and they will not receive any half dollar coins

For example, $62.30 would be split into 3-$20 bills, 0-$10 dollar bills, 0-$5 bills, 2-$1 bills, 1-quarters, 0 dimes, 1-nickels and 0-pennies. It would NOT be 0-$20 bills, 6-$10 bills, 0-$5 bills, 2-$1 bills, 0-quarters, 3-dimes, 0-nickels and 0-pennies

Note that 1 quarter = $0.25
1 dime = $0.1
1 nickel = $0.05
1 penny = $0.01

o If the pin code was not valid display an error message
o After displaying the result the user must enter 0 to return to the main menu after clearing the screen
o Make sure to validate all your input and guide the user to enter correct values

When the user chooses menu item 2:
o he will be asked to enter his pin code
o If the pin code is 111 the balance is displayed else an error message is displayed
o After displaying the balance, the user must enter -1 to shutdown the machine or 0 to go back to the main menu after clearing the screen
o Make sure to validate all your input and guide the user to enter correct values



Related Discussions:- C++, computer programming

Matlab help, I am working on a matlab project and need help debugging one q...

I am working on a matlab project and need help debugging one question i have written and need help working through another problem.

and gate- or gate-logical-program , System.in and System.out should not be...

System.in and System.out should not be used anywhere in the programs except in main and only for testing purposes.  All calculations should be done in a method.  Note:  To use J

Excel, basic steps involved in spreadsheet developement

basic steps involved in spreadsheet developement

Write a procedure to prints the avl tree, (a) Write a procedure called (loo...

(a) Write a procedure called (lookup n t). This procedure has 2 arguments: n is the value being looked up, t is the AVL tree. The subtree with n as its root is returned (or '() if

Looping, You are required to develop a program that calculates the charges ...

You are required to develop a program that calculates the charges for DVD rentals, where current release cost RM3.50 and all others cost RM2.50. If a customer rents several DVDs, e

Service oriented architectures in xml, question 1: In the opening lecture I...

question 1: In the opening lecture I spoke about general changes in business - flatter organizations, process orientation as opposed to functional silos, focus on supply chains, gr

Return value in an array, A specification of a function TOARR is given belo...

A specification of a function TOARR is given below. function TOARR(n in Int, s in Stack of Int) return in Array of Int pre n ≥ 0. post The returned value is an array of size

Help pagination of oracle reports when printed from browser, Oracle 11G Rep...

Oracle 11G Reports We are troubleshooting the pagination of Oracle reports when printed from a browser. We need help determining the issue and correcting within the report ou

Develop html code create web page of blue color , 1.  Develop an HTML code ...

1.  Develop an HTML code to create a Web page of blue color & display links in red color. 2.  Develop an HTML code to create a Web page which contains an image at its center.

Calculating percentage differences-circuit diagram, In the procedure sectio...

In the procedure section, it is important to have a clear circuit diagram with component values and a brief, but accurate description of each step taken. 1. Tables for both the

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd