CSC101 - BMCC - Spring /22/2019. Lab 07

Size: px
Start display at page:

Download "CSC101 - BMCC - Spring /22/2019. Lab 07"

Transcription

1 CSC101 - BMCC - Spring /22/2019 Lab 07 Download and extract the content of CSC101_Lab07.zip from the course web page (labs.html); then browse and open the folder Lab07 where you will find all necessary files to accomplish this lab. If Statements 1- Edit and check the content of the Web page ifdemo.html, then load the page in the browser to verify that it behaves as described. Test the Web page by entering various grades in the text box. 2- Modify the page ifdemo.html by replacing the if statement in the ShowMessage function with the below if statement. Load this modified page then test it using various grades. if (grade < 60) { diff = 60 - grade; alert('you failed! If only you could have ' + 'earned ' + diff + ' more points.'); } else { alert('congratulations, you passed.'); } 3- In Lab 06 Task 12, you created a Web page (randseq.html) that selected a sequence of random letters from a string that was entered by the user. Modify the randseq.html page so that it checks to make sure that the user has correctly entered characters to choose from. If not (i.e., if the text box is empty when the button is clicked), an alert window should appear to warn the user. Otherwise, the random sequence should be generated and displayed as before. Note: The Web page randseq.html is provided in Lab07 directory. Nested If Statements 4- In Lab 04 Task 12, you created a Web page (grades.html) that computes a student's overall average for a course. Modify the grades.html page by inserting a cascading if-else statement similar to the statement in Figure 1. In addition to displaying the student s class average, the associated letter grade should be displayed. For example, if the student s average was calculated to be 85.5, then the message displayed in the page division should be:

2 Your overall course average is 85.5 Letter grade: B Note: The Web page grades.html is provided in Lab07 directory. Figure 1 Example: Dice Simulations 5- Edit and check the content of the Web page stats.html, then load the page in the browser to verify that it behaves as described. 6- Modify the page stats.html to add an additional text span that serves as a conditional counter, keeping track of the number of times the user rolls doubles. The new SPAN element should appear below the existing one that displays the number of rolls and should be preceded by an appropriate label. With-in the RollDice function, add an if statement that checks whether the two rolls are identical and, if so, increments the doubles counter in the text span. Note: Statistically speaking, users should obtain doubles on one-sixth their rolls. This is attributable to the fact that 6 out of the 36 possible dice combinations are doubles. After a reasonable number of rolls, is your doubles count roughly one-sixth of the total number of rolls? 7- Imagine that users of your stats.html page would like to perform repeated experiments with the dice simulator. It would greatly help these users if they were able to reset the roll and doubles counts within the page. This can be accomplished by reloading the page that is, by clicking on the browser's reload button or reentering the page's address but a more elegant solution would be to add another button to

3 the page labeled Reset counters. When the user clicks this button, the values in the two text spans should be reset to 0. Add such a button to your page and verify that it behaves appropriately. 8- There are six different dice combinations that add up to 7: 6-1, 5-2, 4-3, 3-4, 2-5, and 1-6, making it the most common dice roll. Add an additional text span to your stats.html page that keeps track of the number of times the user rolls dice that total 7. The new SPAN element should appear below the existing ones and should be preceded by an appropriate label. Within the RollDice function, add an if statement that checks whether the two rolls add up to 7 and, if so, increments the sevens counter in the text span. This counter should also be reset to 0 when the user clicks on the reset button (from Task 7). Once you have done this, use your page to simulate repeated dice rolls. After a reasonable number of rolls, is your sevens count roughly one-sixth of the total number of rolls? 9- In gambling circles, the combination of a 3 and 4 (in either order) is known as a natural seven. Add an additional text span to your stats.html page that keeps track of the number of natural sevens that are rolled. The new SPAN element should appear below the existing ones and should be preceded by an appropriate label. Within the RollDice function, add code that increments the natural sevens counter in the text span. This counter should also be reset to 0 when the user clicks on the reset button (from Task 7). Once you have done this, use your page to simulate repeated dice rolls. How frequently would you expect to obtain a natural seven? Do the results of your repeated simulations match your expectations? Example: Slot Machine 10- Edit and check the content of the Web page slots.html, then load the page in the browser to verify that it behaves as described. 11- Modify the page slots.html so that it simulates a slot machine, with the player's credits displayed in a text span in the page. When the game begins, the number of credits should start at 20. Each spin of the slots should cost the player one credit. If all three slot images match, however, the player wins and is credited with 13 credits (for a net gain of 12 credits). In addition, an alert window should appear to notify the player of the winning spin. Modify the SpinSlots function so that the number of credits is updated appropriately on each spin. Note: As is the case with all organized gambling, the odds here favor the house. Since there are four different images that can appear in a slot, there is a 1 in 16 chance of all three slots coming up the same. Thus, you would expect (in the long run) for the player to win 1 out of every 16 spins. Consequently, the payoff of $13 does not quite offset the $16 cost of the spins. As a result, you are more likely to lose

