Exam 1 Review.

Slides:



Advertisements
Similar presentations
Introduction to C Programming
Advertisements

An Introduction to Programming with C++ Fifth Edition
An Introduction to Programming with C++ Fifth Edition Chapter 3 Completing the Problem-Solving Process and Getting Started with C++
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
LECTURE 1 CMSC 201. Overview Goal: Problem solving and algorithm development. Learn to program in Python. Algorithm - a set of unambiguous and ordered.
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
Chapter 2- Visual Basic Schneider
Chapter 2: Input, Processing, and Output
An Introduction to Programming with C++ Fifth Edition Chapter 4 Chapter 4: Variables, Constants, and Arithmetic Operators.
An Introduction to Programming with C++ Fifth Edition Chapter 4 Chapter 4: Variables, Constants, and Arithmetic Operators.
Moving To Code 3 More on the Problem-Solving Process §The final step in the problem-solving process is to evaluate and modify (if necessary) the program.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 3 Planning Your Solution
PRE-PROGRAMMING PHASE
Chapter 1 Pseudocode & Flowcharts
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
PRINCIPLES OF PROGRAMMING Revision. A Computer  A useful tool for solving a great variety of problems.  To make a computer do anything (i.e. solve.
DCT 1123 PROBLEM SOLVING & ALGORITHMS INTRODUCTION TO PROGRAMMING.
Planning for the Solution
Computer Programming TCP1224 Chapter 2 Beginning the Problem-Solving Process.
Chapter 3: Completing the Problem- Solving Process and Getting Started with C++ Introduction to Programming with C++ Fourth Edition.
Computer Programming TCP1224 Chapter 3 Completing the Problem-Solving Process and Getting Started with C++
Programming Concepts Chapter 3.
Computer Programming TCP1224 Chapter 4 Variables, Constants, and Arithmetic Operators.
CPS120 Introduction to Computer Programming The Programming Process.
An Introduction to Programming with C++ Sixth Edition Chapter 7 The Repetition Structure.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 3 Variables, Constants, Methods, and Calculations.
Chapter 2: General Problem Solving Concepts
Definition of Terms Software/Programs Programs that directs the operation of a computer system Set of instructions Codes Programming Process of planning,
1 Program Planning and Design Important stages before actual program is written.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Three Memory Locations and Calculations.
How Are Computers Programmed? CPS120: Introduction to Computer Science Lecture 5.
1 For Loops l From Chapter 9 l A shorthand way of coding count loops.
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
An Introduction to Programming with C++ Sixth Edition
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Chapter 7: The Repetition Structure Introduction to Programming with C++ Fourth Edition.
Chapter 2: Input, Processing, and Output Starting Out with Programming Logic & Design by Tony Gaddis (with instructor modifications) 1-1.
Chapter 4: Variables, Constants, and Arithmetic Operators Introduction to Programming with C++ Fourth Edition.
CS Class 04 Topics  Selection statement – IF  Expressions  More practice writing simple C++ programs Announcements  Read pages for next.
An Introduction to Programming with C++ Sixth Edition Chapter 5 The Selection Structure.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
Chapter 4 Chapter 4: Variables, Constants, and Arithmetic Operators.
Intro. to Computer Programming Eng. Nehal A. Mohamed Spring Semester-2016.
An Introduction to Programming with C++ Sixth Edition Chapter 8 More on the Repetition Structure.
CIS 115 AID Teaching Effectively/cis115aid.com FOR MORE CLASSES VISIT
Exam 1 Review Jeff has 100 students in his MIS120 class. He is giving a 50 question exam worth 100 points. The following commands are available to you.
Chapter 8: More on the Repetition Structure
Completing the Problem-Solving Process
Chapter 2: Input, Processing, and Output
Chapter 2 Assignment and Interactive Input
Chapter 1. Introduction to Computers and Programming
The Selection Structure
1.
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
An Introduction to Programming with C++ Fifth Edition
CIS 115Competitive Success/tutorialrank.com
CIS 115 Education for Service-- tutorialrank.com.
Review for Midterm Exam
Chapter 2- Visual Basic Schneider
Chapter 8: More on the Repetition Structure
Problem Solving.
Review for Midterm Exam
CS150 Introduction to Computer Science 1
Let’s all Repeat Together
Review for Final Exam.
An Introduction to Programming with C++ Fifth Edition
Chapter 2: Input, Processing, and Output
Presentation transcript:

Exam 1 Review

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

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

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

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

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.

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

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;