Answer to Question #190882 in C++ for Mridul

Question #190882

#include <iostream>

using namespace std;

void writeProverb();

//This is the prototype for the writeProverb function

int main()

{ // Fill in the code to call the writeProverb function

return 0; }

// *********************************************************************

// writeProverb

//

// task: This function prints a proverb

// data in: none

// data out: no actual parameter altered

//

// ********************************************************************

// Fill in the function heading and the body of the function that will print

// to the screen the proverb listed in the comments at the beginning of the

// program

Question: Fill in the code (places in bold) so that the program will print out the proverb listed in the comments at the beginning of the program. The proverb will be printed by the function which is called by the main function.


1
Expert's answer
2021-05-08T17:08:12-0400
#include <iostream>


using namespace std;


void writeProverb();


//This is the prototype for the writeProverb function


int main()


{ // Fill in the code to call the writeProverb function
    writeProverb();


return 0;
}


// *********************************************************************
void writeProverb(){
    cout<<"The proverb given at the start of the programme."<<endl;


    }

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