Beruflich Dokumente
Kultur Dokumente
Course Syllabus
AADV0MKG75
INTRODUCTION TO C/C++
Copyright
Copyright © 2009 by University of Phoenix. All rights reserved.
University of Phoenix® is a registered trademark of Apollo Group, Inc. in the United States and/or other countries.
Microsoft®, Windows®, and Windows NT® are registered trademarks of Microsoft Corporation in the United States and/or
other countries. All other company and product names are trademarks or registered trademarks of their respective
companies. Use of these marks is not intended to imply endorsement, sponsorship, or affiliation.
Edited in accordance with University of Phoenix® editorial standards and practices.
Course Design Guide 2
IT/218 Version 2
Facilitator Information
Luke Konrath
lkonrath23@email.phoenix.edu (University of Phoenix)
lkonrath@insightfaculty.net (Personal)
920-789-8592 (Central Standard Time)
Facilitator Availability
I am available from 9 a.m.-9 p.m. Central Time on most days, but I attempt to reserve Sunday for
my family. During the week, I am online most of the time during that 9 a.m.-9 p.m. time frame.
On Saturdays, I tend to be online in the morning only. If these times are not convenient for you,
please let me know. I will be happy to accommodate your schedule, if possible. I provide you with
these times to make it easier to communicate with me, and not to limit our contact.
I want you to know that, should you need to contact me outside these time frames, you should not
hesitate to do so.
For emergencies, when you are not able to gain access to messages on the Online Learning
System (OLS), please send a message to my personal email address. In the event a third party
needs to contact me, please direct them to my contact information listed under "facilitator
information." No third party should use your login credentials to gain access to the classroom.
Where to Go to
Class
Main: This is the main forum for the class and is where discussion is conducted. It has read-and-
write access for everyone.
Course-Materials: This is a read-only forum, which means you can read messages here but
cannot send any. This is where I will post the course syllabus and materials.
Individual Forum: You will see one forum with your name on it. This is a private forum, shared
only by you and me, the facilitator. Your classmates will not have access to this forum. This is
where you will post your individual assignments, and where I will post your feedback. You can
also ask questions here. However, if you have general questions about instructions of
assignments, please post those in the Main forum, since other students may benefit by that
exchange as well.
Policies
For class policies, please see the Policies link on the left side of the Materials page for the course
on eCampus. Faculty and students/learners will be held responsible for understanding and
adhering to all policies contained within that link. University policies are subject to change so
please be sure to read them at the beginning of each class as it may have changed since your
last class. Policies may be slightly different depending on the modality in which you attend class.
Course Design Guide 3
IT/218 Version 2
If you have recently changed modalities it is important you read the policies governing your
current class modality.
Technical Support
Technical Support is available 24 hours a day, 365 days a year. Call 1-877-832-4867, or use the
e-mail support form.
Answers to the most common issues are found in the Knowledge Base by clicking Help, found at
the top of every student Web site.
Feedback
Each week, I will provide grades or scores and comments on your assignments. I will send
feedback to your Individual forum.
Grading Formula
Points Grade
95+ A
90-94 A-
87-89 B+
84-86 B
80-83 B-
77-79 C+
74-76 C
70-73 C-
67-69 D+
64-66 D
60-63 D-
<59 F
Course Design Guide 4
IT/218 Version 2
Course Description
This course introduces the student to C/C++ programming. The syntax and semantics of the
C/C++ programming language are used to produce simple computer programs.
Course Materials
Horton, I. V. (2008). Ivor Horton’s beginning visual C++ 2008. Indianapolis, IN: Wiley Publishing,
Inc.
Software
Microsoft® Visual Studio C++ 2008 Express Edition® or an equivalent C++ compiler is required for
this course. Download Visual Studio C++ Express Edition® free at
http://www.microsoft.com/eXPress/download/
Week One
CheckPoint: Pseudo Code 30
Discussion Questions 20
Participation 10
Week Two
CheckPoint: Components of a Program 20
Assignment: Overtime Pay Compile Errors 100
Week Three
CheckPoint: Text Problems 30
Discussion Questions 20
Participation 10
Week Four
CheckPoint: Arrays Versus Pointers 20
Assignment: Programming Using Arrays and Pointers 100
Week Five
CheckPoint: Text Problems 30
Discussion Questions 20
Participation 10
Week Six
CheckPoint: Overtime Pay Structures 20
Assignment: Programming Using Structures and Classes 100
Week Seven
CheckPoint: Text Problems 30
Discussion Questions 20
Participation 10
Week Eight
CheckPoint: Derived Classes and Base Classes 20
Assignment: Object Oriented Programming Paper 100
Week Nine
Capstone Discussion Question 20
Final Project: Datamax, Inc. Overtime Pay Program 250
Participation 10
Point Total 1,000
Course Design Guide 6
IT/218 Version 2
Week One
Understanding the Basics
Course Assignments
1. Course Preparation
2. Readings
• Read Appendix A.
• Read Ch. 1 of Ivor Horton’s Beginning Visual C++ 2008.
• Using pseudo code, write a program on how you turn a corner in an automobile.
Also, note that there is a stop sign in the intersection.
• Determine the logical steps involved and write out the pseudo code.
• Consider the following questions when completing your assignment:
o What are your inputs?
o What is your expected output?
o What are the logical steps the automobile takes to complete the turn?
4. Discussion Questions
• Describe pseudo code in your own words. How may the use of pseudo code help
you learn logical programming?
• What are the fundamental components of using the IDE? What are the
advantages and disadvantages of using the IDE tool?
Weekly Reminders
Discussion Questions
Discussion question responses will count towards the class participation requirement.
Only posts in the Main classroom forum will count towards your class participation score.
Week Two
Variables and Input and Output Operations
Course Assignments
1. Readings
• Explain the different components of a program and how they interact graphically.
• Use a program of your choice including though not limited to Microsoft® Word,
Microsoft® PowerPoint®, Microsoft® Excel®, and Microsoft® Paint.
• Check with your facilitator to verify they are able to open your document if you
use a program not from Microsoft®.
• Provide explanations for the logical connections between different parts of the
program so someone who does not understand the components may learn about
them.
o Sample Output:
Weekly Reminders
Week Three
Selection and Repetition Structures
Course Assignments
1. Readings
• Read Appendix A.
• Complete Exercise 1 on p. 159. Note: Only do the while loop, not the do-while or
for loops.
• Add the following to your program:
o Add a counter within the while loop that keeps up with the number of
inputs that are entered.
o Add a comment that determines if the total value is less than 100 or
greater than 100. See the sample output.
o Use switch statements to determine the total number of inputs.
• See the example output.
o Sample Output:
3. Discussion Questions
Weekly Reminders
Discussion Questions
Discussion question responses will count towards the class participation requirement.
Course Design Guide 11
IT/218 Version 2
Only posts in the Main classroom forum will count towards your class participation score.
Week Four
Arrays and Pointers
Course Assignments
1. Readings
o A pointer
o An array
• Use the program, Arrays of Pointers, on p. 181 as a starting point for this
assignment.
• Refer to Appendix C for full directions on the changes to the program you need
to make to complete this assignment.
Weekly Reminders
Programming Using Arrays and Please post into your assignment section of
Day 7
Pointers eCampus
Course Design Guide 13
IT/218 Version 2
Week Five
A Structured and Modular Approach to Programming
Course Assignments
1. Readings
• Use the program, Passing-by-value, on the bottom of pp. 248–249 and the
program, Passing-by-reference, on pp. 255–256 as a starting point for this
assignment.
• Write a similar program, but change the code to pass two variables to the
function call rather than one.
• Answer the following questions after completing both programs:
o What is the purpose of the function header?
o How may you identify the body of a function?
o What does the return statement do?
3. Discussion Questions
Weekly Reminders
Discussion Questions
Discussion question responses will count towards the class participation requirement.
Only posts in the Main classroom forum will count towards your class participation score.
Week Six
Structures and Classes
Course Assignments
1. Readings
• Use the example on p. 333 to create your own structure related to an overtime
pay calculator and define the variables needed within your structure to do those
calculations.
• Define and create a base class using the same variables that may serve the
same function as the structure.
• Use the program on pp. 345–346 as a starting point for this assignment.
• Modify the program in the following ways:
• Answer the following questions in your own words after making the required
modifications to the program:
Weekly Reminders
Programming Using Structures and Please post into your assignment section of Day 7
Course Design Guide 16
IT/218 Version 2
Classes eCampus
Week Seven
Unions
Course Assignments
1. Readings
• Read the section Defining Unions on pp. 417–418 and answer the following
questions in 200 to 300 words. Use your own words and do not copy directly from the
text.
3. Discussion Questions
• What is the purpose of a union? Under what circumstances may you see using
unions in your programs? Provide specific examples.
• How do unions interact with the rest of your program? Are there any drawbacks to
using a union? Explain your answer.
Weekly Reminders
Discussion Questions
Discussion question responses will count towards the class participation requirement.
Only posts in the Main classroom forum will count towards your class participation score.
Week Eight
Basic Concepts of Object Oriented Programming (OOP)
Course Assignments
1. Readings
o Structures
o Classes
o Unions
o Inheritance
o Objects
o Polymorphism
Weekly Reminders
Derived Classes and Base Classes Please post into your assignment section
Day 5
CheckPoint of eCampus
Week Nine
C++ Programming in Review
Course Assignments
• What are the similarities and differences between object oriented programming
and programming in C++? How may this knowledge assist you when creating C++
programs?
• Compile your program utilizing the following background information and the
code outline in Appendix D.
•
Submit your project as an attachment including the code and the output.
Company Background:
Program Requirements:
o Your program must take the objects created and implement calculations
based on total salaries, total hours, and the total number of overtime hours. See
the Employee Summary Data section of the sample output.
Sample Output:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% EMPLOYEE SUMMARY DATA%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Total Employee Salaries ..... = 290.82
%%%% Total Employee Hours ........ = 106
%%%% Total Overtime Hours......... = 4
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Course Design Guide 20
IT/218 Version 2
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Weekly Reminders
Discussion Questions
Discussion question responses will count towards the class participation requirement.
Only posts in the Main classroom forum will count towards your class participation score.
Final Project: Datamax, Inc. Overtime Please post into your assignment
Day 7
Pay Program section of eCampus
Pseudo Code
IT 218 Post Bio DQ 1 DQ 2
CheckPoint
Text Problems
IT 218 DQ 1 DQ 2
CheckPoint
Text Problems
IT 218 DQ 1 DQ 2
CheckPoint
Programming
Overtime Pay
Using
IT 218 Structures
Structures and
CheckPoint
Classes
Week 7 Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7
Text Problems
IT 218 DQ 1 DQ 2
CheckPoint
Academic
Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7
Week