Marking rubric for Assignment #2

Size: px
Start display at page:

Download "Marking rubric for Assignment #2"

Transcription

1 Marking rubric for Assignment #2 The TAs marked the following sections: Yu: Section A Questions -4, Section B Questions -3 Megan: Section B Questions 4-5 Assignment #2 Marking Rubric: A. WriteUp Please mark all 4 questions as follows:. Marks - One mark for each expression (.5 mark for correct operator precedence labeled,.5 mark for correct evaluation value) Marks - One mark each for getting ranges (a)-(c) correct, and two marks for (d) 3. 5 Marks 5 marks for a correct for loop which prints the odd numbers, - if they did not increment the for loop counter by 2 within the for statement 4. 5 Marks 5 marks for a correct do loop that prints the same set of numbers as the provided while loop B. Programming Questions All Prompts and Output text should match exactly as shown in the example test run. If they do not exactly match, deduct 2 marks. Comments are worth 2% of each question (% for clear class and method comments, % for being Javadoc compliant) Failure to submit a file, or submitting a file that does not compile in CSIL results in zero for that question.. RandomAvg Marks 2 Marks Input Validation loop re-prompts if non-int value specified 2 Marks Average correctly computed as float Mark Average formatted to 3 decimals places Mark Largest number correctly calculated Mark - Smallest number correctly calculated 3.4 Bob

2 The following inputs should be accepted and produces valid output: 2. AvgNums Marks 2 Marks Input Validation loop re-prompts if non-int values specified Mark Correctly accepts to input integers Mark Correctly rejects more than input numbers or inputs with strings or floats 2 Marks Average correctly computed as float Mark Average formatted to 3 decimals places 3.4 Bob 5 bob seven The following inputs should be accepted and produces valid output: Distance Marks 2 Marks Input Validation loop re-prompts if non-int values specified Mark Correctly accepts exactly 4 input integers including negative numbers Mark Correctly rejects anything other than 4 input ints 2 Marks Distance correctly computed as float Mark Distance formatted to 3 decimals places Bob

3 The following inputs should be accepted and produces valid output: MoneyChanger 5 Marks Mark Input Validation loop re-prompts if non-float value specified Mark - Entering a String causes the user to be re-prompted Mark Correctly accepts both integer and decimal numbers with one or two decimals Mark Correctly rejects floats with more than 2 decimal places Mark Correctly rejects negative numbers 5 Marks Correctly calculates the number of each bill or coin 2 Marks Correctly outputs the singular or plural of each bill or coin as appropriate Mark - Class and Methods well commented 2 Marks - Class and Method comments Javadoc compliant - Mark For each missing monetary denomination (besides missing denominations) $57.63 Money The following inputs should be accepted and produces valid output: MoneyCounter 3 Marks 5 Marks Passes Testcase 5 Marks Passes Testcase 2 4 Marks Passes Testcase 3 and 4 Mark - Defines enum CurrencyAmt 5 Marks Well structured code with at least private method 2 Marks Correctly parses all bill and coin names both plural and single 2 Marks Correct ignores any lines which are not in the correct format 4 Marks - Class and Methods well commented 2 Marks - Class and Method comments Javadoc compliant - Mark For each missing monetary denomination (besides missing denominations) +5 Bonus Marks Passes Testcase 5

4 The following test cases should be accepted and produce valid output: Testcase : Sample output from MoneyChanger as input, Correct Answer: $57.63 Enter monetary amount: $57.63 "$57.63" is not a double. Please enter a monetary amount as a double: That's equivalent to: 2 twenty dollar bills ten dollar bill five dollar bill toony loonies 2 quarters dime nickels 3 pennies Testcase 2: Example Test Run from Assignment, Correct Answer: $7.28 ten dollar bill But wait, I have more ten dollar bills coming! 5 ten dollar bills quarter ten dollar bills 3 pennies Testcase 3: Example Test Run from Assignment, Correct Answer: $2.34 From Linux, pipe the output of MoneyChanger directly into MoneyCounter and enter an amount (in the example below, I entered 2.34 into MoneyChanger, which generated output which was piped into MoneyCounter as input. MoneyCounter should report the same amount. java MoneyChanger java MoneyCounter $ java MoneyChanger java MoneyCounter 2.34 Your total amount of cash is: $2.34 Testcase 4: Repeat Testcase 3 but Enter the value when prompted $ java MoneyChanger java MoneyCounter Your total amount of cash is: $. Testcase 5: Successfully handles EOF to terminate

5 Scott This testcase uses the output from MoneyCounter (with input 38.4) which is redirected to a file called mc38.4 which has the last line with the number of pennies deleted. This tests if the student s program successfully checks for end-of-file as well as for Penny at the end. $ java MoneyCounter <mc38.4 Your total amount of cash is: $38.4

Instructions PLEASE READ (notice bold and underlined phrases)

Instructions PLEASE READ (notice bold and underlined phrases) Assignment 2 Writing Basic Java Programs Required Reading Java Foundations Chapter 2 Data and Expressions Chapter 3 Sections 3.1-3.2, 3.4-3.7 Chapter 4 Sections 4.2-4.5, 4.7-4.8 Instructions PLEASE READ

