Page 1

CIS 170 C iLab 1 of 7: Getting Started

For more classes visit www.snaptutorial.com

Lab 1 of 7: Getting Started (Your First C++ Programs) Lab Overview Scenario/Summary Welcome to Programming with C++. The purpose of this three-part lab is to walk you through the following tutorial to become familiar with the actions of compiling and executing a C++ program. In general, this lab will instruct you on: how to create a project; how to enter and save a program; how to compile and run a program; how to, given a simple problem using input and output, code and test a program that meets the specifications; and how to debug a simple program of any syntax and logic errors.Deliverables Section Deliverable Points Part A Step 6: Program Listing and Output 15 Part B Program Listing and Output 15 Part C Program Listing and Output 15 Lab Steps Preparation: If you are using the Citrix remote lab, follow the login instructions located in the iLab tab in Course Home. Lab:


Part A: Getting Started Step 1: Start the Application From the File menu, choose "New Project." Choose “Win32 Console Application.” Enter a name in the name field. Click “Next” and choose the following options: Application Type: "Console Application" Additional options: Check mark “Empty project” and uncheck 8. Click Finish. Your project is now created. Step 2: How to Add a Source Code File to Your Project (.cpp file) In the Solution Explorer, right-click on the “Source Files” folder and select "Add" and then "New Item." In the next dialog box, choose C++ file (.cpp), enter a name for your source code file, and press the Add button. Type or copy and paste your code into the newly created source code file. Build the file by pressing F7, and then execute your program by pressing CTRL-F5 (start without debugging) or use the F5 key (Start Debugging). ********************************************************** CIS 170 C iLab 3 of 7: Looping

For more classes visit www.snaptutorial.com

Lab # CIS CIS170C-A3 Lab 3 of 7: Looping Lab Overview – Scenario/Summary You will code, build, and execute a program that will use looping to determine the score for a diver based on individual judge’s scores. Learning outcomes: Become familiar with the different types of looping structures. Be able to debug a program of syntax and logic errors. Be able to use the debug step-into feature to step through the logic of the program and to see how the variables change values.Deliverables


Section Deliverable Points Lab 3 Step 6: Program Listing and Output 45 Lab Steps Preparation: If you are using the Citrix remote lab, follow the login instructions located on the iLab tab in Course Home. Locate the Visual Studio 2010 icon and launch the application. Lab: Step 1: Requirements - DIVER Scoring Program Your State Dive Association presently scores its diving competitions with pencil and paper. They would like for you to design and develop a Dive Program in C++.

********************************************************** CIS 170 C iLab 4 of 7: Functions For more classes visit www.snaptutorial.com

Lab # CIS CIS170C-A4 Lab 4 of 7: Functions Lab Overview – Scenario/Summary You will code, build, and execute a program that simulates the dialing of a phone using functions. Learning outcomes: Distinguish between pass by value and by reference. Call functions using &. Write functions using value and reference. Be able to define and use global named constants. Be able to debug a program with syntax and logic errors. Be able to use


the debug step-into feature to step through the logic of the program and to see how the variables change values.Deliverables Section Deliverable Points Lab 4 Step 5: Program Listing and Output 45 Lab Steps

********************************************************** CIS 170 C iLab 5 of 7: Arrays and Strings

For more classes visit www.snaptutorial.com

Lab # CIS CIS170C-A5 Lab 5 of 7: Arrays and Strings Lab Overview Scenario/Summary You will code, build, and execute two programs requiring arrays and strings. First program (Video Game Player Program): Determine the average score for a group of players and then determine who scored below average. Second program (Pig Latin): Convert words in a phrase to pig latin. Learning outcomes: Be able to explain the need for arrays in a program. Be able to determine the appropriate array data type to use in a given program. Be able to write a program that implements arrays. Be able to explain the way memory is allocated for arrays in a program. Be able to explain the fact that arrays are objects in C++. Be able to write a program that implements strings.Deliverables


Section Deliverable Points Part A Step 5: Program Listing and Output 20 Part B Step 5: Program Listing and Output 25 Lab Steps Preparation: If you are using the Citrix remote lab, follow the login instructions located on the iLab tab in Course Home. Locate the Visual Studio 2010 icon and launch the application. Lab: Part A: Video Game Player Program Step 1: Requirements Write a program to do the following: In main, declare a PlayerName Array and a Score Array. Declare the size of the arrays to be 100. **********************************************************

CIS 170 C iLab 7 of 7: Sequential Files For more classes visit www.snaptutorial.com

Lab # CIS CIS170C-A7 Lab 7 of 7: Sequential Files Lab Overview Scenario/Summary You will code, build, and execute a program that requires sequential files to create an address database.


Learning Outcomes Continue using a menu system with console applications Be able to write a console application Demonstrate entering, appending, storing, and retrieving records Be able to write lines of output to a text file in order to create a reportDeliverables Section Deliverable Points Step Program Listing and Output 45 Lab Steps Preparation: If you are using the Citrix remote lab, follow the login instructions located in the iLab tab in Course Home. Locate the Visual Studio 2010 icon and launch the application. Lab: Step 1: Requirements: An Address Database Create a C++ console application that will store and retrieve names and addresses in a text file. ********************************************************** CIS 170 C Lab 6 of 7: Menu-Driven Application

For more classes visit www.snaptutorial.com

Lab # CIS CIS170C-A6 Lab 6 of 7: Menu-Driven Application Lab Overview Scenario/Summary You will utilize classes in the design of this program.


You will code, build, and execute an Automated Teller Machine (ATM) MenuDriven Console Application. Learning outcomes: To be able to explain the need for menus in a program To be able to determine ways to implement menus in a Windows console application To be able to understand the classes and objects used in a Windows console application To be able to write a Windows console applicationDeliverables Section Deliverable Points Lab 6 Step 5: Program Listing and Output 45 Lab Steps Preparation: If you are using the Citrix remote lab, follow the login instructions located on the iLab tab in Course Home. Locate the Visual Studio 2010 icon and launch the application. Lab: Part A: Password Program Step 1: Requirements Write a windows console application that simulates an Automated Teller Machine (ATM) menu similar to the following (this program assumes you are uniquely logged in). Welcome to the DeVry Bank Automated Teller Machine Check balance Make withdrawal Make deposit View account information View statement View bank information Exit The result of choosing #1 will be the following: Current balance is: $2439.45 The result of choosing #2 will be the following: How much would you like to withdraw? $200.50 The result of choosing #3 will be the following: How much would you like to deposit? $177.32 The result of choosing #4 will be the following: Name: (Student’s first and last name goes here) Account Number: 1234554321 The result of choosing #5 will be the following: 01/01/11 - McDonald’s - $6.27 01/15/11 - Kwik Trip - $34.93


02/28/11 - Target - $124.21 The result of choosing #6 will be the following: Devry Bank, established 2011 (123) 456-7890 12345 1st St. Someplace, NJ 12345 The result of choosing #7 will be the following: *Exit the program - terminate console application. Step 2: Processing Logic You will create a Menu Builder class (for menu applications), a Test Menu class (for Main), and a MenuBuilder.h for a total of three files as a demonstration of understanding, creating, and using classes. Using the pseudocode below, write the code that will meet the requirements. ********************************************************** CIS 170 Entire Course

For more classes visit www.snaptutorial.com

CIS170C All iLabs 1,2,3,4,5,6,7 Devry University ********************************************************** CIS 170 iLab 2 of 7: Decisions


For more classes visit www.snaptutorial.com

Lab # CIS CIS170C-A2 Lab 2 of 7: Decisions Lab Overview Scenario/Summary You will code, build, and execute two programs requiring decisions. The first program will determine the smaller of two numbers input on the screen. The second program will calculate the shipping charge based on the purchase amount input on the screen. Learning outcomes: To be able to design program logic using either a flowchart or pseudocode To be able to define and use data types To be able to prompt the user for input To be able to use the assignment statement for calculations To be able to display output to the console in a formatted manner To be able to debug a program of syntax and logic errors To be able to make decisionsDeliverables Section Deliverable Points Part A Step 7: Program Listing and Output 20 Part B Step 7: Program Listing and Output 25 Lab Steps Preparation: If you are using the Citrix remote lab, follow the login instructions located in the iLab tab in Course Home. Locate the Visual Studio 2010 icon and launch the application. Lab: Part A: Determine Smallest Number Step 1: Requirements Write a program that inputs two numbers and determines which of the two numbers is the smallest. If the numbers are equal, display a message that they are equal. Sample output from program:


You will be asked to enter two numbers. The smallest value will be displayed or a message if they are the same. **********************************************************

Cis 170 possible is everything snaptutorial com  

For more classes visit www.snaptutorial.com Lab 1 of 7: Getting Started (Your First C++ Programs) Lab Overview - Scenario/Summary Welcome...

Cis 170 possible is everything snaptutorial com  

For more classes visit www.snaptutorial.com Lab 1 of 7: Getting Started (Your First C++ Programs) Lab Overview - Scenario/Summary Welcome...

Advertisement