Answer to Question #341775 in C++ for LM.

Question #341775

Write function headers for the functions described below:

(i) The function check has two parameters. The first parameter should be an integer number and the

second parameter a floating point number. The function returns no value.

(ii) The function mult has two floating point numbers as parameters and returns the result of

multiplying them.

(iii) The function time inputs seconds, minutes and hours and returns them as parameters to its

calling function.

(iv) The function countChar returns the number of occurrences of a character in a string, both provided as

parameters.


1
Expert's answer
2022-05-17T08:56:25-0400
//1)
void check(int n1, float n2)

//2)
float mult(float n1, float n2)

//3)
 void time(int &s, int &m, int &h)

//4)
 int countChar(string s, char c)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS