Lesson 1
Due Date October 15, 2007
Read pages 2 to 11 in the Purple textbook C++ Basics by Todd Knowlton
Write a paragraph for each of the Objectives on your. Copy and paste into MS Word or Google Documents. Type the Answers in a different COLOR. Turn in the assignment in the ICA (http://www.nicenet.org/).
Due Date October 16, 2007
Define the Vocabulary terms. Copy and paste into MS Word or Google Documents. Type the Answers in a different COLOR. Turn in the assignment in the ICA (http://www.nicenet.org/).
algorithms
assembly code
compiler
executable file
graphic user interface (GUI)
high-level language
linker
low-level language
machine language
object code
object file
operating system
programming language
source code
Due Date October 18, 2007
Complete the lesson 1 Review Questions. Copy and paste into MS Word or Google Documents. Type the Answers in a different COLOR. Turn in the assignment in the ICA (http://www.nicenet.org/).
Lesson 1: Review Questions
True/False
Type True if the statement is true. Type False if it is false.
1. A word processor is an example of an application program.
2. The programs in a typical computer’s ROM provide programs such as spreadsheets and video games.
3. The operating system controls input and output operations of a computer.
4. An instruction set is a system for interacting with computer users through pictures.
5. A compiler creates a source code file.
6. The programming language most like machine language is C++.
7. Programs written in low-level languages usually require less memory than those written in high-level languages.
8. High-level languages are more difficult to read than low-level languages.
9. An interpreter creates an object file that a linker makes into an executable file.
10. Most modern compilers are programs that must be run separately from the linker.
Written Questions
Write your answers to the following questions.
11. What does the acronym ROM stand for?
12. List three operations managed by operating systems.
13. What is the device that processes the instructions in a computer?
14. What is the name of the number system commonly used to represent the state of being on or off?
15. Give an example of a low-level programming language.
16. List three examples of high-level programming languages.
17. List two advantages of a low-level language.
18. Describe the process involved when using a compiler to program a computer.
19. Describe one advantage that compiled programs have over interpreted programs.
20. Why is it important for professional programmers to have worked with various programming languages?
Due Date October 18, 2007
Go to Introduction to Xcode to learn how to write your First C++ Program.
Lesson 2—Entering, Compiling, and Running a C++ Program
Read pages 15 to 28 in the Purple textbook C++ Basics by Todd KnowltonDue Date October 22, 2007
· Study the objectives for the lesson. Write a description for each of the Objectives.
Due Date October 25, 2007
Follow the directions to create your first C++ program using Xcode. Turn in the your program in the ICA (http://www.nicenet.org/).
· This lesson gives you the chance to create your first C++ program. You will learn about the structure of a C++ program, enter source code, compile and run the program, and modify the source code. You will also learn how to run a standalone program creating by your C++ compiler.
· As a guide to new vocabulary, examine the Vocabulary list at the beginning of the lesson. The glossary is also an excellent reference for terms in this lesson.
· The purpose of the sidebar items that are embedded within the text throughout the lesson is to provide users with important background information, both technical and historical. Boxed items occur under these different headings throughout the book: Concept Builder, Did You Know?, Hot Tip, Important, and Note.
BEGIN
braces
case sensitive
comments
compiler directives
functions
header file
lowercase
main function
statement
uppercase
·
Complete the Lesson 2 Review Questions on pages 24–25. Copy and paste into MS Word or Docs & Spreadsheets. Type the Answers in a different COLOR. Turn in the assignment in the ICA (http://www.nicenet.org/).
Due Date November 2, 2007
Lesson 2: Review Questions
Type True if the statement is true. Type False if it is false.
Write your answers to the following questions.
ASSESS
· Quiz on Friday.
Unit 1: Review Questions
Copy and paste into MS Word or Docs & Spreadsheets. Type the Answers in a different COLOR. Turn in the assignment in the ICA (http://www.nicenet.org/).
Due Date November 6, 2007
Write the letter of the description from Column 2 that best matches the term or phrase in Column 1.
Column 1 Column 2
_____ 1. algorithm A. The set of commands a microprocessor is made to understand
_____ 2. assembler B. A program that links object files created by a compiler into an executable program
_____ 3. compiler C. A program that reads assembly language and converts it into machine language.
_____ 4. executable file D. A program in the form of a high-level language
_____ 5. instruction set E. A program that translates a high-level language into machine language but does not save the machine language
_____ 6. interpreter F. The device in the computer that processes the instructions
_____ 7. linker G. A set of sequential instructions followed to solve a problem
_____ 8. microprocessor H. The machine language code produced by a compiler
_____ 9. object code I. A program that translates a high-level language into machine language, then saves the machine language
_____ 10. source code J. The output of a linker
Write your answers to the following questions.
1. What is an application program?
Read pages 30 to 45 in the Purple textbook C++ Basics by Todd Knowlton Lesson 3 Vocabulary 100 Points Turn in on Nicenet.
Due November 29
Study the objectives for the lesson.Type each objective. Write a sentence for each of the Objectives - Turn in on Nicenet.
· This lesson introduces you to variables and constants. You will learn about integer data types, character variables, and Boolean variables. You will also learn how to declare, name, and initialize variables and constants.
· As a guide to new vocabulary, examine the Vocabulary list at the beginning of the lesson. The glossary is also an excellent reference for terms in this lesson.
· The purpose of the sidebar items that are embedded within the text throughout the lesson is to provide users with important background information, both technical and historical. Boxed items occur under these different headings throughout the book: Concept Builder, Did You Know?, Hot Tip, Important, and Note.
ASSIGNMENTS
Lesson 3 Vocabulary 100 Points Create a new page on My sites . Write your answers in complete sentences.
·
· Complete the Vocabulary Review on page 42
Lesson 3 300 Points Use Xcode Take a screen shot of each completed step.
Name each step (3.1, 3.2, etc.).
Upload Lesson 3—Variables and Constants page on My sites .
Due December 4
· Read pages 30–31
Lesson 3: Review Questions 100 Points Turn in on Nicenet.
Due December 5
True/False
Type True if the statement is true. Type False if it is false.
1. An integer is a number with digits after the decimal point.Name each step (3A, 3B, & CTA).
Upload Lesson 3—Variables and Constants page on My sites .
Project 3A 200 Points
· After completing this lesson, ask your instructor for the assessment information.Quiz 200 Points Due December 20
Lesson 4—Math Operations
Read pages 46 to 56 in the Purple textbook C++ Basics by Todd Knowlton
Lesson 4 Vocabulary 100 Points Turn in on Nicenet. Due January 3
As a guide to new vocabulary, examine the Vocabulary list at the beginning of the lesson. The glossary is also an excellent reference for terms in this lesson.
Lesson 4 Objectives 100 Points Turn in on Nicenet. Due January 4
Study the objectives for the lesson.Type each objective. Write a sentence for each of the Objectives.·
Type True if the statement is true. Type False if it is false.
1. Variables can be declared and initialized in the same statement.LESSON 4: Written Questions 200 Points Turn in on Nicenet. Due January 11
Type your answers to the following questions.
11. What is the assignment operator?
12. When using the assignment operator, on which side of the operator must you place the variable getting the new value?
13. What symbol is used to represent the division operation?
14. What symbol is used to represent the subtraction operation?
15. What does the modulus operator do?
16. When is it not a good idea to perform calculations in output statements?
17. Using the addition operator, write a statement that is equivalent to x = x++;.
18. If the value of i is 10 before the following statement is executed, what is the value of j after the statement?
j = i++;
19. If the value of i is 4 before the following statement is executed, what is the value of j after the statement?
j = --i;
20. What can be used to override the order of operations?
Use Xcode to:
1. What operator changes the value of the variable to the left of the operator to the result of the expression to the right of the operator?
Lesson 5—How Data Types Affect Calculations
Read pages 60 to 74 in the Purple textbook C++ Basics by Todd Knowlton
Study the objectives for the lesson.Write a paragraph for each of the Objectives on your
.
MATERIALS
· Lesson 5 of the student textbookPREPARE
· Study the objectives for the lesson.
· This lesson provides more information on using correct data types in programs. You will learn how to mix data types and how to avoid overflow and underflow. You will also learn how to avoid floating-point rounding errors.
· As a guide to new vocabulary, examine the Vocabulary list at the beginning of the lesson. The glossary is also an excellent reference for terms in this lesson.
· The purpose of the sidebar items that are embedded within the text throughout the lesson is to provide users with important background information, both technical and historical. Boxed items occur under these different headings throughout the book: Concept Builder, Did You Know?, Hot Tip, Important, and Note.
BEGIN
Use DEV-C++to
· Read pages 60–61ASSIGNMENTS
· Complete the Vocabulary Review on page 67
Lesson 5: Review Questions
True/False
Type True if the statement is true. Type False if it is false.
1. Many programming languages do not allow the mixing of data types in calculations.
2. Promotion permanently changes the data type of a variable.
3. The way C++ automatically converts data types is called typecasting.
4. Assigning an integer value to a floating-point variable can result in truncation.
5. Overflow can occur only with floating-point variables.
6. Sometimes an overflow can be corrected by changing data types.
7. Underflow occurs when a number is too small for a variable.
8. Floating-point precision can affect calculations.
9. “E” notation prevents variable overflow and underflow.
10. The float and double data types have the same amount of precision.
Written Questions
Write your answers to the following questions.
11. When a variable of type int is multiplied by a variable of type float, which variable is promoted?
12. After a calculation in which a variable of type float is promoted to another type, what data type does the variable retain?
13. If a calculation results in the value 4.9, and that value is assigned to a variable of type short, what value will the variable of type short contain after the assignment is complete?
14. What is the term that means the numbers to the right of the decimal point are removed?
15. What operator is used to explicitly change one data type to another?
16. Write a statement that changes the contents of a variable named radius to type float, multiplies it by 2.5, and assigns the result to a variable named A.
17. Define overflow.
18. What floating-point data type is the most likely to have difficulty with underflow?
19. How would you write 6.9 × 108 in “E” notation?
20. How would you write –3.1 × 10–6 in “E” notation?
Written Questions
Write your answers to the following questions.
1. What term describes the process by which data types are automatically changed to another type during a calculation?
2. What term describes the process by which a data type is made to change by the programmer?
3. What is the term used when digits to the right of the decimal point are dropped?
4. What term describes a condition where an integer becomes too large for its data type?
5. What term describes a condition where a floating-point number is so small that a data type interprets it as zero?
Use DEV-C++to
· Complete the Lesson 5 Projects on pages 69–70
· Complete the Lesson 5 Critical Thinking Activity on page 70
ASSESS
· After completing this lesson, ask your instructor for the assessment information.