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

  Make a set of powerpoint slides

make a set of PowerPoint slides.

  Knowledge revolution and industrial revolution

What are your thought on this that would support notion that Knowledge Revolution was born from the Industrial Revolution?

  Which references source page fault with lru page replacement

Which references source a page fault with LRU page replacement policy? Illustrate your intermediate working in table below with three columns.

  How many tasks real-time application contain

How many tasks real-time application contain In this particular real-time application, there are many tasks; each runs exact same code except with different data each time.

  Altering the dijkstra’s algorithm

Alter Dijkstra’s algorithm in order to compute the shortest paths from the source vertex s in O(W·|V|+|E|) time.

  What will be formula of digital certificate of the server

Point out what will be the formula of digital certificate of the server N. we denote the public and private keys of server N as K+ ,N KN, and public or private keys of CA are denoted as K+ CA KCA.

  Program to count the number of times page is opened

Generate a page in order to count the number of times the page is viewed by the user in a single session. Each time page is refreshed or opened in the browser during the session counts as 1 page view.

  Make two alternative design strategies

Describe two alternative design strategies, and explain how each would meet the requirements. What are the constraints in this situation.

  In short describe the situation inside your company

It is likely that your organization uses various decision-support programs, as in  programs that automate production, programs for resource optimization, and so on.

  Developing ways to support every applications

List some of the ways which we may guarantee that the majority of our target audience may play our applications.

  What is the worst-case delay for acknowledging an interrupt

What is the worst-case delay for acknowledging an interrupt

  What are techniques for addressing security requirements

What are techniques for addressing security requirements? Which have a business relationship with the company?

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