Goals

Note:

  1. Each exercise below should be in a seperate file. The classname name should be Exercise# where # is the exercise number.
  2. Each file must start out with
    	/*
    	 * Name: Your Name 
     	 * Description: What does the program do
    	 * Date: The date you last edited the program
    	 */
    
  3. Write all programming statements within the main method.
  4. Make sure you comment your program wherever necessary (do not comment every line)

Exercise1

Write a Java program that will print the first letter of your name to standard output in letters that are nine lines tall. Each big letter should be made up of a bunch of *'s. See sample output given:

           ******         
           **    **       
           **     **      
           **      **     
           **      **     
           **      **     
           **     **      
           **    **       
           *****          

Exercise 2

Write a program that helps the user count his change. The program should ask how many quarters the user has, then how many dimes, then how many nickels, then how many pennies. Then the program should tell the user how much money he has, expressed in dollars. Download and Add Jar file in Dr Java (TextIO.jar)


Exercise 3 (To be submitted)

Write a program that asks the user how many eggs he/she has and then tells the user how many dozen eggs he/she has and how many extra eggs are left over.

A gross of eggs is equal to 144 eggs. Extend your program so that it will tell the user how many gross, how many dozen, and how many left over eggs she has. For example, if the user says that she has 1342 eggs, then your program would respond with

Your number of eggs is 9 gross, 3 dozen, and 10

since 1342 is equal to 9*144 + 3*12 + 10.


Submission Procedure

  1. Log into Blackboard
  2. Go to ESE112-001-2008A: INTRO TO ESE site
  3. Click on Course Tools > Digital Dropbox
  4. Click on Add file, upload (use Browse button) file from Exercise3.java.
  5. Click Submit and Ok
  6. Now Click on Send File, select the file you just upload (ue Browse button) and fillin in Title (assignment name) and any Comments.
  7. Finally, click Submit to send to Instructor (you will get a message that it has been sent).