The parents of a preschool-aged child ask the nurse to help…

Questions

Plаy the аudiо excerpt belоw. If the аudiо is clear and works properly, click "True" and quit the exam. If not click "False" and try the fixes mentioned in the instructions. If all else fails, contact Dr. Clark at fclark@music.gatech.edu.  

This cоntent is prоtected аnd mаy nоt be shаred, uploaded, or distributed. © Linda Shepherd Part 1:  ©LS  Code a program called Book with 2 constructors and 5 get methods; then, code a DemoBook application class that will process 2 Book objects. ©LS NOTE:  There is no space between a method name and the open parenthesis.  Be aware of what code is already written.©LS Line comments can be word-wrapped. ©LS   [classHdr] //©LS Code Book header.{   [bookObjs] //©LS Declare a static noBookObjects field.   [title] //©LS Declare a title instance field.   [author] //©LS Declare an author instance field.   [copiesSold] //©LS Declare a copiesSold instance field.    [totalSold] //©LS Declare a static totalCopiesSold field.   [1sConst]  //©LS Code a no-args constructor.   {      [incrementnoBks]  //©LS Post increment noBookObjects.   }//©LS END 1st Constructor   [2ndConst] //©LS Code a constructor that accepts title, author, and copiesSold.   {      this.title = title;      [thisAuthor] //©LS Assign parameter author to field author.      [thisCopiesSld] //©LS Assign parameter copiesSold to field copiesSold.      [add2Total] //©LS Add copiesSold to totalCopiesSold.      [postIncreNoBks] //©LS Post increment noBookObjects.    }//©LS END 2nd Constructor    public String getTitle() //©LS    {      return title; //©LS    }//©LS END getTitle()   [getAuthor] //©LS Code instance get method for author.   {      [retAuthor] //©LS Code return statement for author.   }//©LS END get Method   public int getCopiesSold() //©LS    {      return copiesSold; //©LS    }//©LS END get Method   [getTotal] //©LS Code static get method for totalCopiesSold.   {      [retTotal] //©LS Code return statement for totalCopiesSold.   }//©LS END get Method   [getNoBkObjs] //©LS Code get method for noBookObjects.   {      [retNoBkObjs] //©LS Code return statement for noBookObjects.   }//END get Method}//©LS END CLASSPart 2: ©LS Below is the data that will be sent to the constructor for each book:©LS 1st Book Data:  The Hobbit, J.R.R. Tolkien, 1000000002nd Book Data:  Memoirs of a Geisha, Arthur Golden, 4000000 public class DemoBook //©LS {  [main] //©LS Code main method header.  {    [book1] //©LS Code a Book object called book1 with the data indicated above.    [book2] //©LS Code a Book object called book2 with the data indicated above.    [forHdr] //©LS Code a for header with i initialized to 1. Test against the noBookObjects retrieved with its get method.    {      System.out.printf("%n%nBook %d: %s" //©LS             + "%nAuthor: %s" //©LS             + "%nCopies Sold: %,d", i, //©LS               i == 1 ? book1.getTitle() : book2.getTitle(), //©LS               [2ndTernary] //©LS Code the ternary argument for the author for book1 or book2.              [3rdTernary]); //©LS Code the ternary argument for the copiesSold for book1 or book2.     }//©LS END for    System.out.printf("%n%nTOTAL COPIES SOLD: %,d%n", [getTotCopiesSld]); //©LS Use a method call to get totalCopiesSold as the argument.   }//©LS END main()}//©LS END APPLICATION CLASSThis content is protected and may not be shared, uploaded, or distributed. © Linda Shepherd