More information

CS 2316 Individual Homework 1 Python Practice Due: Wednesday, August 28th, before 11:55 PM Out of 100 points

CS 2316 Individual Homework 1 Python Practice Due: Wednesday, August 28th, before 11:55 PM Out of 100 points CS 2316 Individual Homework 1 Python Practice Due: Wednesday, August 28th, before 11:55 PM Out of 100 points Files to submit: 1. HW1.py For Help: - TA Helpdesk Schedule posted on class website. - Email

More information

Prerequisites: Read all chapters through Chapter 4 in the textbook before attempting this lab. Read through this entire assignment before you begin.

Prerequisites: Read all chapters through Chapter 4 in the textbook before attempting this lab. Read through this entire assignment before you begin. Assignment Number 5 Lab Assignment Due Date: Wednesday, October 3, 2018 LAB QUESTIONS Due Date: Email before Monday, October 8, 2018 before 5:00 PM CS 1057 C Programming - Fall 2018 Purpose: write a complete

More information

Lab 7: Change Calculation Engine

Lab 7: Change Calculation Engine Lab 7: Change Calculation Engine Summary: Practice assembly language programming by creating and testing a useful cash register change calculation program that will display results on an LCD display. Learning

More information

SELECTION IDIOMS. Here is a summary of appropriate selection idioms: Selection Idioms. Action Condition Construct to Use. Sequential if statements

SELECTION IDIOMS. Here is a summary of appropriate selection idioms: Selection Idioms. Action Condition Construct to Use. Sequential if statements SELECTION IDIOMS The programming idioms for selection statements depend on the concept of mutual exclusion. Two truth values are mutually exclusive if no more than one of them can be true. Two actions

More information

Gateway Regional School District VERTICAL ARTICULATION OF MATHEMATICS STANDARDS Grades K-4

Gateway Regional School District VERTICAL ARTICULATION OF MATHEMATICS STANDARDS Grades K-4 NUMBER SENSE & OPERATIONS K.N.1 Count by ones to at least 20. When you count, the last number word you say tells the number of items in the set. Counting a set of objects in a different order does not

More information

TY1 / TY+ Guide. On/ Off $ Menu Enter. PIN # - The PIN number is needed for calibrations and programming.

TY1 / TY+ Guide. On/ Off $ Menu Enter. PIN # - The PIN number is needed for calibrations and programming. TY1 / TY+ Guide PIN # - The PIN number is needed for calibrations and programming. On/ Off $ Menu Enter 1 First press and release the on.off button (one star on the screen). 2 Then press and release the

More information

int x = 5; double y = 3; // Integer division rounds the result down to the nearest whole number. cout << "1a: " << x / 3 << endl; //1

int x = 5; double y = 3; // Integer division rounds the result down to the nearest whole number. cout << 1a:  << x / 3 << endl; //1 PART 1 - From Professor Kent Chin - div_casting.cpp /* Literals are FIXED values (e.g. 0, 5, -2, 3.14) Whole-number literals (e.g. 0, 1, -3) are integer types Literals with decimal points (e.g. 3.14, 2.718)

More information

Full file at

Full file at Java Programming: From Problem Analysis to Program Design, 3 rd Edition 2-1 Chapter 2 Basic Elements of Java At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class

More information

pset1: C Tommy MacWilliam Grading Getting Started pset1: C Style Pennies Greedy Chart September 11, 2011

pset1: C Tommy MacWilliam Grading Getting Started pset1: C Style Pennies Greedy Chart September 11, 2011 tmacwilliam@cs50.net September 11, 2011 Today s Music 3OH!3 Deja Vu Hey See you Go Streets of Gold Axes scope: does it have everything? correctness: does it work? design: how efficiently does it work,

More information

CSE331 Winter 2014, Midterm Examination February 12, 2014

CSE331 Winter 2014, Midterm Examination February 12, 2014 CSE331 Winter 2014, Midterm Examination February 12, 2014 Please do not turn the page until 10:30. Rules: The exam is closed-book, closed-note, etc. Please stop promptly at 11:20. There are 100 points

More information

CSE331 Winter 2014, Midterm Examination February 12, 2014

CSE331 Winter 2014, Midterm Examination February 12, 2014 CSE331 Winter 2014, Midterm Examination February 12, 2014 Please do not turn the page until 10:30. Rules: The exam is closed-book, closed-note, etc. Please stop promptly at 11:20. There are 100 points

More information

Lesson 5: Introduction to the Java Basics: Java Arithmetic THEORY. Arithmetic Operators

Lesson 5: Introduction to the Java Basics: Java Arithmetic THEORY. Arithmetic Operators Lesson 5: Introduction to the Java Basics: Java Arithmetic THEORY Arithmetic Operators There are four basic arithmetic operations: OPERATOR USE DESCRIPTION + op1 + op2 Adds op1 and op2 - op1 + op2 Subtracts

More information

Chapter 2. Elementary Programming

Chapter 2. Elementary Programming Chapter 2 Elementary Programming 1 Objectives To write Java programs to perform simple calculations To obtain input from the console using the Scanner class To use identifiers to name variables, constants,

