Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Compiling and Executing a C++ Program - Assignment 1 | CS 145, Assignments of Computer Science

Material Type: Assignment; Class: Introduction to Computing for Engineers; Subject: Computer Science; University: Southern Illinois University Edwardsville; Term: Fall 2008;

Typology: Assignments

Pre 2010

Uploaded on 08/18/2009

koofers-user-wr9
koofers-user-wr9 🇺🇸

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computer Science 145.002
Introduction to Computing for Engineers
Fall 2008
Programming Mini-Assignment 1
“Compiling & Executing a C++ Program”
Due: 8AM, Thursday, August 28, 2008
Linked to the course Web site (http://www.cs.siue.edu/wwhite/CS145/Syllabus.htm) is a file containing a C++ program
that you will need to compile and execute, reporting the resulting output of the program on back of this page.
1. In one of the CS computer labs (EB 2025 or EB 0013) or on your home computer (if you have installed the Microsoft
Visual Studio), create a new project workspace:
a. Open Microsoft Visual Studio.
b. Begin the project creation by pressing the link indicated in the figure at left below.
c.
Complete the project creation by filling in the
dialog box exactly as shown at right above (i.e.,
select the Visual C++ project type and the
Empty Project template; specify the
MiniAssignment01 name and the C:\Temp\
location).
2. Copy the Birthdate.cpp program file and the from the FamousBirthdays.txt text file from the links on the Web site
syllabus (mentioned above) to the C:\Temp\MiniAssignment01\MiniAssignment01 folder.
pf3

Partial preview of the text

Download Compiling and Executing a C++ Program - Assignment 1 | CS 145 and more Assignments Computer Science in PDF only on Docsity!

Computer Science 145.

Introduction to Computing for Engineers

Fall 2008

Programming Mini-Assignment 1

“Compiling & Executing a C++ Program”

Due: 8AM, Thursday, August 28, 2008

Linked to the course Web site (http://www.cs.siue.edu/wwhite/CS145/Syllabus.htm) is a file containing a C++ program that you will need to compile and execute, reporting the resulting output of the program on back of this page.

  1. In one of the CS computer labs (EB 2025 or EB 0013) or on your home computer (if you have installed the Microsoft Visual Studio), create a new project workspace: a. Open Microsoft Visual Studio. b. Begin the project creation by pressing the link indicated in the figure at left below. c. Complete the project creation by filling in the dialog box exactly as shown at right above (i.e., select the Visual C++ project type and the Empty Project template; specify the MiniAssignment01 name and the C:\Temp
    location).
  2. Copy the Birthdate.cpp program file and the from the FamousBirthdays.txt text file from the links on the Web site syllabus (mentioned above) to the C:\Temp\MiniAssignment01\MiniAssignment01 folder.
  1. From Microsoft Visual Studio, add the program file to your project by selecting Add Existing Item... from the Project menu (as illustrated at left below) and then selecting the Birthdate.cpp file (as illustrated at right below). 4. B irthdate.cpp should now be listed under Source Files in the Solution Explorer pane on the right side of the main window. Double-click the file name to open the file.
  2. To compile the program, click Build Solution in the Build menu.
  3. Once the program has compiled, execute it by clicking Start Without Debugging in the Debug menu.
  4. Answer each question posed by the program until it indicates that the program has completed. Then transcribe everything on the output window (including all of your input and all of the program’s output) in the spaces provided below.
  5. When you’ve finished transcribing the output window, exit the application and exit Microsoft Visual Studio. Print your name on the bottom of this page and submit this assignment sheet to the instructor by the beginning of class (8:00 AM) on Thursday, August 28, 2008.