miasuhyla 0 Newbie Poster

i don't know how to make it..but it is an assignment that must pass up on this sunday..can someone help me..its really important..it should applied array,object and classes...please help me...:(

Suppose the weekly hours for all employees are stored in a two-dimensional array. Each row records an employee’s seven-day work hours with seven columns. For example, the following array stores the work hours for eight employees. Write a program that displays employees and their total hours

Su M T W Th F Sa
Employee 0 2 4 3 4 5 8 8
Employee 1 7 3 4 3 3 4 4
Employee 2 2 3 4 3 3 2 2
Employee 3 9 3 4 7 3 4 1
Employee 4 3 5 4 3 6 3 8
Employee 5 3 4 4 6 3 4 4
Employee 6 3 7 4 8 3 8 4
Employee 7 6 3 5 9 2 7 9

miasuhyla 0 Newbie Poster

Write a class called Person.java that has instance variables matric number, name, date of birth, and gender. Use appropriate data types for these instance variables. Include constructor and set and get methods for all instance variables.

public class Q1L6{

   class Person {
   	    String name;
   	    int DOB;
   	    int MatricNum;
   	    char gender;
   }

   class printingPerson{
   public static void main(String[] args) {
	 Student printingPerson = new Student();
		  System.out.println("Name: \t" + printingPerson.name);
		  System.out.println("Date of Birth:\t" + printingPerson.DOB);
		  System.out.println("Matric Number:\t" + printingPerson.MatricNum);
		  System.out.println("Gender:\t " + printingPerson.gender);
	}//End Main Method
}



	public givingPerson(String name,int DOB,int MatricNum,char gender ) {
		printingPerson.name = name;
		printingPerson.DOB = DOB;
		printingPerson.MatricNum = MatricNum;
		printingPerson.gender = gender;
		}

			//NAME
		 public name getName() {
			return name;
		}

			//DOB
		public DOB getDOB() {
			return DOB;
		}

		  	//MATRIC NUMBER
		public MatricNum getMatricNum() {
		  	return MatricNum;
		}

		  	//GENDER
		public gender getgender() {
		  	return gender;
		}


}
miasuhyla 0 Newbie Poster

Write a class called Person.java that has instance variables matric number, name, date of birth, and gender. Use appropriate data types for these instance variables. Include constructor and set and get methods for all instance variables. Draw UML diagram for class Person.

Then, create an application class that asks the user to supply the required information for a Person object and then instantiates a Person object.

miasuhyla 0 Newbie Poster

Write a program that generates one hundred random integers between 0 and 9 and displays the count for each number. Your program must have method that returns the counts for each number.
Hint: Use (int)(Math.random() * 10) to generate a random integer between 0 and 9. Use an array of ten integers, say count, to store the counts for the number of 0’s, 1’s, …, 9’s.