CIS 1033 - Fundamentals of Programming

Bob Comer, Professor, CIS/CSC


Lab Assignment 1 - Hello World Program
Due 5/24

Reminder: In-class assignments are due at the end of lab time on the day they are assigned.

  1. Use the Turbo C++ editor to type the program listed below. Be sure to use your name and the current date in the program.
  2. Save the program using the name hello.cpp.
  3. Run your program. You may need to correct any errors you make to get the program to run.
  4. Print a listing of the program source code. Write a brief one or two sentence description of what the program does on the program listing and turn it in.
// Hello World program
// Programmer: your name here
// Completed : completion date
// Status    : Complete
//
// This program prints a welcome message.

// input/output declarations 
#include <iostream.h> 
#include <conio.h>

int main()
{
// Print greeting
   cout << "Hello, World!" << endl;
   cout << "Greetings from Austin, Texas!" << endl;

// Pause until the user presses a key
   cout << endl;
   cout << "Press any key to end program ...";
   getch();
   return 0;
}


Return to Fundamentals Home Page

Copyright: Ó 1999 by the Austin Community College

Department of Computer Studies. All rights reserved.

Comments to: Bob Comer

Last updated: May 24, 1999