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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started