Lab Activities
Lab Activities
ACTIVITIES
Problem #1: (10 points)
(25 points)
➢ 1. Debug – will the following program work? #score (5 points) Include
<iostream>
using namespace std;
int main(){cout <<“Hello there world!”; return 0; }
#include <iostream.h>
using namespace std:
int main
{ cout << “Every c++ program”
: cout
<<“\nmust have one and only
one” ;
cout << “main (} function”
;
cout <<
“\n the escape sequence of
characters” ; cout <<
“\nfor new line can be placed
anywhere” ; cout
<<“\n within the message passed to
cout” ; return 0;}
➢ 4. A C++ program is required to display the
following name and address: Design your program.
Mr. S. Azlet
63 Seminole Way
Dumont, NJ 07030
6. Write a C++ program from the flowchart that you created in slide
4 or Problem #3.