Questions
Your objective is to write a well-documented simple program using classes, a loop, and nested ifs...

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...

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:

  1. Bad debt expense accrued in 2016 was $5,000. Write-offs of uncollectible accounts in 2016 were $1,200. Write-offs are taken on all account balances that are six months old.
  2. The company reported cash received on one-year subscriptions of $300,000 for GAAP and Tax purposes. Unearned revenue on that amount was $140,000 on the December 31, 2016 year-end balance sheet.
  3. Depreciation on Property, Plant and Equipment was $65,000 for financial reporting purposes and $80,000 for tax purposes. Property, Plant, and Equipment is correctly listed as a non-current asset on Deferential Tacks’ balance sheet.
  4. Premiums on executive life insurance policies amounting to $5,000 were expensed for financial reporting purposes.
  5. Non-taxable interest income of $2,500 was reported for financial reporting purposes.

Required:

  1. Compute 2016 taxable income.
  2. Compute the December 31, 2016 balances in the deferred tax asset and deferred tax liability accounts, separately for each timing difference that affects those balances.
  3. Journal entry: Assume that Deferential Tacks expects to have adequate taxable income to utilize all future deductible amounts. Prepare the journal entry to record tax expense, tax payable, and each deferred tax account for December 31, 2016. Do not net the separate deferred tax asset and deferred tax liability accounts in the journal entry.
  4. Financial statement presentation:

  1. Show the Income Statement for the year ended December 31, 2016, beginning with Income before Tax.
  2. Compute the effective tax rate in 2016.
  3. Show the Balance Sheet presentation of current and deferred taxes on December 31, 2016. Use the information related to each timing difference to appropriately classify current and non-current deferred tax items. Assume that the company still owes the full amount of the 2016 income tax payable.

In: Accounting

Waleed decided to construct a probability distribution of tossing five coins. He considers his random variable...

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...

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)....

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...

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...

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...

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...

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...

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