Create a class called collegecourse and explain it

Assignment Help C/C++ Programming
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

Reference no: EM13937107

Questions Cloud

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?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Normalization of database tables

Using the STUDENT table structure shown in Table, do the following: Table: Sample STUDENT Records

  Large number of files and folders

As part of her business activities, Sharon has created a large number of files and folders. Whenever she needs to view the details of the files stored in a folder, Sharon browses to the folder using Windows Explorer. However, she finds it cumberso..

  The imperial system of measurements

The Imperial system of measurements uses feet and inches for length, where 1 foot is equal to 12 inches. Write a class named Imperial that will represent distance measurements in feet and inches. Your class should include the following.

  A website for a popular international music store

Imagine that you are building a Website for a popular international music store. The owner wants to play an audio clip featuring the musical instrument of the month on their home page. Determine how you would add audio to the page so that it is compa..

  Part 1write a cc program to read a data file and extract

part 1write a cc program to read a data file and extract parameters. the program must obtain the filename via a

  Write a program that reads a string from the keyboard

Write a program that reads a string from the keyboard and then display all vowels contained within a user-input string. (Vowels are: a e i o u)

  Build a randomly generated simple substitution cipher

Design, implement and test classes in C++ Apply and implement ? overloaded? operators and functions Design and implement classes using inheritance

  Display a count of the number of vowels

Write a program that accepts a word into a character array string variable. Display a count of the number of letters in the word.

  Take four unsigned char bytes and combine

Take four unsigned char bytes and combine them into a single integer type. You will needed shifts and one of the logical bit operators.

  The main function should prompt the user

The main function should prompt the user for the 2 numbers, call the function to display the correct label, then calculate and display the sum of the numbers. Call the function to display the correct label, then calculate and display the differenc..

  Analyzing a property of an algorithm

Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property of an algorithm whose classification is not known for all possible in..

  Displays all the numbers

write a java program that displays all the numbers from 100 to 200, ten per line, that are divisible by 5 and 6 .

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