Aqua Phoenix
     >>  Lectures >>  Java 1  
 

Navigator
   
 
       
   

1.20 Homework 1 Solutions

1.20.1 Part 1

  HW1Part1.java  
Output:

> java HW1Part1
  Name:        Alexander Haubold
  CunixID:    ah297
  E-Mail:      ah297@columbia.edu
  School:      GSAS
  Level:      Graduate
  Semester:    5
  Platform:    Solaris
  Languages:  Java, C, Perl
  Familiarity: Advanced

1.20.2 Part 2

  HW1Part2.java  
Output:

> java HW1Part2
int 3101 = int 3000 + int 101
int 3101 = (int) double 101.3 + int 3000
double 3101.3 = double 101.3 + (double) int 3000
long 300600901200 = long 100200300400 * (long) float 3.1415
float 32.245743 = (float) double 101.3 / float 3.1415