Design a special atm machine

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

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 Ba lance

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 b ills, 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

Reference no: EM13700177

Questions Cloud

Expected value and standard deviation of profit : Jamie Dixon is the operations manager for Pitt Corp, a real estate investment firm. Jamie must decide if Pitt Corp is going to invest in a strip mall in Oakland. If the strip mall is highly successful, after tax profits will be $100,000 per year.
Consider a new per-worker employment tax on workers : Consider a new per-worker employment tax on workers (where previously there was no tax). Outline the consequences of this tax on the local labor market. Use appropriate, clear, and well-labeled diagrams. In your answer show (1) the burden of the tax ..
Fiscal policy to fight against recession-rising unemployment : Suppose that U.S. government actively uses the fiscal policy to fight against recession and rising unemployment. To incorporate this behavior of government into the model, let’s assume that the government spending equation is given by where 0.
Annualized percentage yield on the residential mortgage : Assume that the treasury bonds are currently priced to yield 4% if held until maturity. Assume that the bank requires a premium of 150 basis points in the mortgage's annualized yield over Treasury bond yields before it will lend in the residential mo..
Design a special atm machine : 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.
Annualized percentage rate of the mortgage obtained : Suppose a mid-sized regional bank has $1 million dollars which it is considering investing either in 30 year zero coupon Treasury bond or in a jumbo 30 year fixed rate residential mortgage with fixed monthly payments of $5650
Evaluate the trend of london stock exchange : A study to evaluate the trend of london stock exchange in the light of its impact and interreationship with share prices
Determine allowable straight line depreciation deductions : Depreciable residential rental real property has been purchased for $70,000 and put into service during the third month of the taxpayer's tax year. For the applicable 27.5 year depreciation life, determine the allowable straight line depreciation ded..
Calculate the optimal price : As a manager of a firm you find the marginal cost of the firm to be $10 and the fixed cost $100. For the range of prices that you are planning to charge, own price elasticity of demand is believed to be –1.25. Calculate the optimal (profit maximizing..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Determine the manner in which each of the provided concepts

Provide a short code example of the use of C++ syntax within the context of an employee database and determine the manner in which each of the provided concepts relates to the concept of object-oriented programming.

  What does the term polymorphism mean

What does the term polymorphism mean? Provide an example.

  Generate mathematical problems based on the difficulty level

Generate mathematical problems based on the difficulty level selected. You must implement the following five levels of difficulty

  Prompt the user for 3 sentences of text

Prompt the user for 3 sentences of text. Pass these pieces of text into a function connect() which will connect all three sentences into one long sentence. Pass the combination sentence back to the main program, where it is printed.

  What is the current size of q

Suppose an initially-empty queue Q has performed a total of 32 enqueue operations, 10 front operations, and 15 dequeue operations, 5 of which generated QueueEmptyExceptions, which were caught and ignored. What is the current size of Q?

  Set up a user terminated loop

Write a program in c language that finds a maximum of three numbers. Input consists of the three numbers. Output should list the three numbers and display the largest of the three.

  Write a webservices application that does a simple four

write a webservices application that does a simple four function calculator. write a cgi program launched by your

  Takes a string containing a full name

Write a program that takes a string containing a full name and outputs each part of the name separately with its length. The name should be in the form of first, middle, and last name, separated from each other by a single space. For example, if the ..

  Compute and return the celsius temperature

Write a program that takes as input a depth (in kilometers) inside the earth and displays the temperature at this depth in degrees Celsius and in degrees Fahrenheit. The relevant formula is

  Function that accepts a pointer to a c-string

Write a function that accepts a pointer to a C-string as an argument and returns the number of words contained in the string. Also have it display the average number of letters in each word.

  Analyze a basic set of requirements for a problem

Create the main bank program. Note that you can create the main bank program in the main function or you can try to create another class for the main bank program.

  Write a program to calculate students average test scores

Write a program to calculate students average test scores

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