4 money (in the long run) than win money. Perform numerous simulations with your updated page to see if this pattern holds. 12- As is, your slots.html page does not recognize when a player has run out of money. It is possible for the user to play your slots game even after the number of credits becomes 0, and the credits can become negative as a result. Any smart casino owner would put a stop to this immediately. Add code to SpinSlots that disallows a spin if the player's credits have reached 0. In particular, the existing code for simulating the spin and displaying the results should only be executed if the player has money. 13- In a real slot machine, the player always has the option of adding more credits to the machine and continuing play indefinitely (or until they go completely broke). Add an additional button to your page labeled Add 20 credits. When the user clicks this button, 20 credits should be added to the credit total on the page. Example: Designing a Dot Race A common event at sporting events is the running of dot races on the scoreboard. In a dot race, dots of different colors speed around a track, and members of the crowd are encouraged to cheer for different dots. Every few seconds, each dot moves forward a different random amount; the dot that reaches the finish line first is the winner. 14- Design and implement a Web page named dotrace.html that allows the user to simulate a race between two dots. Your page should look something like the one in Figure 2. Figure 2

5 The length of the race (i.e., the goal distance) is entered by the user in a text box, and the positions of the two dots (initially 0) are displayed in text spans. Each time the user clicks the button labeled Take a Step, each dot should move forward a random amount (either one, two, or three units). When one of the dots crosses the finish line meaning that its current position is greater than or equal to the goal distance an alert box should appear to identify the winner. Note that it is possible for the dots to tie if both cross the finish line on the same step. Thus, your code must be able to recognize a tied race and display an appropriate message in the alert box. 15- Modify your dotrace.html page so that users can initiate repeated races without having to reload the page. You can accomplish this by adding a button labeled New Race; when a user clicks this button, the positions of the dots should be reset to 0. If the user clicks the Take a Step button after the current race is complete, an alert box should appear directing the user to click the New Race button and begin a new race. Lab Submission Copy all your Web pages in a directory named Lab07_Firstname_Lastname (use your first and last names); then bring it using your USB Flash drive to the classroom for submission on March 29, 2019.

Introduction to: Computers & Programming: Review prior to 2 nd Midterm

Introduction to: Computers & Programming: Review prior to 2 nd Midterm Introduction to: Computers & Programming: Review prior to 2 nd Midterm Adam Meyers New York University Summary Procedural Matters Types of Test Questions and Sample Questions Summary of what you need to

More information

Programming Assignment #4 Arrays and Pointers

Programming Assignment #4 Arrays and Pointers CS-2301, System Programming for Non-majors, B-term 2013 Project 4 (30 points) Assigned: Tuesday, November 19, 2013 Due: Tuesday, November 26, Noon Abstract Programming Assignment #4 Arrays and Pointers

More information

STUDENT LESSON A14 Boolean Algebra and Loop Boundaries

STUDENT LESSON A14 Boolean Algebra and Loop Boundaries STUDENT LESSON A14 Boolean Algebra and Loop Boundaries Java Curriculum for AP Computer Science, Student Lesson A14 1 STUDENT LESSON A14 Boolean Algebra and Loop Boundaries INTRODUCTION: Conditional loops

More information

HHH Instructional Computing Fall

HHH Instructional Computing Fall Quick Start Guide for School Web Lockers Teacher log-on is the same as for Infinite Campus Student log-on is the same initial log on to the network except no school year is required before their user name

More information

CS 540: Introduction to Artificial Intelligence

CS 540: Introduction to Artificial Intelligence CS 540: Introduction to Artificial Intelligence Midterm Exam: 7:15-9:15 pm, October, 014 Room 140 CS Building CLOSED BOOK (one sheet of notes and a calculator allowed) Write your answers on these pages

More information

15-110: Principles of Computing, Spring 2018

15-110: Principles of Computing, Spring 2018 5-: Principles of Computing, Spring 28 Problem Set 8 (PS8) Due: Friday, March 3 by 2:3PM via Gradescope Hand-in HANDIN INSTRUCTIONS Download a copy of this PDF file. You have two ways to fill in your answers:.

More information

Lab 1: Silver Dollar Game 1 CSCI 2101B Fall 2018

Lab 1: Silver Dollar Game 1 CSCI 2101B Fall 2018 Lab 1: Silver Dollar Game 1 CSCI 2101B Fall 2018 Due: Tuesday, September 18, 11:59 pm Collaboration Policy: Level 1 (review full policy for details) Group Policy: Individual This lab will give you experience

More information

Function Call Stack and Activation Records

Function Call Stack and Activation Records 71 Function Call Stack and Activation Records To understand how C performs function calls, we first need to consider a data structure (i.e., collection of related data items) known as a stack. Students

More information

Control Statements: Part 1

Control Statements: Part 1 4 Let s all move one place on. Lewis Carroll Control Statements: Part 1 The wheel is come full circle. William Shakespeare How many apples fell on Newton s head before he took the hint! Robert Frost All

More information

IT Essentials v6.0 Windows 10 Software Labs

IT Essentials v6.0 Windows 10 Software Labs IT Essentials v6.0 Windows 10 Software Labs 5.2.1.7 Install Windows 10... 1 5.2.1.10 Check for Updates in Windows 10... 10 5.2.4.7 Create a Partition in Windows 10... 16 6.1.1.5 Task Manager in Windows

More information

OBJECTS AND CLASSES. Examples. You and I are instances of the class of objects known as people.

OBJECTS AND CLASSES. Examples. You and I are instances of the class of objects known as people. OBJECTS AND CLASSES Natural-World Objects In our natural world, an object is something that is an instance of a class, which is a larger group of like things. s You and I are instances of the class of

