Posted by AHMED on Monday, October 15, 2012 at 5:01pm.
Write Java programs for each of the following.
1. Students in a university class are being organized into groups of three for
an upcoming research project. To model this situation:
a. Write a Student class that stores the name, email address and phone
number of a single student. Include two constructors - one that allows
initial values to be set for each of these attributes via parameters and a
second that simply initializes the attributes to empty strings. Your class
should have getter and setter methods for all attributes as well as a
toString method that returns all information about the student in a nicely
b. Write a Group class to collect the three students comprising a group.
Your class should have a single getter and a single setter method to get or
set a particular student. Note that the caller will indicate which student
(1,2 or 3) is to be gotten or set via a parameter. Also include a simple
constructor that sets the three students to null and a toString method that
returns all information about all students in the group.
c. Write a driver class to create a couple of groups, populate them with
students and test your methods.
- COMPUTER SCIENCE JAVA - badd, Friday, April 24, 2015 at 2:48pm
ânDefine a new class Coordinator that represent a faculty member who works a certain number of hours each month. In this case, the salary is computed by multiplying the working hours by the hourly payment rate.
ä¤ânCreate a new object of class Coordinator and add it to the list created in the exercise above. Display its information including the salary
Answer this Question
More Related Questions
- COMPUTER SCIENCE JAVA - Assignment problems: Write Java programs for each of the...
- Java Programming - I'm new to Java and I'm not sure how to write the source code...
- Java - I am trying to write an algorithm for my JAVA class and am having some ...
- Computer Language Java - What is the concept of multi-threading in java and how ...
- JAVA PROGRAMMING - im new to java and this is my first assignment can anyone ...
- computer science - Hi, I have this quick question: A Java interface can be used ...
- Computer Science-Java - Hi, I have to write a method that returns my first name...
- Computer Science - Design a GUI java application which dsipalys data of an array...
- Computer Science - Java - Hi, For an assignment I am doing, we have to have 2 ...
- Computer Science - I got an assignment to write all prime numbers up to 100 in ...