/**
 * Class for creating a template for a simple Java program
 * 
 * @author Adham Hammad: ahamma4 AT uic DOT edu
 */

// Note the name of the class in the following line MUST
// match the name of the file. This is stored in a file
// named: ahamma4Lab2.java 
public class ahamma4Lab2 
{
  
 public static void main (String[] args) 
 {
   System.out.println("Begin Java Exection");
   System.out.println("");

   System.out.println("Adham Hammad");
   System.out.println("ahamma4");
   System.out.println("CS 101");
   System.out.println("Friday at 11");
   System.out.println("");
   int numMan, numWives;  //declaring variables   

   numMan = 1;            // determining the number of men 

   numWives = numMan * 7; // determining the number of wives 
   System.out.println ("The number of wives are: " + numWives); 
    
    
  int numSacks;
  numSacks = numWives * 7;
  System.out.println ("The number of sacks are: " + numSacks);
   
  int numCats;
  numCats = numSacks * 7;
  System.out.println ("The number of cats are: " + numCats);

  int numKits;
  numKits = numCats * 7;
  System.out.println ("The number of kits are: " + numKits);
   
  int numTotal;
  numTotal = numKits + numCats + numWives + numMan;
  System.out.println ("The total number of living things met is: " + numTotal);
    
    

// put your Java Program here


   System.out.println("");
   System.out.println("End Java Exection");
 }
} // end of Template class 
Edit | Attach | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2012-01-25 - 04:51:09 - Main.ahamma4
 
Copyright 2016 The Board of Trustees
of the University of Illinois.webmaster@cs.uic.edu
WISEST
Helping Women Faculty Advance
Funded by NSF