Create a class called class to represent a class of students

Assignment Help Computer Engineering
Reference no: EM13756463

Create a class called Class to represent a class of students. The class should store the name of the class (Biology, History, etc), the name of the instructor, the number of students, the average GPA of the students in the class, and finally the students in an array of Student objects.

Be sure to include at least the following methods:

1. Constructor that sets the class name and the instructor's name. Initialize the student array to hold 5 students to start.

2. addStudent - Adds a student to the class. Make sure there is enough room in the array for the student before adding. If there is not enough room, expand the array then add the student.

3. removeStudent - Removes a student from the class. Have the user enter a number and remove the student at that index. After removing the student, shift the other students to fill in the gap in the array.

4. calculateAverageGPA - Iterate through the students and calculate the average GPA.

5. printRoster - Print out a roster of all the students in the class. Hint - this can be done very easily by taking advantage of the toString method in the Student class.

Reference no: EM13756463

Questions Cloud

Using the linear programming transportation method : Assume that there is no initial inventory and a forecasted demand of 1,250 units in each of the 3 months. Carrying cost is $1 per unit per month. Solve this aggregate planning problem using the linear programming transportation method.
What kind of effects could army have upon stability : As the union dissolved, so did the army. What kind of effects could this have upon stability? Is there a greater or lesser threat of war as the result of the dissolution of the army?
Give reason for schism between catholic and orthodox church : Explain 3 reasons for the schism between the Roman Catholic Church and the Eastern Orthodox Church.
Scheduled an engagement to teach a group of students : Fill-in for your boss this week. Your boss's assistant informs you that he had scheduled an engagement to teach a group of students at the local University about PERT/CPM approach to project scheduling and has asked that you do it instead. In an init..
Create a class called class to represent a class of students : Create a class called Class to represent a class of students. The class should store the name of the class (Biology, History, etc), the name of the instructor, the number of students, the average GPA of the students in the class, and finally the s..
Risk management and business continuity issues : Data within an enterprise is complex at best. To better deal with a wide range of data, each type of which has unique access and security requirements, enterprise information architects often create data domains. Risk management and business conti..
Calculate the prospective earnings per share and prospective : Perform a scenario analysis on three (3) conditions, good, average, and poor. Depending on your company, look at what would be a factor that will have the most significant impact on profitability of the company. For example, for Golden Hope Plantatio..
Treatment of internal and external customers : In a short essay (not to exceed two pages) explain how you see the treatment of internal and external customers. Is one more important than the other? How does this affect “quality” in the organization?
What is the revenue recognition principle : What is the revenue recognition principle? What is the expense recognition principle? In your opinion, why are these important to financial reporting.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Define a point made by a classmate

What rights to privacy do people have while using the Internet at home? Are their privacy rights limited? Do those same rights and limits exist at work? Explain your answer.

  Reducing the cost per bit transmitted in lans or wans

Systematic and the logical storage of electronic files.specify if reducing the cost per bit transmitted more significant in the LANs or WANs.

  Draw negative edge triggered t flip flop

Draw a negative edge triggered T flip flop. Circuit has two inputs, T(toggle) and C(clock) and output Q and Q'. Output state is complemented if T=1 and clock C changes from 1 to 0.

  Program to input the phone numbers

Write down a program which prompts the user to enter a telephone number expressed in the letters and outputs corresponding telephone number in digits.

  Explain contents of an initially empty avl tree

Explain contents of an initially empty AVL tree

  Reconfigurable computing

Implement the Boolean function given below using minimum number of function generators (F, G) of XC2000. Draw the K-maps for the function and write the expression.

  Supply supporting evidence for the decision

Now that you have a normal plan and have identified the information that you need for this program, you feel you are ready to start development. You told your uncle that you would need to purchase software for this program. Since your uncle is in ..

  Why the make-buy decision is an important management

The make-buy decision is an important management prerogative. I am supposed to be a manager of a software organization that has the average software development cost of $20.00/LOC.

  Operation for circular linked list

Write down an algorithm or code segment for searching the circular linked list for a given item. Write down an algorithm or the code segment for locating nth successor of an item within a circular linked list (nth item which follows the given item ..

  Make a proposal to deploy windows server onto an existing

make a proposal to deploy windows server onto an existing network based on the provided scenario. the proposal will

  Use test driven development as you build your website

In this project, you will create a simple personal website. First, create a machine at ICSFlexcloud. Setup the whole RoR environment. Following chapter 1-5 of the Rails tutorial, create your own styling using CSS for your website.

  You have just been hired as an information security

you have just been hired as an information security engineer for a large multi-international corporation.

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