Sie sind auf Seite 1von 21

Axia College

Course Syllabus
AADV0MKG75
INTRODUCTION TO C/C++

Course Start Date: 01/04/10


Course End Date: 03/07/10

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.

Chat-Room: This is a read-and-write access forum. It is designed as a place to discuss issues


not related to the course content. This is the forum to which we will send our bios.

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 Topics & Objectives

Week One: Understanding the Basics

• Apply the logical aspects of programming using pseudo code.


• Describe the Integrated Development Environment (IDE).

Week Two: Variables and Input and Output Operations

• Outline the different components of a program.


• Use different types of variables in a C++ program.
• Compile a C++ program to create an executable.
• Identify input and output operations.

Week Three: Selection and Repetition Structures

• Compose if statements, looping statements, and case statements.

Week Four: Arrays and Pointers

• Use arrays and pointers in a C++ program.

Week Five: A Structured and Modular Approach to Programming

• Identify the components and purposes of functions.


• Pass arguments to functions.

Week Six: Structures and Classes

• Explain the use of structures within classes.


• Explain how classes are defined and used.

Week Seven: Unions

• Explain the function and purpose of unions.

Week Eight: Basic Concepts of Object Oriented Programming (OOP)

• Explain the use of objects in object oriented programming (OOP).


• Summarize the relationship between structures, classes, and unions within object
oriented programming.

Week Nine: C++ Programming in Review

• Create functional C++ programs.


Course Design Guide 5
IT/218 Version 2

Course Materials

Horton, I. V. (2008). Ivor Horton’s beginning visual C++ 2008. Indianapolis, IN: Wiley Publishing,
Inc.

All electronic materials are available on your student Web site.

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/

Weekly Point Values

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

• Apply the logical aspects of programming using pseudo code.


• Describe the Integrated Development Environment (IDE).

Course Assignments

1. Course Preparation

• Read the course description and objectives.


• Read the facilitator’s biography and post your own.

2. Readings

• Read Appendix A.
• Read Ch. 1 of Ivor Horton’s Beginning Visual C++ 2008.

3. CheckPoint: Pseudo Code

• 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?

• Post your response as an attachment in your Individual forum.

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.

Summary of Week 1 Deliverables


Course Design Guide 7
IT/218 Version 2

Assignment Location Due

Discussion Question 1 Please post in the main forum Day 2

Discussion Question 2 Please post in the main forum Day 4

Please post into your assignment


Pseudo Code CheckPoint Day 5
section of eCampus
Course Design Guide 8
IT/218 Version 2

Week Two
Variables and Input and Output Operations

• Outline the different components of a program.


• Use different types of variables in a C++ program.
• Compile a C++ program to create an executable.
• Identify input and output operations.

Course Assignments

1. Readings

• Read Ch. 2 & 11 of Ivor Horton’s Beginning Visual C++ 2008.

2. CheckPoint: Components of a Program

• 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.

• Use the graphic on p. 37 as a guide.

3. Assignment: Overtime Pay Compile Errors

• Use the code in Appendix B as a starting point for this assignment.


• Correct the compile errors to arrive at the following output.

o Sample Output:

Enter the Employee Name = Mary


Enter the hours worked = 43
Enter his or her hourly wage = 3.00

Employee Name ............. = Mary


Base Pay .................. = 120
Hours in Overtime ......... = 3
Overtime Pay Amount........ = 13.5
Total Pay.................. = 133.5
Course Design Guide 9
IT/218 Version 2

Weekly Reminders

Summary of Week 2 Deliverables

Assignment Location Due

Components of a Program Please post into your assignment section of


Day 5
CheckPoint eCampus

Please post into your assignment section of


Overtime Pay Compile Errors Day 7
eCampus
Course Design Guide 10
IT/218 Version 2

Week Three
Selection and Repetition Structures

• Compose if statements, looping statements, and case statements.

Course Assignments

1. Readings

• Read Appendix A.

2. CheckPoint: Text Problems

• 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:

Enter numbers, one per line. Enter 0 to end:


7
8
6
5
5
9
8
0
Thank you. The total was 48.
The total number of inputs read: 8
The total is less than 100.

3. Discussion Questions

• What are some of the practical applications of if statements? How does an if


statement in programming relate to logical decision making? Cite a specific example.
• What are some of the practical applications of loops, and why are they used in
programming?

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.

