Question: help please! C++. You only need to write the functions listed above. (Although you can also write helper functions if they are useful.) You should
help please! C++.
You only need to write the functions listed above. (Although you can also write helper functions if they are useful.) You should not change anything in the main function. The parts where you need to write code are indicated by the comments I gave you. When you are finished the main function should be in exactly the same form as before you started. For the area function, you should use an assert statement to make sure both sides are >= 0 (zero is fine). Dont forget to include cassert. For all other problems, you can assume the user enters valid input. Make sure to write comments for all of your functions. Use the format shown in class of:
/** short description @param @return */
HERE IS THE CODE TO BE USED

Problem 2: The format of this problem is a bit different. Your job is to write three functions 1. area: this function should input two numbers x and y and return the area of a rectangle with side lengths x and y. 2. longest: this function should input two words and return the longer word. If its a tie, it should return the first word. 3. shortest: this function should input two words and return the shorter word. If its a tie, it should return the second word. 1 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
