Use that both versions of average()

Assignment Help Computer Engineering
Reference no: EM1331654

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: EM1331654

Questions Cloud

Is there a parallel among diminishing marginal utility : Is there a parallel among diminishing marginal utility in consumption and diminishing returns in productio.
Show prompts for a customer to deposit : make a Bank Account class that will allow you to deposit, withdraw and check your balance as well as sign up for non-fee no interest bearing savings account as well as a fee-based account that accrues interest on a daily basis for savings accounts..
Describe the lower price alter the marginal utility : Describe the lower price alter the marginal utility you originally placed on the item.
Analyze the individual values : Analyze the individual values and the organization's values
Use that both versions of average() : Create a class called CollegeCourse with. use that both versions of average()
Internal and external influences on consumer behavior : What are three examples of internal and external influences on consumer behavior?
Intermediate appellate court and high appellate court : What is the difference between an intermediate appellate court and a high appellate court? Are they referred to by other names? Explain. What options does the court have regarding the case in question? Be specific.
For ever of the situations decide whether al has increasing : For ever of the situations, decide whether Al has increasing, constant, or diminishing marginal utility.
Discharges at the anderson cost club store : Discharges at the Anderson Cost Club store - The first issue that I must deal with is: the discharges that had recently occurred at the Anderson Cost Club store, which is located in a right-to-work state.

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