More information

C Functions. 5.2 Program Modules in C

C Functions. 5.2 Program Modules in C 1 5 C Functions 5.2 Program Modules in C 2 Functions Modules in C Programs combine user-defined functions with library functions - C standard library has a wide variety of functions Function calls Invoking

More information

Introduction to Computer Science Unit 3. Programs

Introduction to Computer Science Unit 3. Programs Introduction to Computer Science Unit 3. Programs This section must be updated to work with repl.it Programs 1 to 4 require you to use the mod, %, operator. 1. Let the user enter an integer. Your program

More information

Registration, Data Download, and Creating/ Restoring Backups

Registration, Data Download, and Creating/ Restoring Backups Registration, Data Download, and Creating/ Restoring Backups E Lab Users Register on the Armond Dalton Resources Website... Download the Three Initial Company Backup Files... Load Waren Sport Supply Dataset

More information

The Blackboard 5.5 Student Guide

The Blackboard 5.5 Student Guide The Blackboard 5.5 Student Guide Release Version 2.1 Spring 2003 Semester Chris Matthew Tkaczyk Title III Office The Blackboard 5.5 Student Guide Table of Contents What is Internet Explorer?... 1 How do

More information

Grade 3. Everyday Math: Version 4. Unit EDM. Multiplication & Division Study Guide

Grade 3. Everyday Math: Version 4. Unit EDM. Multiplication & Division Study Guide Grade Everyday Math: EDM Version 4 Unit Multiplication & Division Study Guide Thank you! Catherine Wiist @ Abc2is4me http://www.teacherspayteachers.com/store/abc2is4me (All new products are discounted

More information

2D Array Practice. Lecture 26

2D Array Practice. Lecture 26 2D Array Practice Lecture 26 Announcements Worksheet 6 and Problem Set 6 Posted to COMP110.com Final Deliverables of the Semester! PS6 - Compstagram Demo Regular Review Session Schedule General - Wednesday

More information

Assignment Checklist. Prelab Activities. Lab Exercises. Labs Provided by Instructor. Postlab Activities. Section:

Assignment Checklist. Prelab Activities. Lab Exercises. Labs Provided by Instructor. Postlab Activities. Section: 7 Arrays Now go, write it before them in a table, and note it in a book. Isaiah 30:8 To go beyond is as wrong as to fall short. Confucius Begin at the beginning, and go on till you come to the end: then

More information

CIS 162 Project 4 Farkle (a dice game)

CIS 162 Project 4 Farkle (a dice game) CIS 162 Project 4 Farkle (a dice game) Due Date at the start of class on Monday, 3 December (be prepared for quick demo and zybook test) Before Starting the Project Read chapter 10 (ArrayList) and 13 (arrays)

More information

Registration and Login

Registration and Login Registration and Login When a parent accesses txconnect, the following Login page is displayed. The parent needs to register as a new user. How to Register as a New User The registration process is self-administered,

More information

Title of Resource Introduction to SPSS 22.0: Assignment and Grading Rubric Kimberly A. Barchard. Author(s)

Title of Resource Introduction to SPSS 22.0: Assignment and Grading Rubric Kimberly A. Barchard. Author(s) Title of Resource Introduction to SPSS 22.0: Assignment and Grading Rubric Kimberly A. Barchard Author(s) Leiszle Lapping-Carr Institution University of Nevada, Las Vegas Students learn the basics of SPSS,

More information

Lecture 19. Topics: Chapter 9. Simulation and Design Moving to graphics library Unit Testing 9.5 Other Design Techniques

Lecture 19. Topics: Chapter 9. Simulation and Design Moving to graphics library Unit Testing 9.5 Other Design Techniques Lecture 19 Topics: Chapter 9. Simulation and Design Moving to graphics library 9.4.1 Unit Testing 9.5 Other Design Techniques 1 9.4.1 Unit Testing When we finish writing a function (a component of a program)

More information

Programming Assignment 7 (100. Points)

Programming Assignment 7 (100. Points) Programming Assignment 7 (100 Points) Due: 11:59pm Thursday, November 16 In this PA, we will be learning about recursion and some of Rick s Vegas wisdom. README ( 10 points ) You are required to provide

More information

EAS230: Programming for Engineers Lab 1 Fall 2004

EAS230: Programming for Engineers Lab 1 Fall 2004 Lab1: Introduction Visual C++ Objective The objective of this lab is to teach students: To work with the Microsoft Visual C++ 6.0 environment (referred to as VC++). C++ program structure and basic input

More information

15-110: Principles of Computing, Spring 2018

15-110: Principles of Computing, Spring 2018 15-110: Principles of Computing, Spring 2018 Programming Assignment 11 (PA11) Due: Tuesday, May 1 by 9PM IMPORTANT ANNOUNCEMENT You cant drop this assignment even if it is your lowest PA score. Failure

More information

Chapter 5. Repetition. Contents. Introduction. Three Types of Program Control. Two Types of Repetition. Three Syntax Structures for Looping in C++

Chapter 5. Repetition. Contents. Introduction. Three Types of Program Control. Two Types of Repetition. Three Syntax Structures for Looping in C++ Repetition Contents 1 Repetition 1.1 Introduction 1.2 Three Types of Program Control Chapter 5 Introduction 1.3 Two Types of Repetition 1.4 Three Structures for Looping in C++ 1.5 The while Control Structure