Summary of Week 3 Deliverables


Assignment Location Due

Discussion Question 1 Please post in the main forum Day 2

Discussion Question 2 Please post in the main forum Day 4

Please post into your assignment


Text Problems CheckPoint Day 5
section of eCampus
Course Design Guide 12
IT/218 Version 2

Week Four
Arrays and Pointers

• Use arrays and pointers in a C++ program.

Course Assignments

1. Readings

• Read Ch. 4 of Ivor Horton’s Beginning Visual C++ 2008.

2. CheckPoint: Arrays Versus Pointers

• Define the following and provide an example of each:

o A pointer
o An array

• Answer the following question and provide an example. What is the


difference between a one-dimensional and a two-dimensional array?

3. Assignment: Programming Using Arrays and Pointers

• 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

Summary of Week 4 Deliverables

Assignment Location Due

Please post into your assignment section of


Arrays Versus Pointers CheckPoint Day 5
eCampus

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

• Identify the components and purposes of functions.


• Pass arguments to functions.

Course Assignments

1. Readings

• Read Ch. 5 of Ivor Horton’s Beginning Visual C++ 2008.

2. CheckPoint: Text Problems

• 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?

Note. Do not try to combine these programs into one program.

3. Discussion Questions

• What advantages do functions offer you as a programmer? Under what


circumstances do you use functions in an actual program? Cite specific examples.
• Describe the different methods of passing-by-value, passing-by-reference, and
passing-by-pointer, and provide a simple example. What do they have in common?
How are they different?

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.

Summary of Week 5 Deliverables

Assignment Location Due

Discussion Question 1 Please post in the main forum Day 2

Discussion Question 2 Please post in the main forum Day 4


Course Design Guide 14
IT/218 Version 2

Please post into your assignment


Text Problems CheckPoint Day 5
section of eCampus
Course Design Guide 15
IT/218 Version 2

Week Six
Structures and Classes

• Explain the use of structures within classes.


• Explain how classes are defined and used.

Course Assignments

1. Readings

• Read Ch. 7 of Ivor Horton’s Beginning Visual C++ 2008.

2. CheckPoint: Overtime Pay Structures

• 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.

3. Assignment: Programming Using Structures and Classes

• Use the program on pp. 345–346 as a starting point for this assignment.
• Modify the program in the following ways:

o Add a third box to the calculation.


o Calculate length (L), width (W), and height (H) for the third box.
o Calculate the total volume for all three boxes in question.

• Answer the following questions in your own words after making the required
modifications to the program:

o Under what circumstances must you use classes?


o Why do you use a class instead of a structure? Are they interchangeable?
Explain your answer.
o Are classes more useful than structures? Why?

Weekly Reminders

Summary of Week 6 Deliverables

Assignment Location Due

Please post into your assignment section of


Overtime Pay Structures CheckPoint Day 5
eCampus

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

• Explain the function and purpose of unions.

Course Assignments

1. Readings

• Read Ch. 8 of Ivor Horton’s Beginning Visual C++ 2008.

2. CheckPoint: Text Problems

• 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.

o Define a union; then, explain how a union may be used.


o Explain how sharing may be associated with unions.
o What are the alternatives to unions?

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.

Summary of Week 7 Deliverables

Assignment Location Due

Discussion Question 1 Please post in the main forum Day 2

Discussion Question 2 Please post in the main forum Day 3

Please post into your assignment


Text Problems CheckPoint Day 5
section of eCampus
Course Design Guide 17
IT/218 Version 2

Week Eight
Basic Concepts of Object Oriented Programming (OOP)

• Explain the use of objects in object oriented programming (OOP).


• Summarize the relationship between structures, classes, and unions within object
oriented programming.

Course Assignments

1. Readings

• Read Ch. 9 of Ivor Horton’s Beginning Visual C++ 2008.

2. CheckPoint: Derived Classes and Base Classes

• Complete Exercise 2 on p. 597.


• Answer the following question in one paragraph. How are derived classes and
base classes related in this exercise?

3. Assignment: Object Oriented Programming Paper

• Write a 700- to 1,050-word paper in which you summarize the relationship


between structures, classes, and unions within OOP.
• Discuss the following topics in your paper. Each topic must be discussed from a
programmer’s perspective. Provide your thoughts on how it may be used.

