Orientation Lab

Purpose

This is the orientation lab. It serves as an explanation of how lab pages are laid out. You will also receive your required course PIN here and complete a small program.

Key Reading

In this area, we will list the sections in the book that cover the key concepts for each lab. Please read and be familiar with each section before attempting to complete the lab. For this orientation, you should first read:

  • 1.4

Background

Most labs have a simple backstory to provide motivation and realism to the assignment. While the background information is often trivial, some key requirements may be found here.

Requirements

This section contains the bulk of the assignment's requirements. Failure to thoroughly read and understand these requirements before beginning an assignment can cost you an enormous amount of time. Remember, a great solution to the wrong problem is worth almost nothing.

For the purpose of orientation, you should do the following:

  • Attend an orientation in room 1121 of the Talmage Building
  • Acquire a class PIN
  • Become familiar with TA schedules, help session schedules, how to request help, and how to view grades
  • Complete the sample C++ program below

Requirement Notes

This section typically contains information that is critical to producing a correct solution for an assignment. Failure to thoroughly read and understand these notes is perhaps the largest source of wasted student time in this course.

Sample Program

  • This lab is the classic introduction to programming. It is a simple C++ program to introduce a few basics of the C++ programming language. It is important in this lab that you become comfortable compiling and running a C++ application.
  • Create and run the following program:
  • #include <iostream>
    using namespace std;
    
    int main()
    {
    	cout << "Hello, World! My name is [insert your name here]." << endl;
    	cin.get();
    	return 0;
    }
    
    • The line beginning in "cout" prints whatever text is placed between the following quotation marks
    • The line beginning in "cin" merely causes the program to wait for the user to press enter before proceeding; it is typically unnecessary, but it can be helpful when using Visual Studio (try running the program without this line)
    • The line beginning in "return" tells the program to end