Reference no: EM13937107
Create a class called CollegeCourse with
Functions:
1. Average()- a function template that will accept two arguments(HonorPoints of the same data type) and computes the average of two HonorPoints
a. The HonorPoints = grade points (4 for an A, 3 for a B, 2 for a C, and 1 for a D) multiplied with the credits
2. Average() - overload the above function to accept three arguments
3. +operator() - overload this function so that honor points for courses can be summed.
4. /operator() -overload this function so that if the honorPoints are divided by an integer; this function should return a double.
5. <<operator()- overload this function to display the details of a CollegeCourse (such as the
Main:
1. main() program that declares several integers, doubles, and CollegeCourse objects. No user input. Just store your input for the credits, course ID, letter grade into your CollegeCourse object.
Instantiate your CollegeCourse objects by creating an array of objects.
2. Demonstrate that both versions of average() work correctly with integers, doubles, and CollegeCourse objects, +operator() and /operator() to compute the average honorPoints for the CollegeCourses
3. Display: Examples for CollegeCourse objects (filled via your array of objects) for 2 and for 3 Course Objects.
ENG101 Grade: A Credits: 3 Honor points: 12
PSY251 Grade: B Credits: 3 Honor points: 9
HIS301 Grade: D Credits: 4 Honor points: 4
Average: 8.33333
ENG101 Grade: A Credits: 3 Honor points: 12
PSY251 Grade: B Credits: 3 Honor points: 9
Average:10.5
Silver ion concentration
: Silver ion concentration changes over the filter bed depths
|
Report to the chairman
: Write a report to the Chairman or Managing Director of a Company regarding review of its Governance Structure
|
Why did knut need to introduce the new performance measures
: Why did Knut need to introduce these new performance measures? That is, why does he need to use these performance measures over and above the operating profit numbers for the period?
|
Program that uses the attached data file as input
: Please do this the easiest way possible, I am learning C++ by myself but I just don't understand input/output so this will help me understand it better.
|
Create a class called collegecourse and explain it
: Average()- a function template that will accept two arguments(HonorPoints of the same data type) and computes the average of two HonorPoints
|
Program that perform arithmetic operations on fractions
: Write a program that lets the user perform arithmetic operations on fractions. Fractions are of the form a/b, where a and b are integers and b is not equal to 0. Your program must be menu driven, allowing the user to select the operation (+, -, *,..
|
Audience of health professional
: Write an article for publication in a journal, Your article should inform a much broader audience of health professional than you could reach.You are required to write in a scholarly yet engaging style using harvard referencing.
|
Triple integrals in spherical coordinates
: Using only the fact that the volume of a sphere, of radius r, is V = (4 π r ³) / 3 and your knowledge of triple integrals in spherical coordinates, find the volume contained within the sphere x² + y² + z² = a² but not within the sphere x² + y² + (..
|
Why do leaves of deciduous trees and shrubs in temperate
: Why do leaves of deciduous trees and shrubs in temperate regions change color in the fall? What is involved in this process? What factors may further influence this change, such as street lights, additional CO2, and temperature change?
|