these are some of the problems that i Still can\'t answer in my lastHomework 1-
ID: 3618548 • Letter: T
Question
these are some of the problems that i Still can't answer in my lastHomework1- Write a statement that declares a prototype for afunction add , which has two int parameters and returnsan int .
2- Write a statement that declares aprototype for a function powerTo , which has two parameters.The first is a double and the second is an int . Thefunction returns a double .
3- Write a statement that declares a prototype for afunction printTodaysDate , which has no parameters anddoesn't return anything.
4- Write the definition of a function printGrade ,which has a char parameter and returns nothing. The functionprints on a line by itself the message string Grade: followedby the char parameter (printed as a character) to standardoutput. Don't forget to put a new line character at the end of yourline.
5- Write the definition of a function printAttitude , which has an int parameter and returnsnothing. The function prints a message to standard output dependingon the value of its parameter. If the parameter equals 1, the function prints disagree. If the parameter equals 2, the function prints noopinion . If the parameter equals 3, the function prints agree. In the case of other values, the function does nothing.
Each message is printed on a line by itself.
1- Write a statement that declares a prototype for afunction add , which has two int parameters and returnsan int .
2- Write a statement that declares aprototype for a function powerTo , which has two parameters.The first is a double and the second is an int . Thefunction returns a double .
3- Write a statement that declares a prototype for afunction printTodaysDate , which has no parameters anddoesn't return anything.
4- Write the definition of a function printGrade ,which has a char parameter and returns nothing. The functionprints on a line by itself the message string Grade: followedby the char parameter (printed as a character) to standardoutput. Don't forget to put a new line character at the end of yourline.
5- Write the definition of a function printAttitude , which has an int parameter and returnsnothing. The function prints a message to standard output dependingon the value of its parameter. If the parameter equals 1, the function prints disagree. If the parameter equals 2, the function prints noopinion . If the parameter equals 3, the function prints agree. In the case of other values, the function does nothing.
Each message is printed on a line by itself.