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;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.