HW #51

DUE MONDAY AFTER THANKSGIVING

 

Udacity Problem Set #4, skip #8

Note:

readInt is special to CodeHS.  The real way to read a String is to use the Scanner class like this:

Scanner in = new Scanner(System.in);

System.out.println(“Please enter a name: “);

String name = in.read();

 

screen-shot-2016-11-19-at-4-07-31-pm

HW #50

DUE TUESDAY, November 22

 

Udacity Problem Set #3

#1-20, skip #11

And Quiz Question #1: Yard Calculator

 

Screen Shot 2016-11-19 at 1.51.32 PM.png

Help:

  1. The reserved word “final” will create a constant.  We use ALL CAPS for the variable name:  double final int MINUTES_PER_HOUR = 60;

2. Remember that “casting” will turn one variable type into another:  (int) 45.6 = 45