This course introduces the student to C/C++ programming. The syntax and semantics of the C/C++ programming languages are used to produce simple computer programs.
This undergraduate course is 5 weeks.
Attendance and participation are mandatory in all university courses, and specific requirements may differ by course. If attendance requirements are not met, a student may be removed from the course. Please review the Course Attendance Policy in the Catalog for more information.
Topics and Objectives
Fundamentals of C/C++
- Differentiate between the C/C++ programming languages.
- Describe the significance of the main function to a C++ program.
- List the four components of a C/C++ integrated development environment (IDE).
- Describe the value of libraries and explain how libraries are included in a C/C++ program.
- Code and test a simple “Hello, world!” program in C++.
Varibles, Operators, Data Types, and Programming Decisions with the “if” Statement
- Differentiate between variables and literals.
- Differentiate among assignment, arithmetic, comparison, and logical operators, specifying the assignment operator and at least two examples of each of the others.
- List at least five data types, and specify at least two representative values for each data type.
- Correctly specify the syntax of the “if” statement.
- Code and test a C++ program that includes variables and constants of different data types, multiple operators, and at least one “if” statement.
More Control Structures, Arrays, and Functions
- Distinguish between the C++ “if” statement, “switch” statement, and looping statement.
- Explain the purpose of an array and describe how programmers iterate, or walk through, an array.
- Identify a function declaration, arguments passed to a function, and a value returned from a called function.
- Code and test a C++ program that includes a looping statement, an array, and a function declaration/call.
Object-Oriented Programming, Part 1: Classes, Objects, and Member Functions
- Explain how defining data and behaviors together in a class differs from the procedural approach to defining data and behaviors.
- Distinguish between a C++ class definition and an instantiation of that class.
- Identify a C++ class constructor.
- Distinguish between a function and a member function in C++.
- Code and test a C++ program that includes class definitions, object instantiations, and method calls.
Object-Oriented Programming, Part 2: Inheritance
- Explain the benefit of inheriting one or more derived classes from a base class.
- Differentiate between private and protected members.
- Define the term overloaded, and explain why a programmer might want to overload a base class function with a function of the same name in the derived class.
- Code and test a C++ program that includes a base class and a derived class.
The University of Phoenix reserves the right to modify courses.
While widely available, not all programs are available in all locations or in both online and on-campus formats. More information about eligibility requirements, policies, and procedures can be found in the catalog.
Transferability of credit is at the discretion of the receiving institution. It is the student’s responsibility to confirm whether or not credits earned at University of Phoenix will be accepted by another institution of the student’s choice.