Presentation is loading. Please wait.

Presentation is loading. Please wait.

Exam 1 Review.

Similar presentations


Presentation on theme: "Exam 1 Review."— Presentation transcript:

1 Exam 1 Review

2 Chapter 1 Key Terms Review Questions Key Concepts
- Algorithm - Programming Languages - Compiler - Control Structure - Programs - Decision Structure - Programmers - Repetition Structure - Loop - Iteration - Etc… Review Questions Key Concepts - Live of a programmer - Jeff is more engaging than DHale - Machine, vs Assembly vs High Level Languages - Control, Repetition and Decision Structures

3 Chapter 2 Key Terms Review Questions Key Concepts
- Desk Checking - Flowchart - Valid Data - Invalid Data - IPO / IPO Chart - Processing item - Pseudocode - Etc… Review Questions Key Concepts - Steps to creating a Computer Solution (Analyze the problem, Plan the algorithm, Desk check the algorithm, Code the algorithm, Desk check the program, Evaluate and modify) - Creating and Debugging Algorithms - Creating and Debugging IPO’s and Flowcharts

4 Chapter 3 Key Terms Review Questions Key Concepts
- Camel Chase - Promoted - Demoted - Implicit type conversion - Initializing - Variable - Constant - Syntax - Etc… Review Questions Key Concepts - Variable types - Variable vs Constant - C++ Declaration Statement - Type Casting - Naming Standards

5 Chapter 4 Key Terms Review Questions Key Concepts
- #include directive - math operators (+ - / * %) - Assignment statements - cin, cout, <<, >> - Bug, Debugging - Error Types - Functions / Parts of a Function - Source Code - Stream - using directive - Etc… Review Questions Key Concepts - order of operation - commenting - creating functioning program - debugging

6 Pulling it together Scenario
A local business would like for you to build a function to help calculate commission for their sales team. They have a 10 person sales force. No one had more than three sales during the pay period. If they are a junior (“jr” in the data) sales associate they get 5% commission on sales. If they are a senior (“sr” in the data) sales associate they get 10% commission on sales. Design the solution.

7 IPO Input Processing Output sale1 sale2 sale3 Associate level
Sr Commission Rt (.1) Jr Commission Rt (.05) Processing Items Total sales Commission Rate Algorithm: Repeat 10 times Initialize Total sales = 0 Initialize Commission Rate = 0 Initialize Sale1, 2 and 3 = 0 Enter sale1 through sale 3 Enter Associate Level If associate level = “jr” set commission rate = jr commission rt Else set commission rate = sr commission rt End if Set total sales = sale1 + sale 2 + sale 3 Set commission amount = total sales * commission rate Output commission amount End Repeat Commission amount

8 C++ Instructions Processing Items Output IPO Information
Input Items sale1 sale2 sale3 Associate level Sr Commission Rt (.1) Jr Commission Rt (.05) Processing Items Total sales Commission Rate Output Commission Amount double sale1 = 0.0; double sale2 = 0.0; double sale3 = 0.0; string associateLevel = “”; const double SR_RATE = .1; const double JR_RATE = .05; double totalSales = 0.0; double commRate = 0.0; double commAmt = 0.0;


Download ppt "Exam 1 Review."

Similar presentations


Ads by Google