Question: Requirements: For this assignment, you will modify the class you completed in the previous assignment. The following is an updated UML diagram incorporating the changes:

Requirements:
For this assignment, you will modify the class you completed in the previous assignment. The following is an updated UML diagram incorporating
the changes:
New Methods:
operator : accepts a Fahrenheit object by reference. Returns true of the temp variable is less than the temp variable of the Fahrenheit object
argument, false otherwise. Does not interact with the user in any way.
operator== : accepts a Fahrenheit object by reference. Returns true of the temp variable is equal to the temp variable of the Fahrenheit object
argument, false otherwise. Does not interact with the user in any way.
operator+ : returns a new Fahrenheit object with it's temp variable set to the sum of the temp variable and the temp variable of the argument
Fahrenheit object. Does not interact with the user in any way.
operator is a standalone function that accepts an ostream object and Fahrenheit object by reference. Returns an ostream object by reference.
Simply assigns the temp variable of the argument Fahrenheit object to the ostream object argument and returns the ostream object reference.
Does not interact with the user in any way. Is a friend of class Fahrenheit.
Demonstrate the updated class by asking the user for two temperatures and assigning them to two different Fahrenheit objects. Use the
operator and operator== methods to tell the user if the temperatures are the less than, greater than, or equal to each other. Find the sum of the
two Fahrenheit objects. Finally, use the overloaded operator to display the sum and the temps of both Fahrenheit objects.
Use only what we have covered in the course and chapters 1-14.(A minimum penalty of 3 points will be accessed). Do not use global variables.
Follow the given UML diagram. Operators ,==, and + are technically accessors and should be marked const.
General Scoring Guide:
operator- max 2.5 points
operator==-max2.5 points
o operator+- max 5 points
o operator- max 5 points
main - max 3 points
following submission instructions - max 2 points
Other general deductions as per the syllabus.
A 20-Point Sample Run:
Requirements: For this assignment, you will

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!