Function Practice Exercise: Rectangle Areas
Create C++ program ex1_area.cpp
with the following code in the Visual Studio project or copy the following code into your IDE:
The purpose of this program is to practice user defined functions. You will complete a reference parameter function, a value returning function, and a value parameter function.
- Read the code carefully - there are several mistakes. Correct them to the best of your ability.
- Add code to the program to complete it.
- Test this C++ program with the inputs suggested in the code.
When you are done:
- Take a screenshot of your IDE and console window after compiling and running the program.
- For this exercise, you will have:
ex1_area.cpp
. - Complete all the exercises in this option and upload the .cpp files and the screenshots to URCourses.