Your objective is to write a well-documented simple program using classes, a loop, and nested ifs to simulate an ATM using JAVA.
1. Create an ATM class with class variables name, pin, and balance, a constructor with parameters to assign values to the three instance variables, methods to get the name, pin, and balance, and methods to handle validated deposits and withdrawals ( deposit and withdrawal amounts cannot be negative, and withdrawal amount must not be greater than the existing balance).
2. In the ATMTest class, read the names, 4 digit pin numbers, and account balances of two customers into two instances of the ATM class. Display the two customers names, pins, and balances formatted.
3. Now that you have all your customers’ information start your ATM to accomplish the following within an infinite loop,
a). Display a welcome screen with your bank’s information and prompt for and read the customer entered pin.
b). Use a nested if to match the entered pin with one of the two customers’ pins. If the entered pin number matches that of one of the customers, then:
i. Welcome the customer by name and display the balance.
ii. Display option to 1. DEPOSIT, 2. WITHDRAW or 3. EXIT.
iii. If option 1 is selected, then use the instance deposit method to prompt for deposit amount, read, and add a valid deposit amount to the customer’s balance
iv. If option 2 is selected, then use the instance withdrawal method to subtract a valid withdrawal amount from the customers balance
v. If option 3 is selected, go to step a.
4. Should the entered pin number not match either of the two customers, notify the customer that the entered pin is not valid and go to step a.
5. Selection of the EXIT option must display welcome/login screen (step a).
6. Should an incorrect option be entered, notify the user and display the original welcome/login screen (step a).
In: Computer Science
Deferential Tacks Corporation began operations in 2016, reporting $260,000 income before tax in its GAAP income statement. The enacted tax rate was 35% in 2016 and is expected to be 30% in 2017 and beyond. The following GAAP versus tax differences arose in 2016:
Required:
In: Accounting
Waleed decided to construct a probability distribution of tossing five coins. He considers his random variable ?, to be the number of Tails on all five coins.
a. List the sample space for the experiment.
b. What are the possible values for ??
c. Construct a probability distribution for his experiment.
d. Find ?(−4?+16).
e. Find ?(−6?).
In: Statistics and Probability
There is a total of 6 trials for an experiment involving the measurement of standard enthalpies (kcal/mol).
a) If additional data points are taken but the standard deviation and mean remain unchanged, what will happen to the 95% confidence interval? Would it increase, decrease, or stay the same?
b) What are the different ways to identify a systematic error in her data for this experiment ?
In: Chemistry
Design a microscopy experiment (widefield) testing the effect of Vertiporfin on cell death (step by step). What do we look for? which colour are we running, how long are we running it for?
Note: don't worry about the microscope, just design an experiment for staining of cells so it can be looked under widefield microscope
In: Biology
Waleed decided to construct a probability distribution of tossing five coins. He considers his random variable ?, to be the number of Tails on all five coins.
a. List the sample space for the experiment.
b. What are the possible values for ??
c. Construct a probability distribution for his experiment.
d. Find ?(−4? + 16).
e. Find ?(−6?).
In: Statistics and Probability
Imagine that you are conducting an experiment in which each participant is randomly assigned to one and only one level of the independent variable throughout the course of the experiment. Which term below would best describe this experimental design?
A correlational study
A between-groups research design
A within-groups research design
A confounding variable design
In: Math
In a laboratory experiment, 2.0 g of aqueous lead (II) nitrate was mixed with 2.0 g of aqueous sodium chloride. Upon completion of the experiment, 0.65 g of lead (II) chloride were obtained.
a) Provide the balanced equation.
b) What is the limiting reactant?
c) What is the theoretical yield?
d) What is the percent yield?
In: Chemistry
In a lab where the Helmholtz coil equation combined with energy conservation is used to determine the charge per mass ratio of the electron what are some random and systematic errors, how can they be minimized, and what does a vector diagram of the experiment look like? Can you explain to me how an experiment of this sort would look?
In: Physics
Economists argue that some environments are more conducive to economic growth than others. One of the ways economists differentiate one environment from another is in terms of its institutions. An institution is “the rules of the game in a society or, more formally, the humanly devised constraints that shape human interaction: the rules and regulations, laws, customs, and business practices of a country.” Do you agree that institutions are conducive to economic growth? If so, how? Briefly discuss. Search entries or author
In: Economics