More information

York University AK/ITEC OBJECT-BASED PROGRAMMING. Midterm Test Sample. Examiner: S.Y. Chen Duration: One Hour and Fifteen Minutes

York University AK/ITEC OBJECT-BASED PROGRAMMING. Midterm Test Sample. Examiner: S.Y. Chen Duration: One Hour and Fifteen Minutes York University AK/ITEC 1620 3.0 OBJECT-BASED PROGRAMMING Midterm Test Sample Examiner: S.Y. Chen Duration: One Hour and Fifteen Minutes This exam is closed textbook(s) and closed notes. Use of any electronic

More information

Condition-Controlled Loop. Condition-Controlled Loop. If Statement. Various Forms. Conditional-Controlled Loop. Loop Caution.

Condition-Controlled Loop. Condition-Controlled Loop. If Statement. Various Forms. Conditional-Controlled Loop. Loop Caution. Repetition Structures Introduction to Repetition Structures Chapter 5 Spring 2016, CSUS Chapter 5.1 Introduction to Repetition Structures The Problems with Duplicate Code A repetition structure causes

More information

LAB: FOR LOOPS IN C++

LAB: FOR LOOPS IN C++ LAB: FOR LOOPS IN C++ MODULE 2 JEFFREY A. STONE and TRICIA K. CLARK COPYRIGHT 2014 VERSION 4.0 PALMS MODULE 2 LAB: FOR LOOPS IN C++ 2 Introduction This lab will provide students with an introduction to

More information

CMPSCI 187 / Spring 2015 Hangman

CMPSCI 187 / Spring 2015 Hangman CMPSCI 187 / Spring 2015 Hangman Due on February 12, 2015, 8:30 a.m. Marc Liberatore and John Ridgway Morrill I N375 Section 01 @ 10:00 Section 02 @ 08:30 1 CMPSCI 187 / Spring 2015 Hangman Contents Overview

More information

Unit 13. Linux Operating System Debugging Programs

Unit 13. Linux Operating System Debugging Programs 1 Unit 13 Linux Operating System Debugging Programs COMPILATION 2 3 Editors "Real" developers use editors designed for writing code No word processors!! You need a text editor to write your code Eclipse,

More information

Jackson State University Department of Computer Science CSC / Advanced Information Security Spring 2013 Lab Project # 3

Jackson State University Department of Computer Science CSC / Advanced Information Security Spring 2013 Lab Project # 3 Jackson State University Department of Computer Science CSC 439-01/539-02 Advanced Information Security Spring 2013 Lab Project # 3 Use of CAPTCHA (Image Identification Strategy) to Prevent XSRF Attacks

More information

CS150 - Assignment 5 Data For Everyone Due: Wednesday Oct. 16, at the beginning of class

CS150 - Assignment 5 Data For Everyone Due: Wednesday Oct. 16, at the beginning of class CS10 - Assignment Data For Everyone Due: Wednesday Oct. 16, at the beginning of class http://dilbert.com/fast/2008-0-08/ For this assignment we re going to implement some initial data analysis functions

More information

Due Date: Two Program Demonstrations (Testing and Debugging): End of Lab

Due Date: Two Program Demonstrations (Testing and Debugging): End of Lab CSC 111 Fall 2005 Lab 6: Methods and Debugging Due Date: Two Program Demonstrations (Testing and Debugging): End of Lab Documented GameMethods file and Corrected HighLow game: Uploaded by midnight of lab

More information

COSC 3P97 Assignment 1

COSC 3P97 Assignment 1 Due: Oct. 12 @ 5:00 pm. COSC 3P97 Assignment 1 Fall 2018/19 Create a new Android Studio project or Eclipse workspace for the assignment. The app should run on API 23 (Marshmallow). Calculator Write an

More information

IMPORTANT NOTE for. Choose the zip file v and unzip it in USB. Do not rename the UPG folder. Follow

