Questions
Create a Java project called Lab3B and a class named Lab3B. Create a second new class...

  1. Create a Java project called Lab3B and a class named Lab3B.
  2. Create a second new class named Book.
  3. In the Book class:
    1. Add the following private instance variables:
      1. title (String)
      2. author (String)
      3. rating (int)
    2. Add a constructor that receives 3 parameters (one for each instance variable) and sets each instance variable equal to the corresponding variable.
    3. Add a second constructor that receives only 2 String parameters, inTitle and inAuthor. This constructor should only assign input parameter values to title and author. rating won’t be given a value here.
    4. Add a public String method named getTitle (no parameter) that returns title.
    5. Add a void method named setRating with an int parameter (inRating). It will set rating equal to inRating.
    6. Add a public String method toString (no parameters). It should create and return a String variable with all the book’s instance data (like you did in the Employee class.)
  4. Back in the main Lab3B class.
    1. Declare and instantiate a Book object named book1 sending the following parameters to the constructor ("A Tale of Two Cities", "Charles Dickens", 4)
    2. Declare and instantiate a Book object named book2 sending the following parameters to the constructor ("Foundation", "Isaac Asimov")
    3. Call setRating for book2 sending 5 as a parameter.
    4. Call getTitle for book1 and print the returned value.
    5. Use our toString shortcut to print all of book1’s information.
    6. Print a blank line.
    7. Use the same coding to print all of book2’s info.

Your output should be:

A Tale of Two Cities

Title: A Tale of Two Cities

Author: Charles Dickens

Rating: 4

Title: Foundation

Author: Isaac Asimov

Rating: 5

In: Computer Science

Let A ∈ L(U, V ) and B ∈ L(V, W). Assume that V is finite-dimensional....

Let A ∈ L(U, V ) and B ∈ L(V, W). Assume that V is finite-dimensional.
Let X be a 3 × 5 matrix and Y be a 5 × 2 matrix. What are the largest and smallest possible ranks of X, Y, and XY? Give examples of the matrix to support your answers

In: Advanced Math

For the following exercises, given v, draw v, 3v and 1/2 v. 〈−3, −2〉

For the following exercises, given v, draw v, 3v and 1/2 v.

⟨−3, −2⟩

In: Math

For the following exercises, given v, draw v, 3v and 1/2 v. 〈−1, 4〉

For the following exercises, given v, draw v, 3v and 1/2 v.

⟨−1, 4⟩

In: Math

For the following exercises, given v, draw v, 3v and 1/2 v. 〈2, −1〉

For the following exercises, given v, draw v, 3v and 1/2 v.

⟨2, −1⟩

In: Math

What is Factorial Experiment Types of Factorial Experiment Uses of Factorial Experiment in research Example of...

What is Factorial Experiment

Types of Factorial Experiment

Uses of Factorial Experiment in research

Example of Each types of Factorial Experiment

Conclusion

Reference

In: Statistics and Probability

1. (-)-Borneol is the form of borneol that you will be using and is therefore chiral....

1. (-)-Borneol is the form of borneol that you will be using and is therefore chiral. Find and show the correct structure for (-)-borneol, its IUPAC name (including the configuration for all three stereocenters), the melting point for the exact isomer of borneol that you will be using, and find the melting point of racemic borneol.

2. Since you are starting with (-)-borneol, your camphor product should only be one enantiomer. Find and show the correct structure and the melting point for the camphor product that is produced from the (-) isomer of borneol and compare it to the melting point for racemic camphor.

3.Find and show the correct structure for the isoborneol product that should be the eventual product starting from (-)-borneol. Provide the mp and IUPAC name for the optically active product (including stereochemistry) that you will obtain in this experiment and also find the mp for the racemic version.

4. Show the entire sequence of reactions starting from (-)-borneol to camphor to isoborneol with the correct stereochemistry.

5. Predict the composition of your product, isoborneol. Is it only isoborneol or is another product produced as well?

In: Chemistry

Why is research important? Why is an introduction important in a research proposal? What information should...

Why is research important? Why is an introduction important in a research proposal? What information should the author communicate to the audience/reader in the introduction? (Your original response should be at least 250 words).

In: Nursing

The author suggests that progress toward achieving gender equity in high school and college sports has...

The author suggests that progress toward achieving gender equity in high school and college sports has stalled in recent years. What indicators support this conclusion and why has progress slowed?   

In: Economics

Compare and contrast the contact situations of African Americans and Irish immigrants. What were the key...

Compare and contrast the contact situations of African Americans and Irish immigrants. What were the key differences pointed out by the author of the text? How are these differences reflected in the current situations of both these groups

In: Psychology