Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Step: 3

blur-text-image

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago