TCH060: C++ Programming

This list is representative of the materials provided or used in this course. Keep in mind that the actual materials used may vary, depending on the school in which you are enrolled, and whether you are taking the course as Independent Study.

For a complete list of the materials to be used in this course by your enrolled student, please visit MyInfo. All lists are subject to change at any time.

Scope & Sequence : Scope & Sequence documents describe what is covered in a course (the scope) and also the order in which topics are covered (the sequence). These documents list instructional objectives and skills to be mastered. K12 Scope & Sequence documents for each course include:

Course Overview

In this introductory course, students learn basic programming concepts through a series of hands-on projects. They also learn about software development careers, the software development process, and industry best practices. Using Microsoft Visual C++ 2008, students master the building blocks of programming: functions, variables, loops, arrays, and classes.

back to top

Course Length

One Semester

back to top



back to top

Course Outline

Project 1: Hello World

Students learn to include a library, use the standard (std) namespace, insert a main ( ) function, and use the cout command to output text to the screen. They compile and debug a C++ program, and create an .exe of a C++ program.

  • Lab 1: Open and Save a Project
  • Lab 2: Libraries and Namespaces
  • Lab 3: Insert the main ( ) Function
  • Lab 4: Debug Your Program

Project 2: Calculator

Students learn to declare a variable, use a float variable to store a number with a decimal point, and use a cout command to print a variable's value to the screen. They store a variable as the value of another variable, use the endl command to insert a line break in text on the screen, use the cin command to get input from the user, use an int variable to store an integer, and use an if ( ) statement. They indent code to match guidelines, use the - operator to subtract, use the * operator to multiply, and use the / operator to divide.

  • Lab 1: Set Up the Project
  • Lab 2: Variables
  • Lab 3: Input
  • Lab 4: The if ( ) Statement
  • Lab 5: Operators

Project 3: Guess the Number

Students set up a console project, declare two int variables, and add and test an if ( ) statement. They use the > (greater than) comparison operator, the < (less than) comparison operator, and a while ( ) loop to repeat sections of code. They use Visual C++'s Increase Indent button to indent code and the != conditional operator to compare two values. They initialize a variable and use the rand ( ) function to insert a seemingly random number, the srand ( ) function to seed the rand ( ) function, and the % (modulo) operator to limit the span of a random number.

  • Lab 1: Set Up Your Project
  • Lab 2: Comparisons
  • Lab 3: Loops
  • Lab 4: Random Numbers

Project 4: Tic Tac Toe

Students create a new console project, declare a char variable, convert a variable into an array, and store values in an array. They declare and write a function, declare a global variable, call a function, declare a string variable, store a value in a string variable, and comment at the end of a line. They insert an else statement, use a switch case statement, and use a break command. They declare a function that returns a value, use the return command to return a bool value, pass a variable to a function, use a do while ( ) loop, and develop a function that detects eight ways to win the game. They use an if else ( ) statement, the ++ operator to increment a variable, and an int variable to count the number of times a loop runs.

  • Lab 1: Arrays
  • Lab 2: Functions
  • Lab 3: Strings
  • Lab 4: Switch Case Statements
  • Lab 5: Pass a Variable to a Function
  • Lab 6: Develop a Function
  • Lab 7: The ++ Operator

Project 5: Quiz Show

Students use a /* */ comment to write a comment on multiple lines, create a title screen that displays the name of the program and who wrote it, define a class, create an object, declare private variables and a public method of a class. They declare, write, and call a method; use global variables in a method; and initialize variables for a starting high scores list. They use a for ( ) loop to repeat code five times, create an input and output file stream, close and open an input and output file stream, read and write information from a text file, use the -- operator to decrement a variable, and write for ( ) loops with complex conditions.

  • Lab 1: Make a Title Screen
  • Lab 2: Add an Object
  • Lab 3: Write a Method
  • Lab 4: Add a for ( ) Loop
  • Lab 5: Read and Write to a File
  • Lab 6: Add More for ( ) Loops

Project 6: Visual Hello World

Students explore interactive features of the default Windows forms project, create a message box that appears when a button is clicked, change a window's title and background color, change a button's font, resize and move a button, and resize a window.

  • Lab 1: Create a Windows Forms Project
  • Lab 2: Add a Button
  • Lab 3: Design Your Window

Project 7: Organizer Part I

Students create a Windows forms project, add a menu strip, a menu, a menu option, and a dataGridView object. They edit the data grid's properties, add columns to a data grid, create an XML file, and add it to a Visual C++ project. They add XML elements and attributes to an XML file, use the XML namespace, declare and create a DataSet object, and program a data grid to get data from a DataSet object.

  • Lab 1: Add a Menu
  • Lab 2: Add a Data Grid
  • Lab 3: Create an XML File
  • Lab 4: Get Data From an XML File

Project 8: Organizer Part II

Students add a second form to a project, create a form object, use the ShowDialog ( ) command to make the form appear, and add text boxes and labels to a form. They create an Add and a Cancel button, program those buttons as default buttons, and create event handlers for the buttons. They use objects and methods from the XML namespace, store text from text boxes as attributes of an XmlElement object, add an XmlElement object to the end of an XmlDocument object, save the data in an XmlDocument object to an XML file, reload data in a data grid, add a new field to a form, and program the new field to be added to the XML file.

  • Lab 1: Add a Form
  • Lab 2: Design a Form
  • Lab 3: Store and Update Data
  • Lab 4: Add a Field
back to top

Lesson Scheduling

back to top

K12 Scope & Sequence documents for each course include:

  • Course Overview (as seen above)
  • Course Outline
  • Lesson Time and Scheduling