IMPORTANT NOTE for. Choose the zip file v and unzip it in USB. Do not rename the UPG folder. Follow IMPORTANT NOTE for (HTB3280G/12 HTB3520/40/55/94/98 HTB3520G/12/51 HTB3550/40/98 HTB3550G/12 HTB3580/40/79/98 HTB3580G/12/51 HTB4520G/51 HTB4580G/51 HTB5260G/12 HTB5520/55/94/98 HTB5520G/12 HTB5550/98

More information

Setup and Use of Pile Up Practice by NO5W

Setup and Use of Pile Up Practice by NO5W Introduction This Practice version of the Pile Up application is intended for use by individuals who want to improve their chances of doing well when taking the test at Dayton or just want to see how well

More information

Functions. Computer System and programming in C Prentice Hall, Inc. All rights reserved.

Functions. Computer System and programming in C Prentice Hall, Inc. All rights reserved. Functions In general, functions are blocks of code that perform a number of pre-defined commands to accomplish something productive. You can either use the built-in library functions or you can create

More information

for Credit is from January 22 through February 20 at midnight.

for Credit is from January 22 through February 20 at midnight. Spring 2018 Human Subjects SONA opens January 22, 2018 Last day to do studies is May 1, 2018 at midnight Last day to make changes/corrections is May 6, 2018 at midnight Longer BRIEF SUMMARY Prescreen INSTRUCTIONS.

More information

3 The L oop Control Structure

3 The L oop Control Structure 3 The L oop Control Structure Loops The while Loop Tips and Traps More Operators The for Loop Nesting of Loops Multiple Initialisations in the for Loop The Odd Loop The break Statement The continue Statement

More information

CSC D84 Assignment 2 Game Trees and Mini-Max

CSC D84 Assignment 2 Game Trees and Mini-Max 0 The Cats Strike Back Due date: Wednesday, Feb. 21, 9am (electronic submission on Mathlab) This assignment can be completed individually, or by a team of 2 students This assignment is worth 10 units toward

More information

Purpose of this Document

Purpose of this Document Active Data Calendar Directions for ORA Cert Program Participants Calendar URL: http://training.umd.edu Purpose of this Document This document provides information on the Training@Maryland site in regards

More information

Gambler s Ruin Lesson Plan

Gambler s Ruin Lesson Plan Gambler s Ruin Lesson Plan Ron Bannon August 11, 05 1 Gambler s Ruin Lesson Plan 1 Printed August 11, 05 Prof. Kim s assigned lesson plan based on the Gambler s Ruin Problem. Preamble: This lesson plan

More information

Rock-Paper-Scissors Multiple versions Nested If / Else If / Else Random Numbers

Rock-Paper-Scissors Multiple versions Nested If / Else If / Else Random Numbers VISUAL BASIC Rock-Paper-Scissors Multiple versions Nested If / Else If / Else Random Numbers Copyright 2015 Dan McElroy Topics Covered OProject Definition OMultiple versions of the program ODetermine the

More information

Exercise 1 Using Boolean variables, incorporating JavaScript code into your HTML webpage and using the document object

Exercise 1 Using Boolean variables, incorporating JavaScript code into your HTML webpage and using the document object CS1046 Lab 5 Timing: This lab should take you approximately 2 hours. Objectives: By the end of this lab you should be able to: Recognize a Boolean variable and identify the two values it can take Calculate

More information

The Paperless Classroom with Google Docs by - Eric Curts

The Paperless Classroom with Google Docs by - Eric Curts The Paperless Classroom with Google Docs by - Eric Curts Table of Contents Overview How to name documents and folders How to choose sharing options: Edit, Comment, and View How to share a document with

More information

Lab 2: Booleans, Strings, Random Numbers, Recursion, Variables, Input function

Lab 2: Booleans, Strings, Random Numbers, Recursion, Variables, Input function Lab 2: Booleans, Strings, Random Numbers, Recursion, Variables, Input function Due: Mar25 (Note that this is a 2-week lab) This lab must be done using paired partners. You should choose a different partner

More information

Cisco Events Mobile Application

Cisco Events Mobile Application Welcome to the new free Cisco Events mobile application! Using this tool, participants can: Connect with peers and Cisco representatives attending an event virtually or onsite Earn points towards exclusive

More information

Tips from the experts: How to waste a lot of time on this assignment

Tips from the experts: How to waste a lot of time on this assignment Com S 227 Spring 2018 Assignment 1 100 points Due Date: Friday, September 14, 11:59 pm (midnight) Late deadline (25% penalty): Monday, September 17, 11:59 pm General information This assignment is to be

More information

Programming Problems 15th Annual Computer Science Programming Contest

Programming Problems 15th Annual Computer Science Programming Contest Programming Problems 15th Annual Computer Science Programming Contest Department of Mathematics and Computer Science Western Carolina University March 0, 200 Criteria for Determining Scores Each program

More information

CS 210 Fundamentals of Programming I Spring 2015 Programming Assignment 4

CS 210 Fundamentals of Programming I Spring 2015 Programming Assignment 4 CS 210 Fundamentals of Programming I Spring 2015 Programming Assignment 4 20 points Out: February 18/19, 2015 Due: February 25/26, 2015 Reminder: This is a programming assignment, and work on this assignment

More information

CODE CHALLENGE WORKED EXAMPLE:

CODE CHALLENGE WORKED EXAMPLE: CODE CHALLENGE WORKED EXAMPLE: FRUIT MACHINE For each challenge, solve it using: A flowchart Pseudocode (see A Level Pseudocode Guide http://www.ocr.org.uk/images/202654-pseudocode-guide.pdf ) Program

More information

CS 134 Programming Exercise 2:

CS 134 Programming Exercise 2: CS 134 Programming Exercise 2: Dirty Laundry Objective: To gain experience using conditionals. The Scenario. One thing some students have to figure out for the first time when they come to college is how

More information

Dr M Kasim A Jalil. Faculty of Mechanical Engineering UTM (source: Deitel Associates & Pearson)

Dr M Kasim A Jalil. Faculty of Mechanical Engineering UTM (source: Deitel Associates & Pearson) Lecture 9 Functions Dr M Kasim A Jalil Faculty of Mechanical Engineering UTM (source: Deitel Associates & Pearson) Objectives In this chapter, you will learn: To understand how to construct programs modularly

More information

PARTICIPANT (STUDENT) DOCUMENTATION Introduction. Getting Started. Requesting an Account

PARTICIPANT (STUDENT) DOCUMENTATION Introduction. Getting Started. Requesting an Account PARTICIPANT (STUDENT) DOCUMENTATION Introduction The Experiment Management System provides an easy method for you to sign up for studies, and track your progress throughout the term. Everything is done

More information

Loops (while and for)

Loops (while and for) Loops (while and for) CSE 1310 Introduction to Computers and Programming Alexandra Stefan 1 Motivation Was there any program we did (class or hw) where you wanted to repeat an action? 2 Motivation Name

More information

Functions. Angela Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan.

Functions. Angela Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan. Functions Angela Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan 2009 Fall Outline 5.1 Introduction 5.3 Math Library Functions 5.4 Functions 5.5

More information

Blackboard 5. Instructor Manual Level One Release 5.5

Blackboard 5. Instructor Manual Level One Release 5.5 Bringing Education Online Blackboard 5 Instructor Manual Level One Release 5.5 Copyright 2001 by Blackboard Inc. All rights reserved. No part of the contents of this manual may be reproduced or transmitted

More information

DRAFT CHAPTER. Surface Area GET READY. xxx. Math Link. 5.1 Warm Up xxx. 5.1 Views of Three-Dimensional Objects xxx. 5.

DRAFT CHAPTER. Surface Area GET READY. xxx. Math Link. 5.1 Warm Up xxx. 5.1 Views of Three-Dimensional Objects xxx. 5. CHAPTER 5 Surface Area GET READY Math Link xxx xxx 5.1 Warm Up xxx 5.1 Views of Three-Dimensional Objects xxx 5.2 Warm Up xxx 5.2 Nets of Three-Dimensional Objects xxx 5.3 Warm Up xxx 5.3 Surface Area

More information

8 MANAGING SHARED FOLDERS & DATA

8 MANAGING SHARED FOLDERS & DATA MANAGING SHARED FOLDERS & DATA STORAGE.1 Introduction to Windows XP File Structure.1.1 File.1.2 Folder.1.3 Drives.2 Windows XP files and folders Sharing.2.1 Simple File Sharing.2.2 Levels of access to

More information

Instruction Sheet Updating SmartPAC 2 Firmware

Instruction Sheet Updating SmartPAC 2 Firmware Instruction Sheet Updating SmartPAC 2 Firmware This document shows you how to update SmartPAC 2 firmware, using a USB disk, and load SmartPAC 2 firmware installed on a replacement Compact Flash (CF) card.

More information

Repetition Structures

Repetition Structures Repetition Structures Chapter 5 Fall 2016, CSUS Introduction to Repetition Structures Chapter 5.1 1 Introduction to Repetition Structures A repetition structure causes a statement or set of statements

More information

Integers and Rational Numbers

Integers and Rational Numbers A A Family Letter: Integers Dear Family, The student will be learning about integers and how these numbers relate to the coordinate plane. The set of integers includes the set of whole numbers (0, 1,,,...)

More information

6.S189 Homework 2. What to turn in. Exercise 3.1 Defining A Function. Exercise 3.2 Math Module.

6.S189 Homework 2. What to turn in. Exercise 3.1 Defining A Function. Exercise 3.2 Math Module. 6.S189 Homework 2 http://web.mit.edu/6.s189/www/materials.html What to turn in Checkoffs 3, 4 and 5 are due by 5 PM on Monday, January 15th. Checkoff 3 is over Exercises 3.1-3.2, Checkoff 4 is over Exercises

More information

CS 051 Homework Laboratory #2

CS 051 Homework Laboratory #2 CS 051 Homework Laboratory #2 Dirty Laundry Objective: To gain experience using conditionals. The Scenario. One thing many students have to figure out for the first time when they come to college is how

More information

Switched-On Schoolhouse 2014 User Guide Reports & Application Functions

Switched-On Schoolhouse 2014 User Guide Reports & Application Functions Switched-On Schoolhouse 2014 User Guide Reports & Application Functions MMVI Alpha Omega Publications, Inc. Switched-On Schoolhouse 2014, Switched-On Schoolhouse. Switched-On, and their logos are registered

More information

Handbook: Carbonite Safe

Handbook: Carbonite Safe 1 Important Things to Know... 4 Carbonite Features... 5 Setting Up and Installing... 6 Starting a Trial... 7 Installing Carbonite for the First Time... 7 Buying a Subscription... 8 Subscription Pricing...

More information

LAB: WHILE LOOPS IN C++

LAB: WHILE LOOPS IN C++ LAB: WHILE LOOPS IN C++ MODULE 2 JEFFREY A. STONE and TRICIA K. CLARK COPYRIGHT 2014 VERSION 4.0 PALMS MODULE 2 LAB: WHILE LOOPS IN C++ 2 Introduction This lab will provide students with an introduction

More information

for Credit is between September 5 and October 3 at midnight.

for Credit is between September 5 and October 3 at midnight. Fall 2017 Human Subjects Sona opens September 5, 2017 Last day to do studies is December 12 at midnight Last day to make changes/corrections is December 17 at midnight Longer BRIEF SUMMARY Prescreen INSTRUCTIONS.

More information

OC Fair Competition Online entry tutorial

OC Fair Competition Online entry tutorial OC Fair Competition Online entry tutorial Read the competion guides for important dates and guidelines regarding your entries at www.ocfair.com/oc-fair/competitions-contests/ The last day to enter most

More information

CS 142 Style Guide Grading and Details

CS 142 Style Guide Grading and Details CS 142 Style Guide Grading and Details In the English language, there are many different ways to convey a message or idea: some ways are acceptable, whereas others are not. Similarly, there are acceptable

More information

Q1: C input/output; operators / 46 Q2: Conditional statements / 34 Q3: While and do-while loops / 20 TOTAL SCORE / 100 Q4: EXTRA CREDIT / 10

Q1: C input/output; operators / 46 Q2: Conditional statements / 34 Q3: While and do-while loops / 20 TOTAL SCORE / 100 Q4: EXTRA CREDIT / 10 EECE.2160: ECE Application Programming Fall 2017 Exam 1 October 4, 2017 Name: Lecture time (circle 1): 8-8:50 (Sec. 201) 12-12:50 (Sec. 203) 1-1:50 (Sec. 202) For this exam, you may use only one 8.5 x

More information

Software Development Pseudocode

Software Development Pseudocode Software Development Pseudocode Software Development: Pseudocode Task 1 Task 1 Students are graded out of 10 for assignments. A+ 10 A 9 B+ 8 B 7 C+ 6 C 5 D+ 4 D 3 E+ 2 E 1 Fail 0 This is the current pseudocode

More information

DRAG RACE Program Manual Firm Ver 2.14

DRAG RACE Program Manual Firm Ver 2.14 DRAG RACE Program Manual Firm Ver 2.14 The Portatree Professional Ultimate Drag Racing Timer (gold box) can be used with an IBM Compatible Personal Computer connected through a Com Port (using a null modem

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

Downloading TurningPoint Software

Downloading TurningPoint Software Clickers Basic Windows Training Session Today s Session 1. Clickers Overview 2. Exercises (Hands On) Downloading TurningPoint Software TurningPoint software is available for free to all University of Iowa

More information

Goals 2000 Grant Project LA Conventions Used In This Manual Normal Windows conventions are used throughout this guide. They include the following:

Goals 2000 Grant Project LA Conventions Used In This Manual Normal Windows conventions are used throughout this guide. They include the following: Classroom Performance System User s Guide http://www.einstruction.com Goals 2000 Grant Project LA Conventions Used In This Manual Normal Windows conventions are used throughout this guide. They include

More information

PA101 Learning the Ropes

PA101 Learning the Ropes Synopsis PA101 Learning the Ropes This first PA is going to be rather unusual. In the upcoming week, you will generally have a single program to write for the whole assignment. This time we are going to

More information

Using the Command Line

Using the Command Line 1 Unit 15 Debugging COMPILATION 2 3 Using the Command Line While it has a GUI interface like your Mac or Windows PC much of its power lies in its rich set of utilities that are most easily run at the command

More information

Intro. to Computing. Lecture 7 Page1

Intro. to Computing. Lecture 7 Page1 1. Read sections 6.1 and 6.2 of the textbook. A function is a procedural abstract, i.e., a named body of code that performs some task when it is called/invoked. Often a function will have one or more parameter

More information

2.) From the set {A, B, C, D, E, F, G, H}, produce all of the four character combinations. Be sure that they are in lexicographic order.

2.) From the set {A, B, C, D, E, F, G, H}, produce all of the four character combinations. Be sure that they are in lexicographic order. Discrete Mathematics 2 - Test File - Spring 2013 Exam #1 1.) RSA - Suppose we choose p = 5 and q = 11. You're going to be sending the coded message M = 23. a.) Choose a value for e, satisfying the requirements

More information

Sona Systems, Ltd. Experiment Management System Master Documentation Set 20 April 2015

Sona Systems, Ltd. Experiment Management System Master Documentation Set 20 April 2015 Sona Systems, Ltd. Experiment Management System Master Documentation Set 20 April 2015 Copyright 2015 Sona Systems, Ltd., All Rights Reserved PARTICIPANT (STUDENT) DOCUMENTATION... 2 Introduction... 2

More information

Course: Honors AP Computer Science Instructor: Mr. Jason A. Townsend

Course: Honors AP Computer Science Instructor: Mr. Jason A. Townsend Course: Honors AP Computer Science Instructor: Mr. Jason A. Townsend Email: jtownsend@pkwy.k12.mo.us Course Description: The material for this course is the equivalent of one to two semesters of an entry

More information

Honors Computer Science Python Mr. Clausen Programs 4A, 4B, 4C, 4D, 4E, 4F

Honors Computer Science Python Mr. Clausen Programs 4A, 4B, 4C, 4D, 4E, 4F PROGRAM 4A Full Names (25 points) Honors Computer Science Python Mr. Clausen Programs 4A, 4B, 4C, 4D, 4E, 4F This program should ask the user for their full name: first name, a space, middle name, a space,

More information

Other Loop Options EXAMPLE

Other Loop Options EXAMPLE C++ 14 By EXAMPLE Other Loop Options Now that you have mastered the looping constructs, you should learn some loop-related statements. This chapter teaches the concepts of timing loops, which enable you

More information

VISUAL GUIDE to. RX Scripting. for Roulette Xtreme - System Designer 2.0. L J Howell UX Software Ver. 1.0

VISUAL GUIDE to. RX Scripting. for Roulette Xtreme - System Designer 2.0. L J Howell UX Software Ver. 1.0 VISUAL GUIDE to RX Scripting for Roulette Xtreme - System Designer 2.0 L J Howell UX Software 2009 Ver. 1.0 TABLE OF CONTENTS INTRODUCTION...ii What is this book about?... iii How to use this book... iii

More information

Unit 3: Rational Numbers ANSWER KEY

Unit 3: Rational Numbers ANSWER KEY Unit : ANSWER KEY The following unit includes: Adding/Subtracting Integers on a Number Line Adding/Subtracting Integers with Rules Multiplying/Dividing Integers Adding/Subtracting Decimals Multiplying

More information

CSC 310 Programming Languages, Spring 2014, Dr. Dale E. Parson

CSC 310 Programming Languages, Spring 2014, Dr. Dale E. Parson CSC 310 Programming Languages, Spring 2014, Dr. Dale E. Parson Assignment 3, Perquacky in Python, due 11:59 PM, Saturday April 12, 2014 I will turn the solution back on Monday April 14, after which I will

More information

CMPSCI 187 / Spring 2015 Hanoi

CMPSCI 187 / Spring 2015 Hanoi Due on Thursday, March 12, 2015, 8:30 a.m. Marc Liberatore and John Ridgway Morrill I N375 Section 01 @ 10:00 Section 02 @ 08:30 1 Contents Overview 3 Learning Goals.................................................

More information

COMP 110 Programming Exercise: Simulation of the Game of Craps

COMP 110 Programming Exercise: Simulation of the Game of Craps COMP 110 Programming Exercise: Simulation of the Game of Craps Craps is a game of chance played by rolling two dice for a series of rolls and placing bets on the outcomes. The background on probability,

More information

Goal Management with Microsoft Outlook. Workbook

Goal Management with Microsoft Outlook. Workbook KELLY PAPER Goal Management with Microsoft Outlook Workbook Microsoft Outlook Tasks can help simplify defining and then prioritizing your goals into executable actions to move you ahead in the task completion

More information

Objectivities. Experiment 1. Lab6 Array I. Description of the Problem. Problem-Solving Tips

Objectivities. Experiment 1. Lab6 Array I. Description of the Problem. Problem-Solving Tips Lab6 Array I Objectivities 1. Using rand to generate random numbers and using srand to seed the random-number generator. 2. Declaring, initializing and referencing arrays. 3. The follow-up questions and

More information

Objectives/Outcomes. Introduction: If we have a set "collection" of fruits : Banana, Apple and Grapes.

Objectives/Outcomes. Introduction: If we have a set collection of fruits : Banana, Apple and Grapes. 1 September 26 September One: Sets Introduction to Sets Define a set Introduction: If we have a set "collection" of fruits : Banana, Apple Grapes. 4 F={,, } Banana is member "an element" of the set F.

More information

Review Chapter 6 in Bravaco. Short Answers 1. This type of method does not return a value. a. null b. void c. empty d. anonymous

Review Chapter 6 in Bravaco. Short Answers 1. This type of method does not return a value. a. null b. void c. empty d. anonymous Assignment 3 Methods Review CSC 123 Fall 2018 Notes: All homework must be submitted via e-mail. All parts of assignment must be submitted in a single e-mail with multiple attachments when required. Notes:

More information

Database Concepts Using Microsoft Access

Database Concepts Using Microsoft Access lab Database Concepts Using Microsoft Access 9 Objectives: Upon successful completion of Lab 9, you will be able to Understand fundamental concepts including database, table, record, field, field name,

More information

St ar 1: : : : : : : : : version 5, modified

St ar 1: : : : : : : : : version 5, modified version 5, modified 08.02.2005 t 3:5 2.5 3:5 5.0 3:5 7.5 4:0 0.0 4:0 2.5 4:0 5.0 4:0 7.5 4:1 0.0 p 50 00 50 00 0 25 0 % 0 25 50 75 100 km 0 25 50 75 100 125 150 175 200 225 1:4 2.6 St ar TABLE OF CONTENT

More information

3.4. FOR-LOOPS 65. for <v a r i a b l e > in < sequence >:

3.4. FOR-LOOPS 65. for <v a r i a b l e > in < sequence >: 3.4. FOR-LOOPS 65 3.4 For-loops In the previous section we looked at while-loops, Python s basic looping structure. There is a second loop construct in Python called a for-loop. This is more specialized.

More information

Tips from the experts: How to waste a lot of time on this assignment

Tips from the experts: How to waste a lot of time on this assignment Com S 227 Spring 2018 Assignment 1 80 points Due Date: Friday, February 2, 11:59 pm (midnight) Late deadline (25% penalty): Monday, February 5, 11:59 pm General information This assignment is to be done

More information

Computer Center. Texas Tech University. Quick Reference Guide For Testing

Computer Center. Texas Tech University. Quick Reference Guide For Testing Computer Center Texas Tech University Quick Reference Guide For Testing Office Hours Monday - Friday, 8 am to 5 pm (Closed Noon-1 pm) (Scanning Hours: 8-11:45; and 1-4:45) Computer Center, 8 th & Boston,

More information

CimCAD Version 15.1 Cimex Corporation

CimCAD Version 15.1 Cimex Corporation CimCAD Version 15.1 Cimex Corporation 80 Daniel Shays Highway Belchertown, MA 01007 USA Phone (413) 323-1090 Fax (413) 323-1096 www.cimexcorp.com E-Mail info@cimexcorp.com CAD Portion of the Program Importing

More information