Question: Create a console application do the following exercises in a single cpp file named assignment1.cpp. For functions declarations create a assignment.h which includes all the

Create a console application do the following exercises in a single cpp file named assignment1.cpp. For functions declarations create a assignment.h which includes all the declarations.

1 - Write a function DisplayBox(int W, int H) that Displays a rectangle with width W and height H, shape with Asterisks Note that Your function should accept the width and height of the rectangle and display the shape based on size. as an example, here is the signature for the function to display a box: void DisplayBox(int width, int height) Note. You must call the function in your main function so it is displayed on the console.

2 - Similar to question one, create a function DisplayRighAngleTriangle(int W, int H) which draws a right angle triangle with height H and width W.

3 - Create function with signature void DisplayCircleInfo(float R) which calculate circumference and area of a circle given by it radius R. Note that you need value for PI which is PI = 3.141593. So define it like the following at the top of the assignment.h: #define PI 3.141593

Again you must call the function in main.

For hand in, clean your project, and add release build of your application, assignment1.exe, in the folder, as explained in class. Then zip the folder and upload to moodle, once the moodle page is active in a couple of days.

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 Databases Questions!