Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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 lastHomework
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.

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.

Explanation / Answer

Dear... As it not specified the language,, just giving in c++ Stillany clarification let me known. 1. Function prototype         int add(int value1,intvalue2); 2.     double powerTo(doublex,int y); 3.   void printTodaysDate(); 4. void printGrade(chargrade)      {             cout<<"Grade:"<<grade;      } 5.         voidprintAttitude(int value)       {          switch(value)          {              case 1:cout<<"Disagree";                           break;              case 2: cout<<"Nooption";                           break;             case 3:cout<<"Agree";                            break;              default: cout<<"DoesNothing";                          break;         }     } Hope this will help you... Hope this will help you...