CSSE 220: Object-Oriented Software Development
HelloWorldAgain

Work on this exercise by yourself, but be quick to ask questions of your instructor, student assistants and classmates as desired.

Goals

The goals of this exercise are to reinforce the concepts from the HelloWorld project:

Instructions

  1. Read my solution to the HelloWorld project.
  2. In Eclipse, create a new Java project called HelloWorldAgain

  3. Add a single class, also called HelloWorldAgain, with a main method.
  4. Write a method called squares that takes an integer n and prints the squares of the integers from 1 to n on the console, each on a line by itself.
  5. Write a method called cosines that takes two integers start and stop and prints the cosines of the integers from start to stop, inclusive, on the console, each on a line by itself.
  6. Write a method called bigCosines that takes two integers start and stop and prints on the console, each on a line by itself, all the integers from start to stop, inclusive, whose cosine is bigger than 0.8.
  7. Make sure your code uses good style, in particular:
  8. Add your project to your personal repository.