View
 

Lab 3: Geometry

Page history last edited by Mr. Kretsch 7 months, 4 weeks ago

Lab 3: Geometry Name: ________________________________

Objective: Writing arithmetic expressions

Quiz: Given the followjng declarations, evaluate the following expressions

int n = 5;

int m = -40;

int x = 1.5;

int y = 7.5e-1;

  1. 2 * n + m
  2. 2 * (n + m)
  3. (n - m) % 3
  4. (x + y) * x + y
  5. m * x

Getting Started

  1. Create a New Project called Geometry in “R:\AP Java\2011-2012\<your id>”

  2. Import the files from R:\AP Java\Labs\Lab 3 Geometry

  3. Open the Geometry class in the editor

Assignment

  1. Change the @revised and @version comments.

  2. Modify the program according to the comments in the file:

  3. Compile the program and execute the main method.

Wrap-up

  1. Print this page and hand in

Grading

Feature  Points  Out of  Notes
Quiz   5  
Input   3  
Circle     
Triangle     
Square     
Total   20  

Notes

 
 
 
 
 
 
 
 

 

Comments (0)

You don't have permission to comment on this page.