Write a driver class that maintains lists of students

Assignment Help Computer Engineering
Reference no: EM132192987

Write an application in java that models courses, students, and faculty members in a university.

General Directions

Use proper Java naming conventions.

All input and output in this lab must use JOptionPane (except where otherwise noted).

each class you create will have private instance variables and any necessary getters and setters.

Be sure to implement toString() for each class.

Think carefully about how to organize the input/output for this lab *before* you begin coding.

1)The Address Class

An address has a street number, street name, city, state or province, and country.

2)The Person Class

A Person has a name and an Address (represented by an object of class Address, not a String). Note that the subclasses of Person inherit the fields and methods of Person. You may need to override some of the methods in the subclasses.

3)The Student Class

Student is a subclass of Person. In addition to the data inherited from Person, a student has CIN and a course schedule represented by an ArrayList of Courses (objects of class Course). You must provide ways for a Student to add and drop an existing Course.

4)The FacultyMember Class

FacultyMember is also subclass of Person. A FacultyMember has an employee id number and a teaching schedule, which is an ArrayList of Courses.

Provide a way to assign a FacultyMember to teach an existing Course and for a Faculty member to find a class in the list and drop it.

5)The Course Class

A course has a course identifier (eg, EE-132) and a number of units (int).

6)Driver Class

Write a Driver class that maintains lists of Students, Courses, and FacultyMembers and has a menu that provides ways to list them and to create them and add them to the list.

Provide ways to delete Students and FacultyMembers and for Students and FacultyMembers to add and delete Courses from their course schedules. However, you do not need to provide a way to delete a Course from the list of Courses.

Include a method that can be called from main that will use your methods to add and delete some hard-coded test data (several students, several faculty members, and several courses.)

This will let you code the lists and test the methods to add and delete items without using the user input functions.

Do not create a new Course when a Student adds or when a faculty member is assigned to teach; let the user choose a Course from the list.

Reference no: EM132192987

Questions Cloud

Display the students name and the average of the grades : Write the Algorithm (not the program) for the following problem. A program needs get the following data from the user:
How large a sample would we have needed : If we wanted to estimate µ with 99% confidence interval with a margin of error of 2000, how large a sample would we have needed?
Create a class with the given information in the overview : Write an application that simulates adding new books to the Amazon database. Create a class with the given information in the overview section.
State the decision rule and compute the test statistic : At a=0.05, does this sample data indicate a difference from the national proportion? State the decision rule and compute the test statistic.
Write a driver class that maintains lists of students : Write an application in java that models courses, students, and faculty members in a university.
State the hypothesis and the decision rule : At a=0.01, can the inspector claim that the mean weight is less than 16 ounces? State the hypothesis and the decision rule (using the critical value).
How large a sample size is necessary : A researcher wants to be 99% confident that his proportion is within 4% of the true proportion. How large a sample size is necessary?
Write an application that creates variable of type integer : Write an application that creates 2 variable of type integer. Prompt the user to enter two integer values, and assigns each value to one of the variables.
Confidence interval for the true proportion : A survey of 600 women shoppers found that 22% enjoy shopping for shoes. What is the 95% confidence interval for the true proportion of women shoppers who enjoy

Reviews

Write a Review

Computer Engineering Questions & Answers

  Compare the management techniques with that field

Compare the management techniques with that field you chose to software project management.

  What is the time efficiency class of your algorithm

Design an algorithm that lists the teams in a sequence so that every team did not lose the game with the team listed immediately after it.

  Compute the decimal value of this number

Compute the decimal value of this number using the exponent and significand from the previous part; show your work.

  Write a function to compute the nth fibonacci number

Write a function to compute the nth Fibonacci number. A Fibonacci sequence is a sequence of numbers where each successive number is the sum of the previous two.

  Name at least five different scans that might be performed

question 1 name at least five different scans that may be performed from the zenmap gui. document under what

  Questiondesign and apply a java program use switch

questiondesign and apply a java program use switch statement that find a traffic violation number and output traffic

  Writing report with apa format

Select one of the following languages: Modula, Pascal, Ada, C++, C, C#, Java or other instructor-approved language.

  Give a set of points leading to a worst-case two-d tree

Give a set of points leading to a worst-case 2D tree which has no nodes with two children; give the subdivision of the plane that results.

  Which of the methods would best handle recursion

In some architectures, this address is stored in a register, and in many it is stored on a stack. Which of these methods would best handle recursion? Explain your answer.

  Show the key code in the center of the screen

Write down a program that will display the hex code for any key, or key combination that is pressed on the keyboard. Display the key code in the center of the screen. For instance, if the key number 0 is pressed, display a 30 on the center of the ..

  Program that creates an instance of the string class

Write down a Java application that creates an instance of the String class and initializes this instance with a String literal. Use a for loop structure to print the string in reverse order. Implement the following two String member methods to com..

  Design process for defining customized security solution

Analyze the design process for defining a customized security solution. Give your opinion as to which step in this design process is most significant.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd