Implement a program for this machine

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

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

  • If the pin code was not validdisplay 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: EM13703915

Questions Cloud

Torsion spring to inverted pendulum : If you attach torsion spring to inverted pendulum, is this the equation of motion? The spring is attached on one end to a pivot point and also at the pivot point the spring is attached. I used L/2 for the location of the center of mass.
What is the maximum available friction force : A block weighing 80 N is resting on a plane inclined 20 degree to the horizontal. The coefficient of static friction is 0.5. Determine the friction force on the block. What is the maximum available friction force?
Velocity and acceleration analysis of mechanism : Velocity and Acceleration Analysis of mechanism. The mechanism in Fig. 5.54 has the dimensions: AB=200 mm, AC=600 mm, BD=1000 mm, La=150 mm, and Lb=250 mm. The driver link 1 rotates with a constant angular speed of n=60 rpm. Find the velocities and t..
Find the viscosity of the emulsion : You are asked to measure the viscosity of an emulsion, so you use a tube flow viscometer, with the container open to the atmosphere. The length of the tube is 10 cm, its diameter is 2mm, and the diameter of the container is 3 in.
Implement a program for this machine : Implement a program for this machine - design a special ATM machine to be used by needy people.
Amount of the prospective future receipts from the wells : A petroleum engineer estimates that the present production of 400,000 barrels of oil during this year from a group of 10 wells will decrease at the rate of 15% per year for years 2 through 10. Oil is estimated to be worth $25 per barrel. If the inter..
Assume a constant specific heat capacity : Argon is contained in a 1 L piston-cylinder device at T=300 K and P=100 kPa. Heat is added and the volume is allowed to expand at constant pressure. If the final temperature is 400 K, find the heat added. Assume a constant specific heat capacity. Exp..
Conventional lead-acid automobile battery : The cold cranking amperes (CCA) of a conventional lead-acid automobile battery is the amount of current the battery can provide at 0°F for 30 seconds and maintain at least 1.2 volts per cell (or 7.2 volts for a standard 12-volt battery). If a batter..
A metal has an atomic radius : A metal has an atomic radius of 0.125 nm, an atomic weight of 58.69 g/mol and a density of 8.9 g/cm3. Determine whether it has a BCC or an FCC crystal structure

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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