“At times of low volume cardiac output, cardiopulmonary volu…

Questions

"At times оf lоw vоlume cаrdiаc output, cаrdiopulmonary volume receptors detect low volumes and relay information to the hypothalamus in the brain. In response, the hypothalamus increases the production of the steroid hormone vasopressin. Vasopressin causes the body to retain water, increasing salt concentration in the bloodstream, thereby increasing blood pressure and cardiac output." What is the effector in this homeostasis example?

1.  Given the fоllоwing impоrt stаtements:      A.  import jаvа.util.Scanner; //©LS  B.  import java.util.InputMismatchException;  C.  import java.io.File; //©LS   D.  import java.io.PrintWriter;  E.  import java.io.IOException; //©LS  F.  All of the above. Which ones will be needed for file input/output?  Enter letter only:  [ltr1] 2.  Choose from below the instance field declarations associated with file processing.         A.  private String fileName; //©LS   B.  private double salary;   C.  private PrintWriter outputFile; //©LS   D.  private Scanner input  = new Scanner(System.in);   E.  B only. //©LS   F.  Both A, B, and C.   G.  A, B, C, D. Enter a letter for the answer:  [ltr] 3.  Code a createFile method that handles input/output exceptions through its header.  public void createFile() [throwsClause] //©LS Insert throws clause for handing                                         //©LS an IO (input/output) exception.{   System.out.printf("%nEnter the file name for salary history records "                     + "(WARNING:  This will erase a pre-existing file!):  "); //©LS   fileName = input.nextLine();    [printWriterObj]  //©LS Complete creating the PrintWriter outputFile, which has                         //©LS already been partially declared at the class level. }//©LS END Method   4.  Code a setSalaryHistory method that will only handle an exception inside its body, allow the user to re-input a double, and write the double value to a file. public void setSalaryHistory() //©LS{   [cont]  //©LS Declare cont as a boolean and initialize to default value.    int noSalaries = 0, count = 0; //©LS    System.out.printf("%nHow many monthly salaries for an "                    + "employee will be entered?  "); //©LS    while(!input.hasNextInt()) //©LS   {      input.nextLine();      System.out.printf("%nInvalid integer!  Try again.%n"); //©LS    }//©LS END while NOT an integer    noSalaries = input.nextInt(); //©LS    do //©LS   {        do       {           [try] //©LS Beginning of block that attempts code that might throw exceptions.         {            System.out.printf("%nEnter salary %d:  ", count + 1); //©LS             salary = input.nextDouble(); //©LS             [outputObj].printf(count + 1 == noSalaries ? String.format("%.2f", salary)            : String.format("%.2f, ", salary)); //©LS Write salary to the output file.                                                  //©LS Can't use printf.             [setCont] //©LS Set cont to not re-enter inner do-while for                      //©LS next salary when no input errors are thrown.          }//©LS END block          [catch] //©LS Beginning of block that handles an input mismatch called e.         {            input.nextLine(); //©LS Clear buffer.             [errMs] //©LS Print "Invalid salary entry, try again!"             [resetCont] //©LS Set cont so loop re-enters when there's an exception.          }//©LS END block       }while([testExpression1]); //©LS Insert what is tested for inner do-while       count++;    }while([testExpression2]); //©LS Insert what is tested for outer do-while.                                //©LS HINT:  Based on noSalaries.    [releaseOutput] //©LS Code Java statement that releases outputFile                    //©LS to avoid resource-leaks. }//©LS END setSalaryHistory():  void 5.  Which line of code throws the exception for the double?©LS  Enter a letter for the answer:  [ltr2]   A.  while(!input.hasNextInt()) //©LS  B.  fileName = input.nextLine();  C.  salary = input.nextDouble(); //©LS