o Structures
o Classes
o Unions
o Inheritance
o Objects
o Polymorphism

Weekly Reminders

Summary of Week 8 Deliverables

Assignment Location Due

Derived Classes and Base Classes Please post into your assignment section
Day 5
CheckPoint of eCampus

Please post into your assignment section


Object Oriented Programming Paper Day 7
of eCampus
Course Design Guide 18
IT/218 Version 2

Week Nine
C++ Programming in Review

• Create functional C++ programs.

Course Assignments

1. Capstone Discussion Question

• What are the similarities and differences between object oriented programming
and programming in C++? How may this knowledge assist you when creating C++
programs?

2. Final Project: Datamax, Inc. Overtime Pay Program

• Resources: Appendixes A & D

• Examine the following situation:

o Your company, Datamax, Inc., is in the process of automating its payroll


systems. Your manager has asked you to create a program that calculates
overtime pay for all employees. Your program must take into account the
employee’s salary, total hours worked, and hours worked more than 40 in a
week, and then provide an output that is useful and easily understood by
company management.

• 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:

o Three employees: Mark, John, and Mary


o The end user needs to be prompted for three specific pieces of input—
name, hours worked, and hourly wage.
o Calculate overtime if input is greater than 40 hours per week.
o Provide six test plans to verify the logic within the program.
o Plan 1 must display the proper information for employee #1 with overtime
pay.
o Plan 2 must display the proper information for employee #1 with no
overtime pay.
o Plans 3-6 are duplicates of plan 1 and 2 but for the other employees.

Program Requirements:

o Define a base class to use for the entire program.


o The class holds the function calls and the variables related to the
overtime pay calculations.
o Define one object per employee. Note there will be three employees.
Course Design Guide 19
IT/218 Version 2

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.

Logic Steps to Complete Your Program:

o Define your base class.


o Define your objects from your base class.
o Prompt for user input, updating your object classes for all three users.
o Implement your overtime pay calculations.
o Display overtime or regular time pay calculations. See the sample output
below.
o Implement object calculations by summarizing your employee objects
and display the summary information in the example below.

Sample Output:

Welcome to the Employee Pay Center

Enter the employee name = John


Enter the hours worked = 44
Enter his or her hourly wage = 3.33

Enter the employee name = Mary


Enter the hours worked = 33
Enter his or her hourly wage = 2.22

Enter the employee name = Mark


Enter the hours worked = 29
Enter his or her hourly wage = 2.22

Employee Name ............. = John


Base Pay .................. = 133.20
Hours in Overtime ......... = 4
Overtime Pay Amount........ = 19.98
Total Pay ................. = 153.18

Employee Name ............. = Mary


Base Pay .................. = 73.26
Hours in Overtime ......... = 0
Overtime Pay Amount........ = 0.00
Total Pay ................. = 73.26

Employee Name ............. = Mark


Base Pay .................. = 64.38
Hours in Overtime ......... = 0
Overtime Pay Amount........ = 0.00
Total Pay ................. = 64.38

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% 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.

Summary of Week 9 Deliverables

Assignment Location Due

Capstone Discussion Question Please post in the main forum Day 3

Final Project: Datamax, Inc. Overtime Please post into your assignment
Day 7
Pay Program section of eCampus

IT/218 Course Calendar

Monday Tuesday Wednesday Thursday Friday Saturday Sunday


Week 1 Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7

Pseudo Code
IT 218 Post Bio DQ 1 DQ 2
CheckPoint

Week 2 Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7


Components of Overtime Pay
IT 218 a Program Compile
CheckPoint Errors
Week 3 Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7

Text Problems
IT 218 DQ 1 DQ 2
CheckPoint

Week 4 Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7


Arrays Versus Programming
IT 218 Pointers Using Arrays
CheckPoint and Pointers
Week 5 Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7

Text Problems
IT 218 DQ 1 DQ 2
CheckPoint

Week 6 Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7


Course Design Guide 21
IT/218 Version 2

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

Week 8 Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7


Derived Classes Object
and Base Oriented
IT 218
Classes Programming
CheckPoint Paper
Week 9 Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7
Final Project:
Capstone
Datamax, Inc.
IT 218 Discussion
Overtime Pay
Question
Program

Academic
Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7
Week

Das könnte Ihnen auch gefallen