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

Lesson 1 uses program Shalll.//Program shellis a program shall with a function.

ID: 3929408 • Letter: L

Question

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.

Explanation / Answer

#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$
*/

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

Navigate



Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.