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

  Write down a function called numweeks

Write down a function called numWeeks that takes an integer parameter representing a number of days and returns an integer that is the number of whole weeks in that number of days.

  Questionin programming language c array names are not

questionin programming language c array names are not assignable variables. therefore we cant copy an array directly

  What would be the mappings between cache block

take a memory of 64 blocks (labeled 0 through 63) and a cache of 16 blocks (labeled 0 through 15). In the questions below, list only correct results.

  Communication diagram and sequence diagram

Why you would generate a communication diagram in place of a sequence diagram? Describe what the arrow which points to an object in the communication diagram implies.

  Propose a wiring plan for network servers

Propose a wiring plan for network servers.

  Can a relation be stored as a sequential file

Can a relation be stored as a sequential file

  Effectively communicate with stakeholders to determine

assignment gives you the opportunity to apply the course concepts to develop a decision table and a decision tree for

  Developing the lan network for a company

You have been asked to develop a LAN with operation over the distance of around 100m. Compare and contrast the twisted pair cable, fiber-optics, and wireless for this application.

  Identify the key features of a laptop and a tablet next

explain the main factors that you should consider before deciding between a laptop or a tablet to buy.identify the key

  Explain about virtualisation technology

Describe your reasoning for choosing the virtualisation technology and what advantages this technology gives you in this scenario - what are the disadvantages/limitations of this technology?

  How to compare and evaluate speeds of dsl and cable modem

How to compare and evaluate speeds of DSL and cable modem Make a diagram of the DSL and Cable Modem connections to your ISP, cable organization, and telecom to your home router using Visio or its open source another software.

  Declaring a variable using the public, friend, or private

In visual basic.NET, what makes up a component? What are the advantages of components? In addition, what are the types of class data and how do you decide which is appropriate? describe the difference between declaring a variable using the keyword..

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