Question: C++ PROGRAMMING QUESTIONS The following functions can be written and tested in one program. Each function should be tested with at least TWO different function

C++ PROGRAMMING QUESTIONS

The following functions can be written and tested in one program.

Each function should be tested with at least TWO different function calls.

1. Write and test the following function that prints the date as follows:

6/28/2011

void PrintDate(int, int, int);

2. Write and test the following function that returns the area of a circle with given radius.

float CircleArea(float);

3. Write and test the following function that converts a temperature from degrees Celsius to degrees Fahrenheit.

(F = 9/5C + 32)

float Fahrenheit(float);

4. Write and test the following function that returns the value of any number n factorial (n!).

Eg. 5! = 5 * 4 * 3 * 2 * 1 = 120

int Factorial(int);

5. Write and test the following function that determines whether a given number is a perfect square.

bool IsSquare(int);

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!