More information

Lab: PiggyBank. Defining objects & classes

Lab: PiggyBank. Defining objects & classes Lab: PiggyBank Defining objects & classes Review: Basic class structure public class ClassName { Fields Constructors Methods } Three major components of a class: Fields store data for the object to use

More information

1 Short Answer (5 Points Each)

1 Short Answer (5 Points Each) COSC 117 Exam #1 Solutions Fall 015 1 Short Answer (5 Points Each) 1. What is the difference between a compiler and an interpreter? Also, discuss Java s method. A compiler will take a program written in

More information

Project 1: How to Make One Dollar

Project 1: How to Make One Dollar Project Objective: Project 1: How to Make One Dollar Posted: Wednesday February 16, 2005. Described: Thursday February 17, 2005. Due: 11:59PM, Sunday March 6, 2005. 1. get familiar with the process of

More information

KNOWLEDGE OF NUMBER SENSE, CONCEPTS, AND OPERATIONS

KNOWLEDGE OF NUMBER SENSE, CONCEPTS, AND OPERATIONS DOMAIN I. COMPETENCY 1.0 MATHEMATICS KNOWLEDGE OF NUMBER SENSE, CONCEPTS, AND OPERATIONS Skill 1.1 Compare the relative value of real numbers (e.g., integers, fractions, decimals, percents, irrational

More information

Lesson 13: Converting Between Fractions and Decimals Using Equivalent Fractions

Lesson 13: Converting Between Fractions and Decimals Using Equivalent Fractions Lesson 13: Converting Between and Decimals Using Equivalent Student Outcomes Students understand that the context of a real-life situation often determines whether a rational number should be represented

More information

Understanding Addition and Subtraction Strategies Unit

Understanding Addition and Subtraction Strategies Unit Understanding Addition and Subtraction Strategies Unit PA EC: M3.D.1.1.1 E: Extend or find a missing element in a pattern of numbers. *Pattern must show 3 repetitions *When multiples are used limit to

More information

ASSIGNMENT 1. COMP-202, Fall 2015, All Sections. Due: October 5 th, 2015 (23:59)

ASSIGNMENT 1. COMP-202, Fall 2015, All Sections. Due: October 5 th, 2015 (23:59) ASSIGNMENT 1 COMP-202, Fall 2015, All Sections Due: October 5 th, 2015 (23:59) Please read the entire pdf before starting. You must do this assignment individually and, unless otherwise specified, you

More information

2 nd Grade Math Learning Targets. Algebra:

2 nd Grade Math Learning Targets. Algebra: 2 nd Grade Math Learning Targets Algebra: 2.A.2.1 Students are able to use concepts of equal to, greater than, and less than to compare numbers (0-100). - I can explain what equal to means. (2.A.2.1) I

More information

3rd Grade Mathematics

3rd Grade Mathematics 3rd Grade Mathematics 2012-2013 MONTH CONTENT/ THEME CORE GOALS/SKILLS WRITTEN ASSESSMENT TEN MINUTE MATH VOCABULARY September 17 days Trading Stickers, Combining Coins Unit 1 *NOT CC NUMBERS AND Addition,

More information

1.OA.6 I can fluently add and subtract within NBT.1 I can read, write and sequence numerals NBT.6

1.OA.6 I can fluently add and subtract within NBT.1 I can read, write and sequence numerals NBT.6 Updated for -2013 Interim 1 Timeline: Aug. 3-17 CMA: none because review 1.OA.6 I can fluently add and subtract within 10. 1.NBT.1 I can read, write and sequence numerals 0-120. 1.OA.5 I can relate addition

More information

Anadarko Public Schools MATH Power Standards

Anadarko Public Schools MATH Power Standards Anadarko Public Schools MATH Power Standards Kindergarten 1. Say the number name sequence forward and backward beginning from a given number within the known sequence (counting on, spiral) 2. Write numbers

More information

Dublin Unified School District Suggested Pacing Guide for Grade 2 Text: Scott Foresman-Addison Wesley envision Math

Dublin Unified School District Suggested Pacing Guide for Grade 2 Text: Scott Foresman-Addison Wesley envision Math Trimester 1 8 Topic 1: Understanding Addition and Subtraction 1 1-1: s: Writing Addition Sentences, 1 1-2: s: Stories About Joining AF 1.0,, 1 1-3: s: Writing Subtraction Sentences, 1 1-4: s: Stories About

More information

Gateway Regional School District VERTICAL ALIGNMENT OF MATHEMATICS STANDARDS Grades 3-6

Gateway Regional School District VERTICAL ALIGNMENT OF MATHEMATICS STANDARDS Grades 3-6 NUMBER SENSE & OPERATIONS 3.N.1 Exhibit an understanding of the values of the digits in the base ten number system by reading, modeling, writing, comparing, and ordering whole numbers through 9,999. Our

More information

Math Vocabulary Grades PK - 5

Math Vocabulary Grades PK - 5 Math Vocabulary ades P - 5 P 1 2 3 4 5 < Symbol used to compare two numbers with the lesser number given first > Symbol used to compare two numbers with the greater number given first a. m. The time between

More information

PROGRESSION IS HIGHLIGHTED IN THE FOLLOWING DOCUMENT VIA BOLDED TEXT. MATHEMATICAL PROCESSES

PROGRESSION IS HIGHLIGHTED IN THE FOLLOWING DOCUMENT VIA BOLDED TEXT. MATHEMATICAL PROCESSES Alberta's Program of Studies (Curriculum) - Mathematics - Number (Strand with Achievement Outcomes) Note: These strands are not intended to be discrete units of instruction. The integration of outcomes

More information

Use the scantron sheet to enter the answer to questions (pages 1-6)

Use the scantron sheet to enter the answer to questions (pages 1-6) Use the scantron sheet to enter the answer to questions 1-100 (pages 1-6) Part I. Mark A for True, B for false. (1 point each) 1. Abstraction allow us to specify an object regardless of how the object

More information

Lab 6B Coin Collection

Lab 6B Coin Collection HNHS Computer Programming I / IPFW CS 11400 Bower - Page 1 Lab 6B Coin Collection You will create a program that allows users to enter the quantities of an assortment of coins (quarters, dimes, nickels,

More information

Test 1. CSC 121 Lecture Lecturer: Howard Rosenthal. March 4, 2014

Test 1. CSC 121 Lecture Lecturer: Howard Rosenthal. March 4, 2014 1 Test 1. CSC 121 Lecture 21199 Lecturer: Howard Rosenthal March 4, 2014 Your Name: KEY The following questions (or parts of questions) in numbers 1-16 are all worth 2 points each. 1. Fill in the following

More information

Chapter 7 Arithmetic

Chapter 7 Arithmetic Chapter 7 Arithmetic 7-1 Arithmetic in C++ Arithmetic expressions are made up of constants, variables, operators and parentheses. The arithmetic operators in C++ are as follows + (addition) - (subtraction)

More information

Welcome to the Primitives and Expressions Lab!

Welcome to the Primitives and Expressions Lab! Welcome to the Primitives and Expressions Lab! Learning Outcomes By the end of this lab: 1. Be able to define chapter 2 terms. 2. Describe declarations, variables, literals and constants for primitive

More information

Math in Focus Vocabulary. Kindergarten

Math in Focus Vocabulary. Kindergarten Math in Focus Vocabulary Kindergarten Chapter Word Definition 1 one 1 * 1 two 2 * * 1 three 3 * * * 1 four 4 * * * * 1 five 5 * * * * * 1 same things that have a common property 1 different things that

More information

CMPT 120 Control Structures in Python. Summer 2012 Instructor: Hassan Khosravi

CMPT 120 Control Structures in Python. Summer 2012 Instructor: Hassan Khosravi CMPT 120 Control Structures in Python Summer 2012 Instructor: Hassan Khosravi The If statement The most common way to make decisions in Python is by using the if statement. The if statement allows you

More information

Slide 1 CS 170 Java Programming 1 Real Numbers Duration: 00:00:54 Advance mode: Auto

Slide 1 CS 170 Java Programming 1 Real Numbers Duration: 00:00:54 Advance mode: Auto CS 170 Java Programming 1 Real Numbers Understanding Java's Floating Point Primitive Types Slide 1 CS 170 Java Programming 1 Real Numbers Duration: 00:00:54 Floating-point types Can hold a fractional amount

More information

2009 Fall Startup Event Thursday, September 24th, 2009

2009 Fall Startup Event Thursday, September 24th, 2009 009 Fall Startup Event This test consists of 00 problems to be solved in 0 minutes. All answers must be exact, complete, and in simplest form. To ensure consistent grading, if you get a decimal, mixed

More information

CEN 414 Java Programming

CEN 414 Java Programming CEN 414 Java Programming Instructor: H. Esin ÜNAL SPRING 2017 Slides are modified from original slides of Y. Daniel Liang WEEK 2 ELEMENTARY PROGRAMMING 2 Computing the Area of a Circle public class ComputeArea

More information

Lesson 02 Data Types and Statements. MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL

Lesson 02 Data Types and Statements. MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL Lesson 02 Data Types and Statements MIT 12043, Fundamentals of Programming By: S. Sabraz Nawaz Senior Lecturer in MIT Department of MIT FMC, SEUSL Topics Covered Statements Variables Constants Data Types

More information

Chapter 2: Overview of C++

Chapter 2: Overview of C++ Chapter 2: Overview of C++ Problem Solving, Abstraction, and Design using C++ 6e by Frank L. Friedman and Elliot B. Koffman C++ Background Introduced by Bjarne Stroustrup of AT&T s Bell Laboratories in

More information

CpSc 1111 Lab 9 2-D Arrays

CpSc 1111 Lab 9 2-D Arrays CpSc 1111 Lab 9 2-D Arrays Overview This week, you will gain some experience with 2-dimensional arrays, using loops to do the following: initialize a 2-D array with data from an input file print out the

More information

DS: CS Computer Sc & Engg: IIT Kharagpur 1. roblem Set III. Goutam Biswas

DS: CS Computer Sc & Engg: IIT Kharagpur 1. roblem Set III. Goutam Biswas DS: CS 11002 Computer Sc & Engg: IIT Kharagpur 1 P DS: CS 11002 Computer Sc & Engg: IIT Kharagpur 2 Problem 1 Write a C function to find n!, where n is the parameter. Try with different types of loops.

More information

Mississippi College and Career Readiness Standards for Mathematics Scaffolding Document. Grade 2

Mississippi College and Career Readiness Standards for Mathematics Scaffolding Document. Grade 2 Mississippi College and Career Readiness Standards for Mathematics Scaffolding Document Grade 2 Operations and Algebraic Thinking Represent and solve problems involving addition and subtraction 2.OA.1

More information

ICS3U0 - ONGOING REVIEW PRACTICE PROBLEMS

ICS3U0 - ONGOING REVIEW PRACTICE PROBLEMS ICS3U0 - ONGOING REVIEW PRACTICE PROBLEMS ICS3U0 - ONGOING REVIEW PRACTICE PROBLEMS... 1 IMPORTANT POINTS TO CONSIDER... 2 WHAT YOU NEED TO UNDERSTAND TO SOLVE ALL THE PROBLEMS... 2 PP1 - ASTRONOMICAL

More information

Sample input: Resultant output: Group: Sum is 129

Sample input: Resultant output: Group: Sum is 129 Problem 1: Sums of Groups Develop a program that, given as input a sequence of integers whose members are to be interpreted as groups separated by occurrences of zero, prints the members of each group

More information

CSE 303 Lecture 8. Intro to C programming

CSE 303 Lecture 8. Intro to C programming CSE 303 Lecture 8 Intro to C programming read C Reference Manual pp. Ch. 1, 2.2-2.4, 2.6, 3.1, 5.1, 7.1-7.2, 7.5.1-7.5.4, 7.6-7.9, Ch. 8; Programming in C Ch. 1-6 slides created by Marty Stepp http://www.cs.washington.edu/303/

More information

Cmpt 135 Assignment 2: Solutions and Marking Rubric Feb 22 nd 2016 Due: Mar 4th 11:59pm

Cmpt 135 Assignment 2: Solutions and Marking Rubric Feb 22 nd 2016 Due: Mar 4th 11:59pm Assignment 2 Solutions This document contains solutions to assignment 2. It is also the Marking Rubric for Assignment 2 used by the TA as a guideline. The TA also uses his own judgment and discretion during

More information

Adding and Subtracting Integers

Adding and Subtracting Integers Quarterly 1 Review Sheet (NOTE: This may not include everything you need to know for tomorrow about every topic. It is student created and I am just sharing it in case you find it helpful) Page 1: Adding

More information

Primitive Data, Variables, and Expressions; Simple Conditional Execution

Primitive Data, Variables, and Expressions; Simple Conditional Execution Unit 2, Part 1 Primitive Data, Variables, and Expressions; Simple Conditional Execution Computer Science S-111 Harvard University David G. Sullivan, Ph.D. Overview of the Programming Process Analysis/Specification

More information

Real Numbers finite subset real numbers floating point numbers Scientific Notation fixed point numbers

Real Numbers finite subset real numbers floating point numbers Scientific Notation fixed point numbers Real Numbers We have been studying integer arithmetic up to this point. We have discovered that a standard computer can represent a finite subset of the infinite set of integers. The range is determined

More information

CS31: Introduction to Computer Science I Spring 2011

CS31: Introduction to Computer Science I Spring 2011 Final Practice TA: Brian Choi (schoi@cs.ucla.edu) Section Webpage: http://www.cs.ucla.edu/~schoi/cs31 1. Assume the following variable declarations: int foo = 0; int *ptr = &foo; Which of the following

More information

EX2000 Series Vending System. User s Manual. Choose ACDI for all your document vending needs User s Manual

EX2000 Series Vending System. User s Manual. Choose ACDI for all your document vending needs User s Manual EX2000 Series Vending System User s Manual Choose ACDI for all your document vending needs User s Manual INTRODUCTION... 1 OVERVIEW... 1 Staff Copies... 1 SETUP... 2 UNPACKING THE VENDING SYSTEM... 2

More information

Unit Maps: Kindergarten Math

Unit Maps: Kindergarten Math Representation and Comparison of Whole Numbers K.3 Place value. The student represents and compares whole numbers, the relative position and magnitude of whole numbers, and relationships within the numeration

More information

EX2000 Series Vending System. User s Manual. Choose ACDI for all your document vending needs User s Manual

EX2000 Series Vending System. User s Manual. Choose ACDI for all your document vending needs User s Manual EX2000 Series Vending System User s Manual Choose ACDI for all your document vending needs User s Manual INTRODUCTION... 1 OVERVIEW... 1 Staff Copies... 1 SETUP... 2 UNPACKING THE VENDING SYSTEM... 2

More information

Add and subtract within 20.

Add and subtract within 20. Represent and solve problems involving addition and subtraction. 2.OA.1. Use addition and subtraction within 100 to solve one- and twostep word problems involving situations of adding to, taking from,

More information

CS101 Lecture 04: Binary Arithmetic

CS101 Lecture 04: Binary Arithmetic CS101 Lecture 04: Binary Arithmetic Binary Number Addition Two s complement encoding Briefly: real number representation Aaron Stevens (azs@bu.edu) 25 January 2013 What You ll Learn Today Counting in binary

More information

COSC The if Statement. Yves Lespérance. Lecture Notes Week 5 Control Structures

COSC The if Statement. Yves Lespérance. Lecture Notes Week 5 Control Structures COSC 1020 Yves Lespérance Lecture Notes Week 5 Control Structures Recommended Readings: Horstmann: Ch. 5 and 6 Lewis & Loftus: Ch. 3 The if Statement The if statement is used to select which is to be performed

More information

Chapter 3 Problem Solving and the Computer

Chapter 3 Problem Solving and the Computer Chapter 3 Problem Solving and the Computer An algorithm is a step-by-step operations that the CPU must execute in order to solve a problem, or to perform that task. A program is the specification of an

More information

CSC172 LAB 22 CHANGE IS GOOD

CSC172 LAB 22 CHANGE IS GOOD LAB 22 CSC172 LAB 22 CHANGE IS GOOD 1 Introduction The labs in CSC172 will follow a pair programming paradigm. This requires every student to have a lab partner. Labs will typically have an even number

More information

JAVA Programming Concepts

JAVA Programming Concepts JAVA Programming Concepts M. G. Abbas Malik Assistant Professor Faculty of Computing and Information Technology University of Jeddah, Jeddah, KSA mgmalik@uj.edu.sa Programming is the art of Problem Solving

More information

Answer Key a reference section in the back of the Student Reference Book (SRB) that gives answers to sample problems

Answer Key a reference section in the back of the Student Reference Book (SRB) that gives answers to sample problems Answer Key a reference section in the back of the Student Reference Book (SRB) that gives answers to sample problems Arrow Rule an operation that determines the number that goes into the next frame in

More information

Security Coding Module Integer Error You Can t Count That High CS1

Security Coding Module Integer Error You Can t Count That High CS1 Security Coding Module Integer Error You Can t Count That High CS1 Summary: Integer values that are too large or too small may fall outside the allowable range for their data type, leading to undefined

More information

Lab 2: Structured Program Development in C

Lab 2: Structured Program Development in C Lab 2: Structured Program Development in C (Part A: Your first C programs - integers, arithmetic, decision making, Part B: basic problem-solving techniques, formulating algorithms) Learning Objectives

More information

Math 7 Notes Unit Three: Applying Rational Numbers

Math 7 Notes Unit Three: Applying Rational Numbers Math 7 Notes Unit Three: Applying Rational Numbers Strategy note to teachers: Typically students need more practice doing computations with fractions. You may want to consider teaching the sections on

More information

Tutorial 03. Exercise 1: CSC111 Computer Programming I

Tutorial 03. Exercise 1: CSC111 Computer Programming I College of Computer and Information Sciences CSC111 Computer Programming I Exercise 1: Tutorial 03 Input & Output Operators Expressions A. Show the result of the following code: 1.System.out.println(2

More information

Real Numbers finite subset real numbers floating point numbers Scientific Notation fixed point numbers

Real Numbers finite subset real numbers floating point numbers Scientific Notation fixed point numbers Real Numbers We have been studying integer arithmetic up to this point. We have discovered that a standard computer can represent a finite subset of the infinite set of integers. The range is determined

More information

California Common Core State Standards Comparison - FIRST GRADE

California Common Core State Standards Comparison - FIRST GRADE 1. Make sense of problems and persevere in solving them. 2. Reason abstractly and quantitatively. 3. Construct viable arguments and critique the reasoning of others 4. Model with mathematics. Standards

More information

Visual C# Instructor s Manual Table of Contents

Visual C# Instructor s Manual Table of Contents Visual C# 2005 2-1 Chapter 2 Using Data At a Glance Instructor s Manual Table of Contents Overview Objectives s Quick Quizzes Class Discussion Topics Additional Projects Additional Resources Key Terms

More information

CS 112: Intro to Comp Prog

CS 112: Intro to Comp Prog CS 112: Intro to Comp Prog Lecture Review Data Types String Operations Arithmetic Operators Variables In-Class Exercises Lab Assignment #2 Upcoming Lecture Topics Variables * Types Functions Purpose Parameters

More information

K.CC.3 Write numbers from 1 to 20. Represent a number of objects with a written numeral (1-20). Write numbers to 20.

K.CC.3 Write numbers from 1 to 20. Represent a number of objects with a written numeral (1-20). Write numbers to 20. COUNTING & CARDINALITY NAME: K.CC.1 Count to 100 by ones and by tens. See individual assessment. K.CC.2 Count forward beginning from a given number within the known sequence. See individual assessment.

More information

2.N.2.1 Use the relationship between addition and subtraction to generate basic facts up to 20.

2.N.2.1 Use the relationship between addition and subtraction to generate basic facts up to 20. 1-6 2.A.1.1 Represent, create, describe, complete, and extend growing and shrinking patterns with quantity and numbers in a variety of real-world and mathematical contexts. 2.N.2.1 Use the relationship

More information

Chapter 2 Elementary Programming. Liang, Introduction to Java Programming, Tenth Edition, (c) 2015 Pearson Education, Inc. All rights reserved.

Chapter 2 Elementary Programming. Liang, Introduction to Java Programming, Tenth Edition, (c) 2015 Pearson Education, Inc. All rights reserved. Chapter 2 Elementary Programming 1 Motivations In the preceding chapter, you learned how to create, compile, and run a Java program. Starting from this chapter, you will learn how to solve practical problems

More information

CS31: Introduction to Computer Science I Winter 2014

CS31: Introduction to Computer Science I Winter 2014 Final Practice TA: Zhou Ren 1. Assume the following variable declarations: int foo = 0; int *ptr = &foo; Which of the following statements will change the value of foo to 1? (a) ptr++; (b) foo++; (c) (*foo)++;

More information

Conditionals. For exercises 1 to 27, indicate the output that will be produced. Assume the following declarations:

Conditionals. For exercises 1 to 27, indicate the output that will be produced. Assume the following declarations: Conditionals For exercises 1 to 27, indicate the output that will be produced. Assume the following declarations: final int MAX = 25, LIMIT = 100; int num1 = 12, num2 = 25, num3 = 87; 1. if (num1 < MAX)

More information

Lecture 2. Examples of Software. Programming and Data Structure. Programming Languages. Operating Systems. Sudeshna Sarkar

Lecture 2. Examples of Software. Programming and Data Structure. Programming Languages. Operating Systems. Sudeshna Sarkar Examples of Software Programming and Data Structure Lecture 2 Sudeshna Sarkar Read an integer and determine if it is a prime number. A Palindrome recognizer Read in airline route information as a matrix

More information

Grade 2 Yearlong Mathematics Map

Grade 2 Yearlong Mathematics Map Grade 2 Yearlong Mathematics Map Resources: Approved from Board of Education Assessments: Performance Series, District Benchmark Assessments Common Core State Standards Standards for Mathematical Practice:

More information

CpSc 1011 Lab 5 Conditional Statements, Loops, ASCII code, and Redirecting Input Characters and Hurricanes

CpSc 1011 Lab 5 Conditional Statements, Loops, ASCII code, and Redirecting Input Characters and Hurricanes CpSc 1011 Lab 5 Conditional Statements, Loops, ASCII code, and Redirecting Input Characters and Hurricanes Overview For this lab, you will use: one or more of the conditional statements explained below

More information

Simpson Elementary School Curriculum Prioritization and Mapping 2nd Grade Math - Revised 6/2014

Simpson Elementary School Curriculum Prioritization and Mapping 2nd Grade Math - Revised 6/2014 Simpson lementary School Curriculum Prioritization and Mapping Timeline Topic Priority Standard Learning Targets On-Going 2.OA.2 - Fluently add and subtract within 20 using mental strategies by end of

More information

Midterm No. 2 for V XXX Sample for Practice Only

Midterm No. 2 for V XXX Sample for Practice Only Midterm No. 2 for V22.0002.XXX Sample for Practice Only Warning: This is a long practice test. I will make an effort to keep the problems short enough to finish within the time limit of the real test.

More information

DECIMALS are special fractions whose denominators are powers of 10.

DECIMALS are special fractions whose denominators are powers of 10. Ch 3 DECIMALS ~ Notes DECIMALS are special fractions whose denominators are powers of 10. Since decimals are special fractions, then all the rules we have already learned for fractions should work for

More information

CS102: Standard I/O. %<flag(s)><width><precision><size>conversion-code

CS102: Standard I/O. %<flag(s)><width><precision><size>conversion-code CS102: Standard I/O Our next topic is standard input and standard output in C. The adjective "standard" when applied to "input" or "output" could be interpreted to mean "default". Typically, standard output

More information

C/C++ Programming for Engineers: Working with Integer Variables

C/C++ Programming for Engineers: Working with Integer Variables C/C++ Programming for Engineers: Working with Integer Variables John T. Bell Department of Computer Science University of Illinois, Chicago Preview Every good program should begin with a large comment

More information

Occupied versus Unoccupied

Occupied versus Unoccupied A1 Problem Statement Occupied versus Unoccupied Most houses have an electricity meter that records the amount of electricity that has been used since the meter was installed. This is typically recorded

More information

Motivations. Chapter 2: Elementary Programming 8/24/18. Introducing Programming with an Example. Trace a Program Execution. Trace a Program Execution

Motivations. Chapter 2: Elementary Programming 8/24/18. Introducing Programming with an Example. Trace a Program Execution. Trace a Program Execution Chapter 2: Elementary Programming CS1: Java Programming Colorado State University Original slides by Daniel Liang Modified slides by Chris Wilcox Motivations In the preceding chapter, you learned how to

More information

Course Outlines. Elementary Mathematics (Grades K-5) Kids and Numbers (Recommended for K-1 students)

Course Outlines. Elementary Mathematics (Grades K-5) Kids and Numbers (Recommended for K-1 students) Course Outlines Elementary Mathematics (Grades K-5) Kids and Numbers (Recommended for K-1 students) Shapes and Patterns. Grouping objects by similar properties. Identifying simple figures within a complex

More information

Fundamentals of Programming Session 7

Fundamentals of Programming Session 7 Fundamentals of Programming Session 7 Instructor: Reza Entezari-Maleki Email: entezari@ce.sharif.edu 1 Fall 2014 These slides have been created using Deitel s slides Sharif University of Technology Outlines

More information

2-dimensional figure. 3-dimensional figure. about. acute angle. addend. addition. angle. area. array. bar graph. capacity

2-dimensional figure. 3-dimensional figure. about. acute angle. addend. addition. angle. area. array. bar graph. capacity 2-dimensional figure a plane figure that has length and width 3-dimensional figure a solid figure that has length, width, and height about used to indicate approximation/ estimation; indicates rounding

More information

In Fig. 3.5 and Fig. 3.7, we include some completely blank lines in the pseudocode for readability. programs into their various phases.

In Fig. 3.5 and Fig. 3.7, we include some completely blank lines in the pseudocode for readability. programs into their various phases. Formulating Algorithms with Top-Down, Stepwise Refinement Case Study 2: Sentinel-Controlled Repetition In Fig. 3.5 and Fig. 3.7, we include some completely blank lines in the pseudocode for readability.

More information

Mathematics Curriculum Elaborations K 5. Developed by Janice Novakowski, Jennifer Barker and Sandra Ball. June 2015

Mathematics Curriculum Elaborations K 5. Developed by Janice Novakowski, Jennifer Barker and Sandra Ball. June 2015 Mathematics Curriculum Elaborations K 5 Developed by Janice Novakowski, Jennifer Barker and Sandra Ball June 2015 Kindergarten number concepts to 10 one- to- one correspondence conservation cardinality

More information

Virginia Grade Level Alternative Worksheet

Virginia Grade Level Alternative Worksheet Grade 3 Mathematics Student's Name: Check all that apply: Assigned scores have been entered into the online VGLA System. State Testing Identifier: Assigned scores have been verified and submitted for final

More information

MACS 261J Final Exam. Question: Total Points: Score:

MACS 261J Final Exam. Question: Total Points: Score: MACS 261J Final Exam May 5, 2008 Name: Question: 1 2 3 4 5 6 7 8 9 Total Points: 15 10 15 5 10 5 20 8 12 100 Score: Question 1............................................................. (15 points) (a)

More information

Counting and Cardinality (CC) K 2 Know number names and the count sequence.

Counting and Cardinality (CC) K 2 Know number names and the count sequence. Counting and Cardinality (CC) K 2 Know number names and the count sequence. K.1 Count to 100 by ones and by tens. Essence: Counting E1: Count up to 50 by 1s or 10s. E2: Count up to 20 by 1s. E3: Using

More information

King Abdulaziz University Faculty of Computing and Information Technology Computer Science Department

King Abdulaziz University Faculty of Computing and Information Technology Computer Science Department King Abdulaziz University Faculty of Computing and Information Technology Computer Science Department CPCS204, 2 nd Term 2014 Program 5: FCITbook Assigned: Thursday, May 1 st, 2014 Due: Thursday, May 15

More information

PIC 10A. Lecture 3: More About Variables, Arithmetic, Casting, Assignment

PIC 10A. Lecture 3: More About Variables, Arithmetic, Casting, Assignment PIC 10A Lecture 3: More About Variables, Arithmetic, Casting, Assignment Assigning values to variables Our variables last time did not seem very variable. They always had the same value! Variables stores

More information

Homework Set 1- Fundamentals

Homework Set 1- Fundamentals 1 Homework Set 1- Fundamentals Topics if statements with ints if-else statements with Strings if statements with multiple boolean statements for loops and arrays while loops String ".equals()" method "=="

More information

words, and models Assessment limit: Use whole numbers (0-10,000) b. Express whole numbers in expanded form

words, and models Assessment limit: Use whole numbers (0-10,000) b. Express whole numbers in expanded form VSC - Mathematics Print pages on legal paper, landsca Grade PK Grade K Grade 1 Grade 2 Grade 3 Grade 4 Grade 5 Grade 6 Grade 7 Grade Number a. Build concept of number and a. Extend concept of number and

More information

CS5000: Foundations of Programming. Mingon Kang, PhD Computer Science, Kennesaw State University

CS5000: Foundations of Programming. Mingon Kang, PhD Computer Science, Kennesaw State University CS5000: Foundations of Programming Mingon Kang, PhD Computer Science, Kennesaw State University Overview of Source Code Components Comments Library declaration Classes Functions Variables Comments Can

More information

Add Subtract Multiply Divide

Add Subtract Multiply Divide ARITHMETIC OPERATORS if AND if/else AND while LOOP Order of Operation (Precedence Part 1) Copyright 2014 Dan McElroy Add Subtract Multiply Divide + Add - Subtract * Multiply / Divide = gives the quotient

More information

DLM Mathematics Year-End Assessment Model Blueprint for New York State 1

DLM Mathematics Year-End Assessment Model Blueprint for New York State 1 DLM Mathematics Year-End Assessment Model Blueprint for New York State 1 In this document, the blueprint refers to the range of Essential Elements (s) that will be assessed during the spring 2018 assessment

More information