Implement a program for special atm machine

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

Message : 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- C heck Balance 

Enter your choice:

When the user chooses menu item 1:

- he will be asked to enter his pin code and the code will be validated

- a valid pin code must be between 4000 - 6000 and should be divisible by 2

- If the pin is valid the user specifies the amount to retrieve which should be between $0 and $150

- If amount is not within this range keep asking the user to enter another value

- 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

- The amount must be retrieved from the total ATM balance

- 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 wi ll 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 

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

When the user chooses menu item 2:

- he will be asked to enter his pin code

- If the pin code is 111 the balance is displayed else an error message is displayed

- 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

- Make sure to validate all your input and guide the user to enter correct values 

Reference no: EM13705193

Questions Cloud

Operating from sea level atmospheric inlet conditions : Ideal Otto and Brayton cycles are operating from sea level atmospheric inlet conditions and a pressure ratio 15:1. Find the thermodynamic efficiencies (nth) for these two cycles. There should be two answers
Describes cold water systems into buildings : Prepare a portfolio include a fully illustrated report that describes cold water systems into buildings, covering, as minimum, ALL the above topics.
What does he think the real constitutional issue is : What does he think the real constitutional issue is? Cite specific language from the decision to support your answer.
Implement a simple login and password system : You are to implement a simple login and password system. Your system should allow for TEN usernames and their associated passwords to be stored.
Implement a program for special atm machine : Association supplies the needy person with a pin number to be able to use the ATM machine - Implement a program for this machine. Your program must start by displaying a main menu.
How important the features is : Are brands important for you while looking to make a decision to buy an electronic product and how important the price is?
What toxicant they test for : What Toxicant they test for and how they test for the given toxicant -
Statistics list program : You will also modify your program to accept input from an input file and print a report to an output file. These files are to be named by the user at runtime.
Determine if a string s is a palindrome : What data structure is most suitable to determine if a string s is a palindrome, that is, it is equal to its reverse.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Computes the area of a rectangle

Create an object oriented application with C# that computes the area of a rectangle, and the area and the volume of a cuboid.

  Develop a class airborne location

develop a class AirborneLocation that represents the location of airplanes with respect to a reference radar location. Each AirborneLocation object should include data member for aircraftID (integer),

  How many integer values are in the array

Write a function named "location_of_largest" that takes as its arguments the following.

  Prompts the user to input the shipping cost per liter

Write a program that does the Prompts the user to input the dimensions (in feet) of the container (radius the container (radius of the base and the height)

  Basics of code development on linux and cryptography

Prepare a C program that gives simple mono-alphabetic substitution between plaintext, and Enhance your code to use "-e" to encrypt a string argument and "-d" to decrypt it using argv and argc

  Solve a single quadratic equation of the form

Write a C++ program to solve a single quadratic equation of the form - The actual solution of the equation shall be done by a function named equSolver(), which takes three coefficients as parameters and returns a structure of three fields: two root..

  Your program should include two functions

Your program should include two functions. Function celsius_at_depth should compute and return the Celsius temperature at a depth given in kilometers. Function fahrenheit should convert a Celsius temperature to Fahrenheit.

  Ng stands for next guess

Where NG stands for next guess and LG stands for last guess. Write a function that calculates the square root of a number using this method. The initial guess will be the starting value of LG .

  Write the code

Write a program that allows an instructor to keep a grade book. Each students has scores for exams, homework assignments, and quizzes.

  Write a program with two functions- main and swap

Write a program with two functions: main and swap. The main function will read two integer numbers.

  Five elements similar to having different variables

How is an array with five elements similar to having five different variables?

  Make a class constructor that initializes a customer

Make a class constructor that initializes a customer with a name, number, and order size.Make class member functions to print each of: name, number, and order size.

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