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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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