Questions
Create a Java class file for an Account class. In the File menu select New File......

  1. Create a Java class file for an Account class.
    1. In the File menu select New File...
    2. Under Categories: make sure that Java is selected.
    3. Under File Types: make sure that Java Class is selected.
    4. Click Next.
    5. For Class Name: type Account.
    6. For Package: select csci1011.lab8.
    7. Click Finish.
    8. A text editor window should pop up with the following source code (except with your actual name):
    1. csci1011.lab8;

      /**
      *
      * @author Your Name
      */
      public class Account {

      }
  1. Implement the Account class.
    1. Add a public enum called ACCOUNT_TYPE with two values CHECKING, SAVING
    2. Add the following private instance variables to the Account class:
      • An instance variable called aType of type Enum ACCOUNT_TYPE.
      • An instance variable called accountOwner of type String.
      • An instance variable called interestRate of type double.
      • An instance variable called balance of type double
    3. Add getters and setters for the four instance variables of item (b) to the Account class:
    4. Add the following methods to the Account class:
      • A void method called initialize that takes a parameter of type ACCOUNT_TYPE, a String, two doubles and uses those arguments to set the values of the accountType, accountOwner, interestRate, and balance instance variables.
      • A void method called display that displays the account information.
      • A void method called deposit with one parameter of double that adds the given parameter to the balance instance variable.
      • A void method called withdraw with one parameter of double that deduct the given parameter from the balance instance variable. This method prints an error message when the given parameter is greater than the balance. In this case no money should be withdrawn from the account.
  • In the main method of your main class, create two Account objects and perform the following:
    • Initialize the first account objects with SAVING as the accountType and other parameters of your own choice.
    • Initialize the first account objects with CHECKING as the accountType and other parameters of your own choice.
    • Display both accounts.
    • Deposit $200 from the first account
    • Withdraw $500 from the second account
  • Display both accounts.
  • Run the main program to see if the tests were successful.
    • Here is a sample output of the program.

Account Type: SAVING

Account Owner: Customer B

Interest Rate: 1.1

Balance: 500.0

Account Type: CHECKING

Account Owner: Customer A

Interest Rate: 1.2

Balance: 200.0

Cannot withdraw more than account balance

Account Type: SAVING

Account Owner: Customer B

Interest Rate: 1.1

Balance: 700.0

Account Type: CHECKING

Account Owner: Customer A

Interest Rate: 1.2

Balance: 200.0

In: Computer Science

Please do chi-square analysis of the following: Experiment 1: without heat lamp Experiment 2: with heat...

Please do chi-square analysis of the following:

Experiment 1: without heat lamp Experiment 2: with heat lamp
Soil Leaves Rock Other Soil Leaves Rock Other
Expected 5 5 5 0 Expected 5 5 5 0
Observed 10 3 2 0 Observed 1 5 9 0

In: Statistics and Probability

Q#5 Design an experiment to answer the following question: Does aspirin keep cut roses fresher longer?...

Q#5

Design an experiment to answer the following question:
Does aspirin keep cut roses fresher longer?
1. What is your hypothesis?
2. What is your experimental group?
3. What is your control group?
4. Discuss how you will perform the experiment. What is your independent variable? What is
your dependent variable?

In: Anatomy and Physiology

in a lab experiment to test the change in temperature of NaCl and the change in...

in a lab experiment to test the change in temperature of NaCl and the change in temperature of water:

Specific heat of NaCl is 0.88
specific heat of DI water is 4.2

in the experiment, the change in temperature for the water was much greater than the change in temperature of the table salt as well as the change in energy.
(when using equation E = g C × change in T)

why did this occur?

In: Chemistry

If you conduct and experiment 1500 times independently, i=1,2,3,...1500. Let y1, y2.... yN be i.i.d observations...

  1. If you conduct and experiment 1500 times independently, i=1,2,3,...1500. Let y1, y2.... yN be i.i.d observations from this experiment, yi=1 if heads with a probability of β; yi=0 if tails with a probability of 1-β. If you get 600 heads and 900 tails, what is the βMLE
A.

0.4

B.

0.5

C.

0.6

D.

0.7

In: Statistics and Probability

Assume you have isolated S.aureus from your skin. Design an experiment on how would you determine...

Assume you have isolated S.aureus from your skin. Design an experiment on how would you determine whether it is penicillin and erythromycin resistant? (Make sure to include a hypothesis and how you would design the experiment. Also include proper controls and discuss briefly the techniques you would use). I need one page please.

In: Biology

An experiment has been initiated in a laboratory where recombinant DNA technology has been used to...

An experiment has been initiated in a laboratory where recombinant DNA technology has been used to substitute the gene responsible for change of colour in chameleon with another gene responsible for “glowin-the-dark”. If this experiment is successful, chameleons carrying the “glow-in-the-dark” gene will not be able to change their colours any longer. Discuss the implication of these results in terms of ethics and conservation biology.

In: Biology

Your lab partner did an experiment where he added drug to a tissue, he thinks the...

Your lab partner did an experiment where he added drug to a tissue, he thinks the drug caused receptor desensitization. He froze the tissue so it could be used in biochemical assays. What experiment would you do to test if the desensitization is the result of acute or chronic drug exposure? How would you interpret the results obtained?

In: Anatomy and Physiology

In all ligand titrations, the concentration of ligand is varied around the KD of the complex....

In all ligand titrations, the concentration of ligand is varied around the KD of the complex. In a stoichiometric titration, what is the concentration of receptor in relationship to KD? How does this differ from a binding titration experiment? Can you get a KD from a stoichiometric binding Titration? Why do the stoichiometric titration experiment this way, and what kind of information does it give you?

In: Chemistry

in a lab experiment to test the change in temperature of NaCl and the change in...

in a lab experiment to test the change in temperature of NaCl and the change in temperature of water:

Specific heat of NaCl is 0.88
specific heat of DI water is 4.2

in the experiment, the change in temperature for the water was much greater than the change in temperature of the table salt as well as the change in energy.
(when using equation E = g C × change in T)

why did this occur?

In: Chemistry