C++ programing

profilemubj
document_4.pdf

Project Description:

Create a C++ header file with name “MyLibrary” containing the following three

functions,

 [15pts] o Thisfunctionconvertsgivenangleindegreestoradians.

 [15pts]

o This function calculates the number of possible combinations of r

 objects from a set of n objects.

 [15pts]

o This function returns a random number between min and max.

Extra credit:

 [5pts]

 o Thisfunctionprints,log(1),log(2),...,log(n).

 [5pts]

o This function returns the average of the all elements of the input array.

char& ch2); [5pts]

o This function swaps the values of ch1 and ch2.

[5pts]

o This function prints the maximum and minimum values of the input array.

Create,

1. the header file(.h) [15pts]

2. 3 function files(.cpp) [45pts] 3. main function(.cpp) [20pts]

o From the main function call the 3 functions and print results. 4. function files from the extra credit (if

any)

Submit report with,

1. All C++ source code files [10pts]

2. Output screen shots of the main function [10pts]

3. Pseudo code or flowchart of the project [Extra credit 10pts]