Lesson 1 uses program ShalllProgram shellis a program shall

Lesson 1 uses program Shalll.//Program shellis a program shall with a function. #include using namespace std; void Print ()://FILL IN the documentation. main () (PrintO; return 0: void Print ()//FILL IN the documentation. (/* TO BE FILLED IN */) Fill in the code for function Print so that it prints your name and address (on two separate lines) enclosed or boxed in dollar signs on the screen. Don\'t forget to fill in the appropriate documentation for function Print. Run your program and show your documentation and your output.

Solution

#include <iostream>
using namespace std;
void print();
//This print function print name and address these name and address hard coded in this print function
int main()
{
   print();
   return 0;
}
void print()
{
   //please put your user name in place of username
   //please put your address in place of address
   char name[]=\"$username$\";
   char address[]=\"$address$\";
   cout<<name<<endl;
   cout<<address<<endl;
}
/*
output:
$username$
$address$
*/

 Lesson 1 uses program Shalll.//Program shellis a program shall with a function. #include using namespace std; void Print ()://FILL IN the documentation. main (

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site