1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Artemon [7]
3 years ago
12

RAPTOR! You are writing a program that will act like an ATM machine by the end of this course. In order to access the ATM, the c

ustomer must enter their user name and their passcode. After 3 incorrect attempts at entering the user name and password, the program will end. The list of legitimate users along with their user ID, passcode and account balance will be provided to you.
There are only 5 functions that can be carried out by the ATM:


1 – Deposit (adding money to the account)


2 – Withdrawal (removing money from the account)


3 – Balance Inquiry (check current balance)


4 – Transfer Balance (transfer balance from one account to another)


5 - Log Out (exits/ends the program)


Allow the user to make up to a maximum of 3 transactions at a time. After 3 transactions, the program will terminate. After a transaction is completed, the program will update the running balance and give the customer a detailed description of the transaction. A customer cannot overdraft on their account; if they try to withdraw more money than there is, a warning will be given to the customer. Also note that the ATM doesn’t distribute or collect coins – all monetary values are in whole dollars (e.g. an integer is an acceptable variable type). Any incorrect transaction types will display an appropriate message and count as a transaction.
Computers and Technology
1 answer:
Juli2301 [7.4K]3 years ago
4 0

Answer:

 Please find the program in attachment.

The sample program is self explanatory, and with all the functions being listed as shown above.

And the sample program can be extended to allow three chances for authentication, and for all with addition of a simple for loop.

Explanation:

The code is self explanatory.

Download txt
You might be interested in
A ____ paragraph places the first character of a text line near the left border of a placeholder.
faltersainse [42]
A left - align paragraph places the first character of a text line near the left border of a placeholder. Paragraph alignments such as left - align, center - align and etc.. Are available on every word processing programs. The answer to your question is LEFT - ALIGN.
7 0
3 years ago
PAGE<br>DATE<br>0 What types of information should be there internet?​
Hoochie [10]

Answer:

The kind of information that should be on the internet must be one that is good.

Explanation:

Qualities of good information are as follows:

A) Relevance:

For the purpose it was published, to the audience, it was intended for, every information put out there on the internet must be relevant. This is key and not negotiable. Perhaps its relevance may wane over time, however, in the period it was posted, it has to speak to the intended purpose.

B) Complete:

Incomplete information automatically becomes misleading or useless.

To say Donald Trump was a United States president in 2021 would be factually correct. However, that statement is misleading because he also stepped down in the same year for Joe Biden. Now that gives a complete and true picture of the Presidency of the United State of America (POTUS) in 2021.

 

C) Accuracy:

Accuracy means there is little chance for misinterpretation, misinformation, and misrepresentation of facts.

Essentially, if it's a spade, don't call it a pen.

D) Clarity:  

"In 2020, delegates to the White House to speak about the problems so that we can be happy so the problems have to go away soon"

The above statement at its best only tells us that someone sent delegates to the White House to speak about problems. We don't know what the problem was, who the delegates were, nor do we know who sent them. Clarity is key. The next point conciseness also helps with this.

E) Conciseness

Another word for this is brevity.

This does not necessarily mean one must only publish short messages on the internet. It simply means that you must make your point with the least amount of words possible.

F) Authenticity

Call it trustworthy information if you like. People make decisions based on information they have received. If one must put out information on the internet, it must be true, factual, and correct.

Cheers

5 0
3 years ago
Which is the correct APA format in books?​
Nina [5.8K]

Answer:

It includes the author's last name, the year, and  a page number. In the reference list, start with the author's last name and initials, followed by the year. The book title is written in sentence case

4 0
3 years ago
Read 2 more answers
What are the text or graphics that are lighter than the main text located in a document's background called?
faust18 [17]
That would be a watermark
7 0
3 years ago
An increase in Consumption will ___________ in the Classical Model of Aggregate Demand.
Step2247 [10]
The answer to your question is b
8 0
3 years ago
Other questions:
  • ] why was drone-defense equipment deployed at airports in the United Kingdom?
    13·1 answer
  • Someone may choose to own a car instead of leasing because:
    14·2 answers
  • What is the efficiency (Big O Notation) of quicksort algorithm?
    15·1 answer
  • Which layer concerns the gateway to the network?
    10·1 answer
  • When executing System.out.println(a2), the toString() method in the Object class is invoked. The program cannot be compiled, bec
    11·1 answer
  • A) A cable that is mainly used in the cable television network
    11·1 answer
  • An extract report lists ____________.
    14·1 answer
  • Describe how operating system use the following security tools: firewall, automatic updating, antivirus software, spyware and ma
    11·1 answer
  • What is the difference between the dom api and the html dom api.
    8·1 answer
  • Using AI to filter potential job applicants might be considered _____
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!