A charitable organization wants to design a special atm

Assignment Help C/C++ Programming
Reference no: EM13707113

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). 

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 4000 - 6000 and should be divisible by 2 
o If the pin is valid the user specifies the amount to retrieve which should be between $0 and $150 
o If amount is not within this range keep asking the user to enter another value 
o The amount must be smaller or equal to the ATM balance else indicate that there is not enough money and keep asking the user to enter another value less or equal to the ATM balance 
o The amount must be retrieved from the total ATM balance 
o If an amount was successfully retrieved, let the program display the dollar amount as bills and coins 
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 
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 (google it) 
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 

Reference no: EM13707113

Questions Cloud

Political risk is inherent to investing in developing nation : Political Risk is inherent to investing in developing nations and emerging markets. Please read this article from the Central Bank of Peru (Rossini, Quispe and Rodríguez (2011) that discusses a policy called 'sterilization'. It is a monetary polic..
Three-quarters of its revenue from overseas markets : Coca-Cola, a well-known U.S. multinational company, derives about three-quarters of its revenue from overseas markets. It is thus highly likely that the company is exposed to currency risks. Investigate the company's exchange risk management polic..
Employer sponsored benefit plans : Imagine that you are the Human Resource Manager for a medium sized enterprise that is seeking to implement employee benefits beyond the 401k plan. Match, profit sharing 401a plan, and health insurance are already in place as standard corporate ben..
Compare and contrast traditional and roth and sep iras : Compare and contrast traditional and Roth and SEP IRAs and discuss various advantages and disadvantages as well as distribution methods and limitations.
A charitable organization wants to design a special atm : 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..
The percent limiting reactant in the salt mixture explain : If the step for digesting the precipitate were omitted what would be the probable consequence of reporting the percent limiting reactant in the salt mixture Explain?
How to calculate the sample size : How to calculate the sample size?  i want to know the needs and wants of the people who buy some products in the asian supermarkets in the netherlands, so i decide to make interview with them , but firstly i need to calculate how many people s..
Indicate the name of the topic and the name of the slice : Respond to your peers or the professor and tell the person whether his answer is correct or incorrect and explain why. Indicate the name of the topic and the name of the slice on the Subject line so it is easier for others to follow. Pleas..
What is the approximate standard deviation : A person estimates that his commute to work will most likely take 50 minutes. However, it could talk as long as 1 hour and 35 minutes worst case, or as little as 35 minutes best case. What is the approximate standard deviation based on the ab..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Compares the number of possible sequences

A c++ program that compares the number of possible sequences of the length L that can be generated uinder the following assumptions. Given an alphabet of size N=9. The program must output a formatted list comparing the number of possible sequences..

  Write a c programto find simple interest using function

Write a C programto find simple interest using function ? Please provide running program in C with output screenshoot.

  Struct definition as the page table entry

Struct definition as the page table entry and the array that follows it as the page table. Implement the software simulation of least recently used algorithm in two C++ functions. Should RUN on UNIX.

  Generates numbers in the fibonacci sequence

Write a class called fibs that generates numbers in the Fibonacci sequence (each number is the sum of the previous two). The sequence starts 1, 1, 2, 3, 5, ...

  Reads a set of integers from file

The code in file "hw5-stree.cpp" reads a set of integers from file and inserts them into a binary search tree. You are asked to implement two functions max() and depth() that compute the maximum element and the depth of the binary search tree.

  Write a program that converts between app and ppm values

Write a simple program that converts between APP and PPM values

  Design customized mailing lists for marketing department

Marketing department requires to be able to design customized mailing lists, to send different messages to different types of donors. What system will best meet these requirements?

  Write a program that calculates an employees wage for a

write a program that calculates an employees wage for a week. an employees wage is calculated as followsi if the number

  The funtion should take as parameters

Write a function in c ++ that multiplies two functions. the funtion should take as parameters two fraction structures. Then, the function should multiply the two fractions and return the solution as a fraction structure.

  Write a function named concatenate

If the function discovers that the number of cells in the large array is not large enough to hold all the numbers to be copied into it, then the function should return 0 to indicate failure.

  Three or more dimensions

What kind of program, or problem, might necessitate arrays of three or more dimensions?

  What are the primary differences between object-oriented

1. what is instruction explosion?2. what are the primary differences between object-oriented programming languages and

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