Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Problem:

Question: Write a program that will be an Automated Teller Machine (ATM). It will allow a customer to log in with a PIN number, check the PIN, and then allow the customer to withdraw money up to the balance in their account. The customer may also deposit money, and that money should be added to the current balance.

Since the program will not read from a database, declare 2 variables called MyPIN and MyBalance. Set these 2 variables to 1234 and 2,000.00 respectively.

Case 1: When the program runs, ask for the PIN. Whatever input they type in, compare against MyPIN and only allow withdrawals or deposits if they are equal.

Case 2: Give a short menu to the customer after the PIN is succesfully entered.

Case 3: For example, 1. Withdrawal, 2. Deposit, 3. Log off.

Case 4: Only allow the 3 options. Repeat the menu if incorrect.

Case 5: When withdrawing, ask for the amount. Verify that that amount can be withdrawn, then "pretend" to give them the cash. Deduct from the current balance.

Case 6: When depositing, ask for the amount. Make sure it is a valid amount. "Pretend" to let them deposit the money. Add to the current balance.

Case 7: When the transaction is completed, show the menu again.

Case 8: It is ok for the balance to be reset each time the program is run.

Show the code, demonstrate it works properly and describe what it is doing.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91172636

Have any Question?


Related Questions in Computer Engineering

You are requested to design an information technology

You are requested to design an Information Technology Infrastructure for an international nonprofit organization. The organization has six offices, one each in Ohio, Kentucky, Toronto, Michigan, Chicago, and Indiana. Col ...

Research the followingmy company is alibabadetermine its

Research the following my company is Alibaba Determine its mission, vision, and goals. Discuss its IT architecture. Describe its databases, data warehouse, and data mining. Discuss it network system. Discuss its security ...

Calculate the probability of selecting a random sample of

Calculate the probability of selecting a random sample of 225 observations with a sample proportion of 0.54 or greater, if the sample population has a population proportion of 0.50.

Question find an article on the www that discusses a recent

Question: Find an article on the WWW that discusses a recent (within the last 2 years) security breach or Cyberattack. Provide a link to the article and suggest 2 Best practices for a user Domain Policy that would mitiga ...

Take the input of numbers and reverse the order of elements

Take the input of numbers and reverse the order of elements in that vector using recursion.

Represent each of the following values in the ieee 754

Represent each of the following values in the IEEE 754 32-bit format, truncating inexact values. Indicate the percent error of the value stored compared to the exact value. This will require you to convert the 32 bit flo ...

The diet doctor claims that the average north american is

The diet doctor claims that the average North American is more than 20 pounds overweight. To test his claim, a random sample 30 Of north Americans was weighted, the difference between their actual weight and their ideal ...

Scenario pit powerpit owns a small bike shop feelwheel that

SCENARIO: PIT POWER Pit owns a small bike shop FeelWheel that sells only customized bikes. These days, many customers inherit their bikes from their grandparents or buy them in hardware stores. Thus, it does not make muc ...

Question monicas reading comprehension score 22nbspmean

Question: Monica's reading comprehension score = 22  Mean fourth grade reading comprehension score = 19  Standard deviation of the fourth grade's reading comprehension = 1.8  Monica's z-score in math = 2.2  Mean fourth g ...

Anbspwhen aqueous solutions (a)  When aqueous solutions of  Pb(NO 3 ) 2  and  MnCl 2  are

(a)  When aqueous solutions of  Pb(NO 3 ) 2  and  MnCl 2  are mixed, does a precipitate form? _____ yes -no (b)  Write a balanced equation for the precipitation reaction that occurs when aqueous solutions of  potassium c ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As