Lab 6B Coin Collection

Size: px
Start display at page:

Download "Lab 6B Coin Collection"

Transcription

1 HNHS Computer Programming I / IPFW CS 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, and pennies) and determine how much cash is in the collection. Users will also discover whether or not they have enough money to purchase a product. In this example, a stuffed panda bear has a purchase price of $ Objectives Implement Functions Use of ToolTip Handle multiple events with one event handler

2 HNHS Computer Programming I / IPFW CS Bower - Page 2 Requirements & Tips Comment your code (including functions)!!! Use text boxes to obtain a name and the amount of quarters, dimes, nickels, and pennies the user has. Determine what item the users will try to buy and what the purchase price will be. You will need two images one for when users can buy the item and another for when users cannot buy the item Place a picture box on the form. Its Image property will eventually equal the image returned by the DeterminePicture() function. Place a label on your form that will display a statement about whether or not the item can be purchased. The text property will eventually equal the String returned by the PurchaseSentence() function. End the program with an EXIT button. When users click the ADD COINS button... o Declare variables to hold the name of the user and the integer quantities of quarters, dimes, nickels, and pennies. o Declare a variable to hold the amount of money in the coin collection it will eventually equal the value returned by the AddTheCoins() function. o Declare a boolean variable to hold whether or not there is enough money to buy the item it will eventually equal the value returned by the IsThereEnoughMoney() function. o Make sure users have entered a name o Make sure users have entered numeric data in the textboxes (probably use Try Catch) and that the values are non-negative o Set your total cash variable equal to the AddTheCoins() function [it returns the cash value of the coin collection o Display the total amount of cash in a label o Set your boolean variable equal to the IsThereEnoughMoney() function [it returns whether or not (true/false) users have enough to purchase the item] o Set the text of your message label equal to the PurchaseSentence() function [it returns a statement about the user s ability to purchase the item] o Set the Image property of your picture box equal to the DeterminePicture() function [it returns an image of the item or something else]

3 HNHS Computer Programming I / IPFW CS Bower - Page 3 You will make an AddTheCoins() function that returns a Double. o It will have four Integer parameters - the number of quarters, the number of dimes, the number of nickels, and the number of pennies. o Remember that nickels have a value of o Calculate how much cash there is and return that amount You will make an IsThereEnoughMoney() function that returns a Boolean o It will have two Double parameters one for the cost of the item and one for the amount of money available to spend on the item o Determine whether or not there is enough money to pay for the item and return true or false You will make a PurchaseSentence() function that returns a String o It will have three parameters a Boolean indicating whether or not there is enough money to make the purchase, a String with the name of the user, and a String with the name of the item. o Create sentences for both situations (user can or can t make the purchase). Return the sentence. You will make a DeterminePicture() function that returns an Image o It will have one parameter a Boolean indicating whether or not there is enough money to make the purchase o Declare an Image variable at the start of the function o Set the variable equal to whatever image is appropriate (My.Resources.PandaBear00, for example) o Return that Image variable. When users click the RESET button... o All textboxes should clear, as well as answer labels and images. o The focus should be assigned to the first textbox. You will have one AnyTextChanged() sub that handles all five TextChanged events for the five text boxes o Answer labels and images should clear Tab order: Use a logical tab order (shouldn t hop all over your form!) Include keyboard access to the four buttons and tool tips for the buttons, textboxes and answer label. AcceptButton is AddCoins button; CancelButton is Exit button

4 HNHS Computer Programming I / IPFW CS Bower - Page 4 Use Tool Tips for the textboxes, buttons, and money answer label Type and modify the following at the top of the code: 'Your Name 'Date 'Assignment Name (Lab 6B Coin Collection, for example) 'Computer Programming I - Bower (or CS Bower if you want IPFW class) 'This program will... (describe the program)

5 HNHS Computer Programming I / IPFW CS Bower - Page 5 Sample Data (remember that the access key underscores only appear when users press ALT)

6 HNHS Computer Programming I / IPFW CS Bower - Page 6

7 HNHS Computer Programming I / IPFW CS Bower - Page 7 Grading Form design/ Naming standards 3 Runs properly 3 Comments/documentation included 3 Add Coins button 1 Reset button 1 Exit/End button 1 AddTheCoins function 3 IsThereEnoughMoney function 3 PurchaseSentence function 3 DeterminePicture function 3 AnyTextChanged sub 1 Accurate results 2 ToolTip 1 Run-time communication with user 2 (includes error messages) TOTAL 30

Project 3 Restaurant or Store

Project 3 Restaurant or Store HNHS Computer Programming I / IPFW CS 11400 Bower - Page 1 Project 3 Restaurant or Store HNHS Computer Programming I / IPFW CS 11400 Bower - Page 2 Description You will create a program that calculates

More information

Music and Videos. with Exception Handling

Music and Videos. with Exception Handling VISUAL BASIC LAB with Exception Handling Copyright 2015 Dan McElroy - Lab Assignment Develop a Visual Basic application program that is used to input the number of music songs and the number of videos

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

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

1 st Grade Mathematics Learning Targets By Unit

1 st Grade Mathematics Learning Targets By Unit INSTRUCTIONAL UNIT UNIT 1: NUMBERS TO 10 UNIT 2: NUMBER BONDS UNIT 3: ADDITION FACTS TO 10 UNIT 4: FACTS TO 10 UNIT 5: SHAPES AND PATTERNS PA CORE STANDARD ADDRESSED CC.2.1.1.B.1 Extend the counting sequence

More information

Grade 1 ISTEP+ T1 #1-4 ISTEP+ T1 #5

Grade 1 ISTEP+ T1 #1-4 ISTEP+ T1 #5 Unit 1 Establishing Routines 1 a D Count by 5's to 40. (Lessons 1.4, 1.7, and 1.11) 1 b D Count by 2's to 40. (Lessons 1.9-1.13) 1 c D Begin ongoing digit-writing practice. (Lessons 1.1-1.6) (Lessons 1.4,

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

1/12/2012. Jim Williams HONP-112 Week 3

1/12/2012. Jim Williams HONP-112 Week 3 Jim Williams HONP-112 Week 3 Set Theory is a practical implementation of Boolean logic that examines the relationships between groups of objects. Set theory has numerous real-life applications in computer

More information

SSL - Testing The Purchase Process. How To Make Test Purchases in Order to Understand the Purchase Process

SSL - Testing The Purchase Process. How To Make Test Purchases in Order to Understand the Purchase Process SSL - Testing The Purchase Process How To Make Test Purchases in Order to Understand the Purchase Process Updated: January 6, 2018 Table of Contents Table of Contents Overview... 1 Setting Up Testing Mode...

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

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

Version: Draft Date: 12/28/ :45:00 AM

Version: Draft Date: 12/28/ :45:00 AM Weavefuture Internet Café, Cyber Café Self Service Payment System Version: Draft Date: 12/28/2006 12:45:00 AM Table of Contents 1 WEAVEFUTURE INTERNET CAFÉ CYBER CAFÉ SELF SERVICE PAYMENT SYSTEM 3 2 WEAVEFUTURE

More information

Unit Maps: Grade 1 Math

Unit Maps: Grade 1 Math Numbers and Place Value 1.3 Place value. The student represents and compares whole numbers, the relative position and magnitude of whole numbers, and relationships within the numeration system related

More information

NO CALCULATOR ON ANYTHING EXCEPT WHERE NOTED

NO CALCULATOR ON ANYTHING EXCEPT WHERE NOTED Algebra II (Wilsen) Midterm Review NO CALCULATOR ON ANYTHING EXCEPT WHERE NOTED Remember: Though the problems in this packet are a good representation of many of the topics that will be on the exam, this

More information

Lecture Programming in C++ PART 1. By Assistant Professor Dr. Ali Kattan

Lecture Programming in C++ PART 1. By Assistant Professor Dr. Ali Kattan Lecture 08-1 Programming in C++ PART 1 By Assistant Professor Dr. Ali Kattan 1 The Conditional Operator The conditional operator is similar to the if..else statement but has a shorter format. This is useful

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

CS159. Nathan Sprague. November 9, 2015

CS159. Nathan Sprague. November 9, 2015 CS159 Nathan Sprague November 9, 2015 Recursive Definitions Merriam Websters definition of Ancestor: Ancestor One from whom a person is descended [...] Here is a recursive version: Ancestor One s parent.

More information

Python - Week 3. Mohammad Shokoohi-Yekta

Python - Week 3. Mohammad Shokoohi-Yekta Python - Week 3 Mohammad Shokoohi-Yekta 1 Objective To solve mathematic problems by using the functions in the math module To represent and process strings and characters To use the + operator to concatenate

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

Read and fill in this page now. Your instructional login (e.g., cs3-ab): Your lab section days and time: Name of the person sitting to your left:

Read and fill in this page now. Your instructional login (e.g., cs3-ab): Your lab section days and time: Name of the person sitting to your left: CS3 Fall 05 Midterm 1 Read and fill in this page now Your name: Your instructional login (e.g., cs3-ab): Your lab section days and time: Your lab T.A.: Name of the person sitting to your left: Name of

More information

Lab Exercise 1 Using EGit and JUnit

Lab Exercise 1 Using EGit and JUnit Lab Exercise 1 Using EGit and JUnit This lab exercise will get you familiar with following: EGit, an Eclipse plug-in to use to a distributed version control system called Git. JUnit, a unit testing framework

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

CS 302: Introduction to Programming in Java. Lecture 11 Yinggang Huang. CS302 Summer 2012

CS 302: Introduction to Programming in Java. Lecture 11 Yinggang Huang. CS302 Summer 2012 CS 302: Introduction to Programming in Java Lecture 11 Yinggang Huang 1 Review How do we call a method? What are method inputs called? How many values can be returned from a method? Write a method header

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

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

Represent and solve problems involving addition and subtraction

Represent and solve problems involving addition and subtraction Operations and Algebraic Thinking Represent and solve problems involving addition and subtraction AR.Math.Content.1.OA.A.1 Use addition and subtraction within 20 to solve word problems involving situations

More information

Marking rubric for Assignment #2

Marking rubric for Assignment #2 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

More information

Lecture 2: Operations and Data Types

Lecture 2: Operations and Data Types Lecture 2: Operations and Data Types Building Java Programs: A Back to Basics Approach by Stuart Reges and Marty Stepp Copyright (c) Pearson 2013. All rights reserved. Data types type: A category or set

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

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

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

CS 302: INTRODUCTION TO PROGRAMMING IN JAVA. Chapter 5: Methods. Lecture 10

CS 302: INTRODUCTION TO PROGRAMMING IN JAVA. Chapter 5: Methods. Lecture 10 CS 302: INTRODUCTION TO PROGRAMMING IN JAVA Chapter 5: Methods Lecture 10 1 PROBLEM What if I was using a lot of different arrays and often wanted to print out their contents? I would have to have that

More information

DLM Mathematics Year-End Assessment Model Blueprint

DLM Mathematics Year-End Assessment Model Blueprint DLM Mathematics Year-End Assessment Model 2017-18 Blueprint In this document, the blueprint refers to the range of Essential Elements (s) that will be assessed during the spring 2018 assessment window.

More information

CS 115 Exam 3, Fall 2011

CS 115 Exam 3, Fall 2011 Your name: Rules You may use one handwritten 8.5 x 11 cheat sheet (front and back). This is the only resource you may consult during this exam. Explain/show work if you want to receive partial credit for

More information

PA3: Violet's Vending Venture (Version 3.0)

PA3: Violet's Vending Venture (Version 3.0) CS 159: Programming Fundamentals James Madison University, Spring 2017 Semester PA3: Violet's Vending Venture (Version 3.0) Due Dates PA3-A: Wednesday, Feb. 22 at 11:00 pm PA3-A is a Canvas online readiness

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

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

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

TOPIC 2 INTRODUCTION TO JAVA AND DR JAVA

TOPIC 2 INTRODUCTION TO JAVA AND DR JAVA 1 TOPIC 2 INTRODUCTION TO JAVA AND DR JAVA Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson, and instructor materials prepared

More information

Elite. Copy and Print Release Terminal. Last update 5/2017 Firmware GoPrint version GoPrint Web Client Anonymous Mode (Guest mode)

Elite. Copy and Print Release Terminal. Last update 5/2017 Firmware GoPrint version GoPrint Web Client Anonymous Mode (Guest mode) Elite Copy and Print Release Terminal GoPrint Web Client Anonymous Mode (Guest mode) Last update 5/2017 Firmware 00.151 GoPrint version 4.2.2 2017 ITC Systems. All rights reserved. Elite Guest Mode Configuration

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

Creating the Fee Schedule

Creating the Fee Schedule There are three parts to setting up fee schedules using the RVU updater. 1. Creating a new fee schedule or copying an existing fee schedule 2. Using the RVU updater to update the procedure codes associated

More information

Object-Oriented Programming

Object-Oriented Programming Object-Oriented Programming Java Syntax Program Structure Variables and basic data types. Industry standard naming conventions. Java syntax and coding conventions If Then Else Case statements Looping (for,

More information

Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal

Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal Lesson Goals Understand the basic constructs of a Java Program Understand how to use basic identifiers Understand simple Java data types

More information

Compiling C++ Programs Flow Control in C++ CS 16: Solving Problems with Computers I Lecture #3

Compiling C++ Programs Flow Control in C++ CS 16: Solving Problems with Computers I Lecture #3 Compiling C++ Programs Flow Control in C++ CS 16: Solving Problems with Computers I Lecture #3 Ziad Matni Dept. of Computer Science, UCSB Compiling Programs in C++ Input and Output Streams Simple Flow

More information

CS 455 Midterm Exam 1 Spring 2011 [Bono] Feb. 17, 2011

CS 455 Midterm Exam 1 Spring 2011 [Bono] Feb. 17, 2011 Name: SOLUTION USC loginid (e.g., ttrojan): CS 455 Midterm Exam 1 Spring 2011 [Bono] Feb. 17, 2011 There are 4 problems on the exam, with 50 points total available. There are 7 pages to the exam, including

More information

Variables and Functions. ROBOTC Software

Variables and Functions. ROBOTC Software Variables and Functions ROBOTC Software Variables A variable is a space in your robots memory where data can be stored, including whole numbers, decimal numbers, and words Variable names follow the same

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

Name Section: M/W T/TH Number Definition Matching (8 Points)

Name Section: M/W T/TH Number Definition Matching (8 Points) Name Section: M/W T/TH Number Definition Matching (8 Points) 1. (8 pts) Match the words with their definitions. Choose the best definition for each word. Iteration Counter Event Counter Loop Abstract Step

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

1. What is the minimum number of bits needed to store a single piece of data representing: a. An integer between 0 and 100?

1. What is the minimum number of bits needed to store a single piece of data representing: a. An integer between 0 and 100? 1 CS 105 Review Questions Most of these questions appeared on past exams. 1. What is the minimum number of bits needed to store a single piece of data representing: a. An integer between 0 and 100? b.

More information

Programming Paradigms: Overview to State Oriented

Programming Paradigms: Overview to State Oriented Programming Paradigms: Overview to State Oriented There are many ways to view programming! Four Principal Programming Paradigms are: COP: Control Oriented DOP: Data Oriented Input hr hr > 7*4 Emphasizes

More information

Math 2524: Activity 1 (Using Excel) Fall 2002

Math 2524: Activity 1 (Using Excel) Fall 2002 Math 2524: Activity 1 (Using Excel) Fall 22 Often in a problem situation you will be presented with discrete data rather than a function that gives you the resultant data. You will use Microsoft Excel

More information

Linear Functions. Connection to AP*: AP Calculus Topic: Analysis of Functions

Linear Functions. Connection to AP*: AP Calculus Topic: Analysis of Functions Connecting Middle Grades to Advanced Placement* Mathematics A Resource and Strategy Guide Linear Functions Objective: Students will write an equation for a given problem situation and investigate the relationships

More information

CS112 Lecture: Repetition Statements

CS112 Lecture: Repetition Statements CS112 Lecture: Repetition Statements Objectives: Last revised 2/18/05 1. To explain the general form of the java while loop 2. To introduce and motivate the java do.. while loop 3. To explain the general

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

Lecture Transcript While and Do While Statements in C++

Lecture Transcript While and Do While Statements in C++ Lecture Transcript While and Do While Statements in C++ Hello and welcome back. In this lecture we are going to look at the while and do...while iteration statements in C++. Here is a quick recap of some

More information

Chapter 4 Fundamental Data Types. Big Java by Cay Horstmann Copyright 2009 by John Wiley & Sons. All rights reserved.

Chapter 4 Fundamental Data Types. Big Java by Cay Horstmann Copyright 2009 by John Wiley & Sons. All rights reserved. Chapter 4 Fundamental Data Types Chapter Goals To understand integer and floating-point numbers To recognize the limitations of the numeric types To become aware of causes for overflow and roundoff errors

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

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

CS 112 Project Assignment: Visual Password

CS 112 Project Assignment: Visual Password CS 112 Project Assignment: Visual Password Instructor: Dan Fleck Overview In this project you will use Python to implement a visual password system. In the industry today there is ongoing research about

More information

2/9/2012. Chapter Four: Fundamental Data Types. Chapter Goals

2/9/2012. Chapter Four: Fundamental Data Types. Chapter Goals Chapter Four: Fundamental Data Types Chapter Goals To understand integer and floating-point numbers To recognize the limitations of the numeric types To become aware of causes for overflow and roundoff

More information

CSCI 102 Fall 2010 Exam #1

CSCI 102 Fall 2010 Exam #1 Name: USC Username: CSCI 102 Fall 2010 Exam #1 Problems Problem #1 (14 points) Problem #2 (15 points) Problem #3 (20 points) Problem #4 (16 points) Problem #5 (35 points) Total (100 points) Problem 1 Short

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

CS 455 Midterm Exam 1 Spring 2011 [Bono] Feb. 17, 2011

CS 455 Midterm Exam 1 Spring 2011 [Bono] Feb. 17, 2011 Name: USC loginid (e.g., ttrojan): CS 455 Midterm Exam 1 Spring 2011 [Bono] Feb. 17, 2011 There are 4 problems on the exam, with 50 points total available. There are 7 pages to the exam, including this

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

Algorithms. Abdelghani Bellaachia, CSCI 1121 Page: 1

Algorithms. Abdelghani Bellaachia, CSCI 1121 Page: 1 Algorithms 1. Objectives... 2 2. Design You Solution... 2 3. Structure of an algorithm:... 3 4. Pseudocode:... 4 5. Example... 5 6. Selection or Conditional Execution... 8 7. Looping or Iteration... 9

More information

Name: Chance Wahl Assignment: 4 Section 1 Fall 2013 Design Steps of the Program Development Life Cycle

Name: Chance Wahl Assignment: 4 Section 1 Fall 2013 Design Steps of the Program Development Life Cycle Name: Chance Wahl Assignment: 4 Section 1 Fall 2013 Design Steps of the Program Development Life Cycle Requirements Document Date Submitted: 10/15/13 Application Title: Saving to Buy a Computer The application

More information

COMP-202 Unit 4: Programming With Iterations. CONTENTS: The while and for statements

COMP-202 Unit 4: Programming With Iterations. CONTENTS: The while and for statements COMP-202 Unit 4: Programming With Iterations CONTENTS: The while and for statements Introduction (1) Suppose we want to write a program to be used in cash registers in stores to compute the amount of money

More information

Event Night Card Reader

Event Night Card Reader Event Night Card Reader There are three possible scenarios at event check-in: 1. Pre-registered Guests: Bidders who have registered for the event in advance, including on-line registrations. 2. New Bidders

More information

Premium POS Pizza Order Entry Module. Introduction and Tutorial

Premium POS Pizza Order Entry Module. Introduction and Tutorial Premium POS Pizza Order Entry Module Introduction and Tutorial Overview The premium POS Pizza module is a replacement for the standard order-entry module. The standard module will still continue to be

More information

int: integers, no fractional part double: floating-point numbers (double precision) 1, -4, 0 0.5, , 4.3E24, 1E-14

int: integers, no fractional part double: floating-point numbers (double precision) 1, -4, 0 0.5, , 4.3E24, 1E-14 int: integers, no fractional part 1, -4, 0 double: floating-point numbers (double precision) 0.5, -3.11111, 4.3E24, 1E-14 A numeric computation overflows if the result falls outside the range for the number

More information

Full file at https://fratstock.eu Programming in Visual Basic 2010

Full file at https://fratstock.eu Programming in Visual Basic 2010 OBJECTIVES: Chapter 2 User Interface Design Upon completion of this chapter, your students will be able to 1. Use text boxes, masked text boxes, rich text boxes, group boxes, check boxes, radio buttons,

More information

DLM Mathematics Year-End Assessment Model Blueprint

DLM Mathematics Year-End Assessment Model Blueprint DLM Mathematics Year-End Assessment Model 2018-19 Blueprint In this document, the blueprint refers to the range of Essential Elements (s) that will be assessed during the spring 2019 assessment window.

More information

POS Register Instructions

POS Register Instructions POS Register Instructions Updated April 29, 2016 Prepared by Tina Leinbaugh I. Daily Start-Up... 1 A. Receipt Printer ON... 1 B. The Screen should be ON... 1 C. Turn the Computer ON... 1 II. Start of Shift...

More information

Level 3 Computing Year 1 Lecturer: Phil Smith

Level 3 Computing Year 1 Lecturer: Phil Smith Level 3 Computing Year 1 Lecturer: Phil Smith Previously.. We looked at forms and controls. The event loop cycle. Triggers. Event handlers. Objectives for today.. 1. To gain knowledge and understanding

More information

The barcode on the item is not scanning or the product is not found, what should I do to complete the transaction for my customer?

The barcode on the item is not scanning or the product is not found, what should I do to complete the transaction for my customer? FAQ s The barcode on the item is not scanning or the product is not found, what should I do to complete the transaction for my customer? First, scan the Scrubs and Beyond sticker ticket. If the sticker

More information

TEKS/STAAR Connections 2014 Grade 1 Grade 2

TEKS/STAAR Connections 2014 Grade 1 Grade 2 /STAAR Connections 2014 Grade 1 Grade 2 Place Value Place Value 2A Recognize instantly the quantity of structured arrangements. 2B Use concrete and pictorial models to compose and 2A Use concrete and pictorial

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

CREATE A BLANKET (LIMIT) REQUEST

CREATE A BLANKET (LIMIT) REQUEST CREATE A BLANKET (LIMIT) REQUEST A Blanket or Limit Request is a type of Non-Catalog Free Text request that consists of a requirement that will be delivered over a period of time. 1. From the Homepage,

More information

1 st Grade Math 2007 Standards, Benchmarks, Examples & Vocabulary

1 st Grade Math 2007 Standards, Benchmarks, Examples & Vocabulary 1 st Grade Math 2007 Standards, Benchmarks, s & Strand Standard No. Benchmark (1 st Grade) 1.1.1.1 Use place value to describe whole numbers between 10 and 100 in terms of tens and ones. Group of Tens

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

Chapter 4 Lab. Loops and Files. Objectives. Introduction

Chapter 4 Lab. Loops and Files. Objectives. Introduction Chapter 4 Lab Loops and Files Objectives Be able to convert an algorithm using control structures into Java Be able to write a while loop Be able to write a do-while loop Be able to write a for loop Be

More information

E-wallet - Magento 2 USER MANUAL MAGEDELIGHT.COM

E-wallet - Magento 2 USER MANUAL MAGEDELIGHT.COM E-wallet - Magento 2 USER MANUAL MAGEDELIGHT.COM EMAIL: SUPPORT@MAGEDELIGHT.COM Introduction: E-wallet extension is to allow customers do shopping using online wallet credited with some amount. It works

More information

Program Fundamentals

Program Fundamentals Program Fundamentals /* HelloWorld.java * The classic Hello, world! program */ class HelloWorld { public static void main (String[ ] args) { System.out.println( Hello, world! ); } } /* HelloWorld.java

More information

EZ Parent Center Directions Parent Sign Up and Meal Preordering

EZ Parent Center Directions Parent Sign Up and Meal Preordering EZ Parent Center Directions Parent Sign Up and Meal Preordering Sign Up for Returning Parents Who Used EZ School Lunch POS the Previous Year (All others scroll down to New Parent Sign Up) Parents should

More information

Chapter 3 - Simple JavaScript - Programming Basics. Lesson 1 - JavaScript: What is it and what does it look like?

Chapter 3 - Simple JavaScript - Programming Basics. Lesson 1 - JavaScript: What is it and what does it look like? Chapter 3 - Simple JavaScript - Programming Basics Lesson 1 - JavaScript: What is it and what does it look like? PP presentation JavaScript.ppt. Lab 3.1. Lesson 2 - JavaScript Comments, document.write(),

More information

Name Section: M/W T/TH Number Definition Matching (6 Points)

Name Section: M/W T/TH Number Definition Matching (6 Points) Name Section: M/W T/TH Number Definition Matching (6 Points) 1. (6 pts) Match the words with their definitions. Choose the best definition for each word. Event Counter Iteration Counter Loop Flow of Control

More information

Expressions and Data Types CSC 121 Fall 2015 Howard Rosenthal

Expressions and Data Types CSC 121 Fall 2015 Howard Rosenthal Expressions and Data Types CSC 121 Fall 2015 Howard Rosenthal Lesson Goals Understand the basic constructs of a Java Program Understand how to use basic identifiers Understand simple Java data types and

More information

DRX Your School Lunch Payment Program

DRX Your School Lunch Payment Program DRX Your School Lunch Payment Program DRX is the online software that Guess Who's Coming to Dinner Caterers uses as our lunch payment program. DRX creates accounts for students and allows parents to add

More information

A Quick and Easy Guide To Using Canva

A Quick and Easy Guide To Using Canva A Quick and Easy Guide To Using Canva Canva is easy to use and has great tools that allow you to design images that grab anyone s eye. These images can be used on your personal website, Pinterest, and

More information

Administration. Exceptions. Leftovers. Agenda. When Things Go Wrong. Handling Errors. CS 99 Summer 2000 Michael Clarkson Lecture 11

Administration. Exceptions. Leftovers. Agenda. When Things Go Wrong. Handling Errors. CS 99 Summer 2000 Michael Clarkson Lecture 11 Administration Exceptions CS 99 Summer 2000 Michael Clarkson Lecture 11 Lab 10 due tomorrow No lab tomorrow Work on final projects Remaining office hours Rick: today 2-3 Michael: Thursday 10-noon, Monday

More information

Lesson 1.9 No learning goal mapped to this lesson Compare whole numbers up to 100 and arrange them in numerical. order.

Lesson 1.9 No learning goal mapped to this lesson Compare whole numbers up to 100 and arrange them in numerical. order. Unit 1 Numbers and Routines 1 a D Find values of coin and bill combinations (Lessons 1.2, 1.6) 2.1.3 Identify numbers up to 100 in various combinations of tens and ones. ISTEP+ T1 #9-10 2.2.1 Model addition

More information

Page

Page N2Coins4U@gmail.com 256-270-2277 1 Page Welcome to N2Coins! We are very happy and excited to have you on our team in this phenomenal opportunity, which is helping people all over the world achieve success

More information

Arrays and Files. Jerry Cain CS 106AJ November 1, 2017 slides courtesy of Eric Roberts

Arrays and Files. Jerry Cain CS 106AJ November 1, 2017 slides courtesy of Eric Roberts Arrays and Files Jerry Cain CS 106AJ November 1, 2017 slides courtesy of Eric Roberts Once upon a time... Ken Iverson and APL In the early 1960s, a computer scientist named Ken Iverson invented the APL

More information

STORE CREDIT USER GUIDE

STORE CREDIT USER GUIDE support@magestore.com sales@magestore.com Phone: 084.4.8585.4587 STORE CREDIT USER GUIDE Version 1.0.0 Magento Compatibility: CE 2.0 Table of Contents 1. INTRODUCTION... 3 2. HOW TO USE (Frontend)... 5

More information

Com S 227 Spring 2018 Topics and review problems for Exam 1 Monday, February 19, 6:45 pm Exam locations by last name:

Com S 227 Spring 2018 Topics and review problems for Exam 1 Monday, February 19, 6:45 pm Exam locations by last name: Com S 227 Spring 2018 Topics and review problems for Exam 1 Monday, February 19, 6:45 pm Exam locations by last name: A-B Food Science 2432 C-J LeBaron 1210 *** You must bring your ID to the exam *** K-Q

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

Settings Options User Manual

Settings Options User Manual Settings Options User Manual Settings Options User Manual 04/05/2016 User Reference Manual Copyright 2016 by Celerant Technology Corp. All rights reserved worldwide. This manual, as well as the software

More information

University of Maryland, College Park Department of Civil and Environmental Engineering ENCE 202 Computation Methods in Civil Engineering I

University of Maryland, College Park Department of Civil and Environmental Engineering ENCE 202 Computation Methods in Civil Engineering I University of Maryland, College Park Department of Civil and Environmental Engineering ENCE 202 Computation Methods in Civil Engineering I Final Exam Closed Book & Notes Exam for two hours (120 minutes)

More information