Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions

Question

5. Develop a self-management module for a training program.

Answered: 1 week ago