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

Computer Science PLEASE FILL IN THE BLANK....MAX POINTS OFFERED Question 1 Quest

ID: 3559177 • Letter: C

Question

Computer Science

PLEASE FILL IN THE BLANK....MAX POINTS OFFERED

Question 1

Question 1 options:

Complete the following code:

Write a complete function that will print out the phrase 'Get Money'. Complete a main() program that will call that function. There no need to put in a prototype declaration in this exercise.

___________printSloganName()
{
cout << 'Get Money';
return;
}

int main()
{

________________;
return 0;
}

Question 2 (10 points)

Write a complete function that will return half of a real number that passed to it. The is no need to complete a main() program that will call that function. There no need to put in a prototype declaration in this exercise.

______________ divideInHalf(_____________value)

{
double halfValue = value / 2.0;
return _______________;

}

Explanation / Answer

Complete the following code:

Write a complete function that will print out the phrase 'Get Money'.
Complete a main() program that will call that function. There no need to put in a prototype declaration in this exercise.

void printSloganName()
{
cout << "Get Money";
return;
}

int main()
{
printSloganName();
return 0;
}

Question 2 (10 points)
Write a complete function that will return half of a real number that passed to it.
The is no need to complete a main() program that will call that function. There no need to put in a prototype declaration in this exercise.

double divideInHalf(double value)

{
double halfValue = value / 2.0;
return halfValue;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote