Finally, a receipt is printed on the screen and, after a pause, the process repeats for the next customer.

Size: px
Start display at page:

Download "Finally, a receipt is printed on the screen and, after a pause, the process repeats for the next customer."

Transcription

1 1 CS 215 Spring 2019 Project 1 (Version 1 Jan 24) Learning Objectives: - implementing an application using if/else and loops - introductory use of file input and output - validating user input and formatting output General Description: Write a program that simulates the action of a gas pump. At startup, the pump reads a file that contains the number of gallons available and price per gallon of three octanes of gas (High, Medium and Low). This information is then printed on the screen. For each customer, the pump starts by displaying a logo and asking the customer if they are a rewards customer or not. If yes, the rewards number is entered and a per-gallon discount is determined. The customer then selects an octane (H/M/L) and enters a number of gallons, or indicates a fill up. For a fill up, an estimate is simulated as a random number of gallons between 1 and 8. If not enough gas is available to satisfy the customer s request, the number of gallons is changed to the amount remaining in the pump and the customer is informed. The pump then simulates dispensing gasoline by printing the amount dispensed on the screen after each ½ gallon is dispensed, reporting approximately every two seconds, until the number of gallons indicated has been dispensed. Finally, a receipt is printed on the screen and, after a pause, the process repeats for the next customer. The pump technician can shut down the pump by entering shutdown to the question Are you a rewards customer? This is a corporate secret and not to be revealed to the customer. On shutdown, the pump reports the gallons of each octane currently available on the screen, then writes this data along with the current prices per gallon to a text file before ending the program. Specifications: General Formatting: - all floating point values should be displayed and written with 2 digits past the decimal point - when prompted for input, there should be at least one space after the prompt so user input is not jammed up with the prompt. Ex: Enter your age: 19 this Enter your age:19 not this!

2 2 Files: - Input File: named pumpin.txt The first line contains three numbers, the number of gallons in the pump s tank of High Octane, Medium Octane and Low Octane, in that order. The second line contains the price per gallon for each octane in the same order. Example: (we are very low on High Octane in this example only 8.9 gallons left!): Output File: named pumpout.txt Contains the same information and format as the input file, reflecting the data at the time the pump is shut down. - Suggestion: Add these two files to the Resource Files section of the Solution Explorer. This is not required, but may make dealing with the files easier. On Startup: The program should read the six values from the input file and display them formatted as shown in this example. The pump s tanks hold a maximum of gallons each, and the price of gas per gallon will be or less. If the program is unable to open the input file, it should display a message Unable to read input file, pause, and exit the program. You may test this by (temporarily) changing the name of the file to something else. Asking if rewards customer: Display a logo as shown. Make up your own name of the gas station, and include your name somewhere in the logo. Ask the user Are you a rewards customer? (Y/N): Valid responses are Y,y,N,n and shutdown. When an invalid response is entered, display Please enter Y or N.and repeat the question. Repeat this until the customer enters a valid answer. Design Hint: note that at this point, one of two options will happen: the program continues with a customer sale, or the shut down is performed and the program ends. This segment of code acts as Input for a Sentinel-Controlled Loop, where the Sentinel Value is shutdown. See more below.

3 3 Asking Rewards Number and Calculating PPG (Price Per Gallon) Discount: If this customer is a rewards customer, ask the customer Enter customer rewards number: You may assume they will enter an integer number. Calculate the PPG discount as the modulus of the customer number by 10 and add 1. This results in a number Divide this result by 100 to get the discount in cents. Example: customer number = % 10 is is / 100 = 0.10 = PPG discount Of course, if the customer is NOT a rewards customer, do not ask them to enter a number and the PPG Discount is Whether a rewards customer or not, print the PPG Discount as shown in the examples. The $ should line up with the customer s input for both Are you a and Enter rewards.. as shown. Also, print a blank line before displaying the prices per gallon in the next section. Displaying Prices Per Gallon: The prices are the standard prices, read from the input file, minus the PPG Discount calculated. Format the price list as shown here. There should be a blank line above and another below the price list. Selecting an Octane: Ask the user Select octane (H/M/L): as shown in the example. Valid entries are H,h,M,m,L, and l. When the user enters an invalid entry, print Please enter H, M or L. Repeat this until the user enters a valid entry. After a valid entry is entered, print a blank line. Getting number of gallons: Ask the user Enter number of gallons (-1 to Fill it up): You may assume the customer will enter an integer or floating point number. When -1 (or any number less than 0) is entered, simulate the number of gallons as a random number between 1 and 8. Use the rand() function, which returns a random number (use modulus to get a number 0 to 7, then add 1). Report this number as detected by a sensor with the message: Sensor reports g gallons needed to fill up, where g is the random number of gallons calculated.

4 4 Check for empty tanks: It is possible this pump is almost empty for some octane of gasoline. The amount in each tank is read when the pump starts. When gasoline is dispensed to a customer, the amount dispensed is subtracted from the tank s current total. If the number of gallons requested is more than is available, give the customer all the remaining supply by changing the number of gallons requested to the amount left in the pump s tank (emptying the tank). Print Sorry, our tank is nearly empty. We only have g gallons available. Note that if the tank is empty, the amount requested will be 0 gallons and the pump will continue delivering 0 gallons at 0 cost. Simulate Pumping Gas: A message on the total number of gallons pumped so far is printed every 2 seconds. The pump pumps ½ gallon every two seconds. Note that the last message should report the original number of gallons requested, and so may not be an equal ½ gallon. One way to get a Visual Studio C++ program to wait (this may not work in other versions of C++) is to use the Sleep(n) function, where n is the number of milliseconds (note the capital S). To use this function, the program must #include <Windows.h> Start with the message Pumping gas... with a blank line before and after the set of messages. Printing a receipt: Format the receipt as shown here, including lining up the values as shown. The octane value printed should NOT be simply H, M or L as originally entered by the user, but should be fully-spelled out as High, Medium or Low. The decimal points for the PPG and total cost should always line up. You may assume no one purchase will exceed $ Feel free to change the text on the Thank You line, but it must have a Thank You line. There should be a pause after printing the receipt. After the pause, the process should repeat for the next customer, staring with printing the logo.

5 5 Shut Down: When the user enters shutdown when asked Are you a rewards customer, the pump performs the following shut down operations and the program ends. It should print the current tank readings (the number of gallons in each of the three tanks) as shown in the example. It should also write the tank readings on one line, and the three price-per-gallon values on a second line, to a file called pumpout.txt See details on files above. Finally, the program prints Pump shut down and then does a pause before the program ends. Style and Grading Rubric: All of this program will be written in the main() function (if you want to divide it into functions, and now how to properly do it, go ahead. But don t forget: NO GLOBAL VARIABLES ALLOWED.EVER!) You should use only coding constructs introduced in this class. If you wish to use other C++ statements, libraries, functions, etc., the instructor for permission! Failure to get permission may result in significant points off your grade. Follow the style rules found on the course website % of your grade will be based on following the style rules. Important: the comments at the top must include the I received help from. section; if it does not, there will be a significant penalty. A general grading rubric will be added to the project on Canvas. It will be used to enter the grade for the project. Submit: You will only need one.cpp file for this project; submit that.cpp file in Canvas. My executable: An executable (proj1.exe) is provided on the course website. It only works on a Windows machine, Version 7 or higher. Your virus protection software may freak out when you try to download this. Hopefully, you are able to tell it to download it anyway. After downloading the.exe, you must also download the pumpin.txt file into the same folder otherwise, the.exe will not be able to find it. Extra Credit: if you find a bug/error in the.exe, be the first to report the problem and earn a couple of extra credit points on the project. Be the first to kwjoiner@cs.uky.edu and report the problem.

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

Note: The buy help from the TA for points will apply on this exam as well, so please read that carefully.

Note: The buy help from the TA for points will apply on this exam as well, so please read that carefully. CS 215 Spring 2018 Lab Exam 1 Review Material: - All material for the course up through the Arrays I slides - Nothing from the slides on Functions, Array Arguments, or Implementing Functions Format: -

More information

LINE BUTTONS LCD SCREEN

LINE BUTTONS LCD SCREEN 4028 7 th Street S.E. Calgary, Alberta T2G-2Y8 Phone: (403) 243-1425 Fax: (403) 243-6577 Toll Free: 1-800-921-ACCU (2228) Email: sales@accuflo.com OPERATING INSTRUCTIONS - DETAILED SECTION ONE General

More information

CS 111X - Fall Test 1

CS 111X - Fall Test 1 CS 111X - Fall 2016 - Test 1 1/9 Computing ID: CS 111X - Fall 2016 - Test 1 Name: Computing ID: On my honor as a student, I have neither given nor received unauthorized assistance on this exam. Signature:

More information

CS 111X - Fall Test 1 - KEY KEY KEY KEY KEY KEY KEY

CS 111X - Fall Test 1 - KEY KEY KEY KEY KEY KEY KEY CS 111X - Fall 2016 - Test 1 1/9 Computing ID: CS 111X - Fall 2016 - Test 1 - KEY KEY KEY KEY KEY KEY KEY Name: Computing ID: On my honor as a student, I have neither given nor received unauthorized assistance

More information

CS 215 Spring 2018 Project 2

CS 215 Spring 2018 Project 2 1 CS 215 Spring 2018 Project 2 Learning Objectives: - Use of parallel arrays to store data - Writing functions from a detailed design document - Reading data from files and writing data to files - More

More information

Learning Objectives: General Description: DONE DONE Structure Chart

Learning Objectives: General Description: DONE DONE Structure Chart 1 CS 215 Fall 2017 Project 2: Grade Calculator Due October 9 @ midnight Version 2.1 Published 9/24 changes in Red [DUE DATE changed 10/3] Learning Objectives: - Developing a C++ program using the Procedure-Oriented

More information

Example 2: Simplify each of the following. Round your answer to the nearest hundredth. a

Example 2: Simplify each of the following. Round your answer to the nearest hundredth. a Section 5.4 Division with Decimals 1. Dividing by a Whole Number: To divide a decimal number by a whole number Divide as you would if the decimal point was not there. If the decimal number has digits after

More information

CS 1803 Individual Homework 1 Python Practice Due: Wednesday, January 26th, before 6 PM Out of 100 points

CS 1803 Individual Homework 1 Python Practice Due: Wednesday, January 26th, before 6 PM Out of 100 points CS 1803 Individual Homework 1 Python Practice Due: Wednesday, January 26th, before 6 PM Out of 100 points Files to submit: 1. HW1.py This is an INDIVIDUAL assignment! Collaboration at a reasonable level

More information

Before you dive into learning how to use Sage Timeslips, performing a

Before you dive into learning how to use Sage Timeslips, performing a In This Chapter Chapter 1 Set ting Up Sage Timeslips Reviewing the billing process in Sage Timeslips Creating a database Setting preferences Understanding the restrictions for network users Before you

More information

CS 1803 Pair Homework 3 Calculator Pair Fun Due: Wednesday, September 15th, before 6 PM Out of 100 points

CS 1803 Pair Homework 3 Calculator Pair Fun Due: Wednesday, September 15th, before 6 PM Out of 100 points CS 1803 Pair Homework 3 Calculator Pair Fun Due: Wednesday, September 15th, before 6 PM Out of 100 points Files to submit: 1. HW3.py This is a PAIR PROGRAMMING Assignment: Work with your partner! For pair

More information

CMPE 180A Data Structures and Algorithms in C++ Spring 2018

CMPE 180A Data Structures and Algorithms in C++ Spring 2018 San José State University Department of Computer Engineering CMPE 180A Data Structures and Algorithms in C++ Spring 2018 Assigned: Thursday, April Due: Thursday, April 12 at :30 PM Canvas: Assignment #10.

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

Lassus Mobile Pay Customer FAQ!

Lassus Mobile Pay Customer FAQ! Lassus Mobile Pay Customer FAQ! LASSUS MOBILE PAY OVERVIEW... 2 What is Lassus Mobile Pay?... 2 What is the Instant Gas Discount program?... 2 Is my phone supported?... 2 Is the Mobile App secure?... 2

More information

Setting up and Connecting to a MSSQL database

Setting up and Connecting to a MSSQL database Setting up and Connecting to a MSSQL database Setting Up MSSQL... 1 SQL Server Instance... 1 Why do we need socdbconnect and socadminuser?... 1 On the Client... 1 Creating an ODBC Data Source... 1 Setting

More information

CpSc 1111 Lab 6 Conditional Statements, Loops, the Math Library, and Random Numbers What s the Point?

CpSc 1111 Lab 6 Conditional Statements, Loops, the Math Library, and Random Numbers What s the Point? CpSc 1111 Lab 6 Conditional Statements, Loops, the Math Library, and Random Numbers What s the Point? Overview For this lab, you will use: one or more of the conditional statements explained below scanf()

More information

Volume AGKSOFT. Gilbarco Passport Back Office Software. Gilbarco Passport Guide

Volume AGKSOFT. Gilbarco Passport Back Office Software. Gilbarco Passport Guide Volume P AGKSOFT Gilbarco Passport Back Office Software Gilbarco Passport Guide Introduction T he Gilbarco Passport can be connected to your Windows PC using a straight CAT5/RJ45 cable cable connected

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

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

CS 1803 Pair Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 29th, before 6 PM Out of 100 points

CS 1803 Pair Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 29th, before 6 PM Out of 100 points CS 1803 Pair Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 29th, before 6 PM Out of 100 points Files to submit: 1. HW4.py This is a PAIR PROGRAMMING Assignment: Work with your partner!

More information

Reading: Davies , 8.3-4, , MSP430x55xx User's Guide Ch. 5,17

Reading: Davies , 8.3-4, , MSP430x55xx User's Guide Ch. 5,17 ECE2049 Homework #3 Clocks & Timers (Due Tuesday 9/19/17 At the BEGINNING of class) Your homework should be neat and professional looking. You will loose points if your HW is not properly submitted (by

More information

(the bubble footer is automatically inserted in this space)

(the bubble footer is automatically inserted in this space) Page 1 of 8 Name: Email ID: CS 216 Midterm 2 You MUST write your name and e mail ID on EACH page and bubble in your userid at the bottom of EACH page including this page. If you do not do this, you will

More information

Condition Controlled Loops. Introduction to Programming - Python

Condition Controlled Loops. Introduction to Programming - Python + Condition Controlled Loops Introduction to Programming - Python + Repetition Structures n Programmers commonly find that they need to write code that performs the same task over and over again + Example:

More information

[Page 177 (continued)] a. if ( age >= 65 ); cout << "Age is greater than or equal to 65" << endl; else cout << "Age is less than 65 << endl";

[Page 177 (continued)] a. if ( age >= 65 ); cout << Age is greater than or equal to 65 << endl; else cout << Age is less than 65 << endl; Page 1 of 10 [Page 177 (continued)] Exercises 4.11 Identify and correct the error(s) in each of the following: a. if ( age >= 65 ); cout

More information

Math Released Item Grade 7. Grid Coordinates of a Square VH225469

Math Released Item Grade 7. Grid Coordinates of a Square VH225469 Math Released Item 2018 Grade 7 Grid Coordinates of a Square VH225469 Anchor Set A1 A8 With Annotations Prompt Score Description VH225469 Rubric Part A 2 Student response includes the following 2 Reasoning

More information

CS 453 Electronic Commerce Technologies. Homework # 4 PHP-based E-Store

CS 453 Electronic Commerce Technologies. Homework # 4 PHP-based E-Store CS 453 Electronic Commerce Technologies Homework # 4 PHP-based E-Store Due: Monday, August 3, by 8pm that evening via electronic submission Credit: 100 points Instructions: You may work in teams of up

More information

Soda Machine Laboratory

Soda Machine Laboratory Soda Machine Laboratory Introduction This laboratory is intended to give you experience working with multiple queue structures in a familiar real-world setting. The given application models a soda machine

More information

Using C++, design an Abstract Data Type class named MyGrades. The class must have the following private members :

Using C++, design an Abstract Data Type class named MyGrades. The class must have the following private members : Programming Assignment - 3 Due Date : Section 2 - Monday October 1 st, 2018 - No Later than 12:45 pm Using C++, design an Abstract Data Type class named MyGrades. The class must have the following private

More information

Data Import Guide DBA Software Inc.

Data Import Guide DBA Software Inc. Contents 3 Table of Contents 1 Introduction 4 2 Data Import Instructions 5 3 Data Import - Customers 10 4 Data Import - Customer Contacts 16 5 Data Import - Delivery Addresses 19 6 Data Import - Suppliers

More information

SitelokTM. Stripe Plugin V1.5

SitelokTM. Stripe Plugin V1.5 SitelokTM Stripe Plugin V1.5 Sitelok Stripe Plugin Manual Copyright 2015-2018 Vibralogix. All rights reserved. This document is provided by Vibralogix for informational purposes only to licensed users

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

How to make a Work Profile for Windows 10

How to make a Work Profile for Windows 10 How to make a Work Profile for Windows 10 Setting up a new profile for Windows 10 requires you to navigate some screens that may lead you to create the wrong type of account. By following this guide, we

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

Project 3: RPN Calculator

Project 3: RPN Calculator ECE267 @ UIC, Spring 2012, Wenjing Rao Project 3: RPN Calculator What to do: Ask the user to input a string of expression in RPN form (+ - * / ), use a stack to evaluate the result and display the result

More information

IT 220 Course Notes. Don Colton Brigham Young University Hawaii

IT 220 Course Notes. Don Colton Brigham Young University Hawaii IT 220 Course Notes Don Colton Brigham Young University Hawaii January 7, 2010 Contents 0 Preface 3 0.1 Why This Class?......................... 3 0.2 Expectations........................... 4 0.3 Basic

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

Maintenance OVERVIEW. 2 STARTUP 3 GETTING STARTED / SYSTEM BACKUPS. 4 SYSTEM USERS.. 5

Maintenance OVERVIEW. 2 STARTUP 3 GETTING STARTED / SYSTEM BACKUPS. 4 SYSTEM USERS.. 5 Maintenance Getting Started Security General Maintenance OVERVIEW. 2 STARTUP 3 GETTING STARTED / SYSTEM BACKUPS. 4 SYSTEM USERS.. 5 PREFERENCES 6 STATION. 9 ORGANIZATION ( CHARITY )... 9 SESSION. 10 SESSION

More information

CpSc 1011 Lab 4 Formatting and Flow Control Windchill Temps

CpSc 1011 Lab 4 Formatting and Flow Control Windchill Temps CpSc 1011 Lab 4 Formatting and Flow Control Windchill Temps Overview By the end of the lab, you will be able to: use fscanf() to accept inputs from the user and use fprint() for print statements to the

More information

CpSc 1111 Lab 4 Part a Flow Control, Branching, and Formatting

CpSc 1111 Lab 4 Part a Flow Control, Branching, and Formatting CpSc 1111 Lab 4 Part a Flow Control, Branching, and Formatting Your factors.c and multtable.c files are due by Wednesday, 11:59 pm, to be submitted on the SoC handin page at http://handin.cs.clemson.edu.

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

Chapter 5 : Repetition (pp )

Chapter 5 : Repetition (pp ) Page 1 of 41 Printer Friendly Version User Name: Stephen Castleberry email Id: scastleberry@rivercityscience.org Book: A First Book of C++ 2007 Cengage Learning Inc. All rights reserved. No part of this

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

CS 2316 Individual Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 18th, before 11:55 PM Out of 100 points

CS 2316 Individual Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 18th, before 11:55 PM Out of 100 points CS 2316 Individual Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 18th, before 11:55 PM Out of 100 points Files to submit: 1. HW4.py This is an INDIVIDUAL assignment! Collaboration at a

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

Execu/Tech Systems, Inc. Handheld Inventory Manual P a g e 1

Execu/Tech Systems, Inc. Handheld Inventory Manual P a g e 1 Execu/Tech Systems, Inc. Handheld Inventory Manual P a g e 1 Execu/Tech Systems, Inc. Handheld Inventory Manual P a g e 2 Contents Important Notes... 3 Requirements and Software Installation... 4-5 Starting

More information

INTI COLLEGE MALAYSIA

INTI COLLEGE MALAYSIA CSC 107 (F) / Page 1 of 6 INTI COLLEGE MALAYSIA COMPUTING AND INFORMATION TECHNOLOGY CERTIFICATE CSC 107 : PROGRAMMING IN C (BASED ON AB) FINAL EXAMINATION : AUGUST 2000 SESSION This paper consists of

More information

Contents. Welcome Product Searches Product Description Item Category Search Buying History Quick Order Pad...

Contents. Welcome Product Searches Product Description Item Category Search Buying History Quick Order Pad... The User s Guide Contents Welcome... 2 Product Searches... 7 Product Description... 7 Item Category Search... 9 Buying History... 12 Quick Order Pad... 15 Completing Your Purchase Online... 17 Reporting...

More information

Best Practices for Using Assignments and Submitting Assignments

Best Practices for Using Assignments and Submitting Assignments and Submitting WHY WOLD YOU USE THIS FEATURE? Instructors can place assignments in any of the content areas within a course, such as Course Documents or. In this tutorial you will learn how to access an

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

CashDro.exe to integrations by files with CashDro3 and CashDro5

CashDro.exe to integrations by files with CashDro3 and CashDro5 CashDro.exe to integrations by files with CashDro3 and CashDro5 Configuration Manual Copyright This publication, including pictures, illustrations and software, is protected by the international property

More information

TradeGuider RT V4 Quick Install Guide.

TradeGuider RT V4 Quick Install Guide. TradeGuider RT V4 Quick Install Guide. The objective of this guide is to get the software installed and up and running with one of the data providers. Pre-requisites. The TradeGuider RT software does not

More information

CONDITION CONTROLLED LOOPS. Introduction to Programming - Python

CONDITION CONTROLLED LOOPS. Introduction to Programming - Python CONDITION CONTROLLED LOOPS Introduction to Programming - Python Generating Random Numbers Generating a random integer Sometimes you need your program to generate information that isn t available when you

More information

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING PROGRAMMING TECHNIQUES I EE271

DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING PROGRAMMING TECHNIQUES I EE271 UNIVERSITY OF SWAZILAND FACULTY OF SCIENCE AND ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING MAIN EXAMINATION: 2015 TITLE OF PAPER: COURSE NUMBER: TIME ALLOWED: PROGRAMMING TECHNIQUES

More information

Dealer Extranet 3 Orders User Guide. 24/11/2016 DE3 Orders User Guide UK/Etrading/Version 7

Dealer Extranet 3 Orders User Guide. 24/11/2016 DE3 Orders User Guide UK/Etrading/Version 7 Dealer Extranet 3 Orders User Guide 1 Contents: Processing an Order - Options 3 Search Bar 4 Configurator 5 Quick Order 6 Quick Order spares & non standard products 7 Favourites 8-9 Process an order from

More information

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch Purpose: We will take a look at programming this week using a language called Scratch. Scratch is a programming language that was developed

More information

Introduction to Computer Science, Winter Term Practice Assignment 3 Discussion:

Introduction to Computer Science, Winter Term Practice Assignment 3 Discussion: German University in Cairo Faculty of Media Engineering and Technology Prof. Dr. Slim Abdennadher Dr. Rimon Elias Introduction to Computer Science, Winter Term 2013-2014 Practice Assignment 3 Discussion:

More information

Assignment 4. Overview. Prof. Stewart Weiss. CSci 335 Software Design and Analysis III Assignment 4

Assignment 4. Overview. Prof. Stewart Weiss. CSci 335 Software Design and Analysis III Assignment 4 Overview This assignment combines several dierent data abstractions and algorithms that we have covered in class, including priority queues, on-line disjoint set operations, hashing, and sorting. The project

More information

Weight Extended by Line Item with Order Total PO-1038

Weight Extended by Line Item with Order Total PO-1038 Weight Extended by Line Item with Order Total PO-1038 Overview This Extended Solution to the MAS 90 MAS 200 Purchase Order module adds six display only fields in a new window which will display from the

More information

Introduction to Blackboard. Academic Technology & Distance Learning Department

Introduction to Blackboard. Academic Technology & Distance Learning Department Introduction to Blackboard Academic Technology & Distance Learning Department Fall 2013 Spring 2014 LANK ACADEMIC TECHNOLOGY & DISTANCE LEARNING DEPARTMENT Support and FAQs: http://www.ccsnh.edu/academics/online-learning-blackboard

More information

CMSC 201 Spring 2017 Homework 4 Lists (and Loops and Strings)

CMSC 201 Spring 2017 Homework 4 Lists (and Loops and Strings) CMSC 201 Spring 2017 Homework 4 Lists (and Loops and Strings) Assignment: Homework 4 Lists (and Loops and Strings) Due Date: Friday, March 3rd, 2017 by 8:59:59 PM Value: 40 points Collaboration: For Homework

More information

CMSC 201 Spring 2019 Lab 06 Lists

CMSC 201 Spring 2019 Lab 06 Lists CMSC 201 Spring 2019 Lab 06 Lists Assignment: Lab 06 Lists Due Date: Thursday, March 7th by 11:59:59 PM Value: 10 points This week s lab will put into practice the concepts you learned about lists: indexing,

More information

Spring CS Homework 12 p. 1. CS Homework 12

Spring CS Homework 12 p. 1. CS Homework 12 Spring 2018 - CS 111 - Homework 12 p. 1 Deadline 11:59 pm on Friday, May 4, 2018 Purpose CS 111 - Homework 12 To practice with sentinel- and question-controlled loops, file input and file output, and writing

More information

[ Getting Started with Analyzer, Interactive Reports, and Dashboards ] ]

[ Getting Started with Analyzer, Interactive Reports, and Dashboards ] ] Version 5.3 [ Getting Started with Analyzer, Interactive Reports, and Dashboards ] ] https://help.pentaho.com/draft_content/version_5.3 1/30 Copyright Page This document supports Pentaho Business Analytics

More information

Eat & Earn Rewards Program

Eat & Earn Rewards Program Eat & Earn Rewards Program TABLE OF CONTENTS Eat & Earn Rewards Program Overview................................. 3 Introduction.....................................................5 VeriFone Terminal

More information

CHARMS ASSIGNMENT. Complete by Tuesday, 9/4 100 points!

CHARMS ASSIGNMENT. Complete by Tuesday, 9/4 100 points! CHARMS ASSIGNMENT Complete by Tuesday, 9/4 100 points! Charms is a web-based management system for music teachers. One of the great features of Charms is its ability to make it easy and efficient for me

More information

CS 352 : MIPS & Amicable Numbers

CS 352 : MIPS & Amicable Numbers CS 352 : MIPS & Amicable Numbers 1 MARS You will be using the MIPS Assembler and Runtime Simulator (MARS) for this lab assignment. Download: http://courses.missouristate.edu/kenvollmar/mars/download.htm

More information

CS 101, Spring 2016 March 22nd Exam 2

CS 101, Spring 2016 March 22nd Exam 2 CS 101, Spring 2016 March 22nd Exam 2 Name: Question 1. [3 points] Which of the following loop statements would most likely cause the loop to execute exactly n times? You may assume that n will be set

More information

1. Starting Out. 2. Selecting the State, Category and Study Method. User s Guide for AES Online CE Courses Version 1

1. Starting Out. 2. Selecting the State, Category and Study Method. User s Guide for AES Online CE Courses Version 1 1. Starting Out To access the AES online course list, navigate to our homepage at www.amedsys.com. From here, you will select the order button in the sidebar box titled Online Insurance Continuing Education.

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

Table of Contents ProFuel User Manual

Table of Contents ProFuel User Manual Table of Contents ProFuel Reference Manual Version 3.0 Page 2 Table of Contents Table of Contents INTRODUCTION...6 System Requirements...8 Loading and Initialization...8 Registration...8 Installing on

More information

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals VARIABLES WHAT IS A VARIABLE? A variable is a storage location in the computer s memory, used for holding information while the program is running. The information that is stored in a variable may change,

More information

Programming Project 1

Programming Project 1 Programming Project 1 Handout 6 CSCI 134: Fall, 2016 Guidelines A programming project is a laboratory that you complete on your own, without the help of others. It is a form of take-home exam. You may

More information

Using Canvas to take a Class

Using Canvas to take a Class Using Canvas to take a Class Introduction The Canvas Learning Management System (LMS) is used to host a number of classes at Fullerton College. In order to use Canvas you should learn some fundamental

More information

MPMA Compliance Training

MPMA Compliance Training Introduction This is a training manual for the MPMA Compliance management system. This manual will be updated from time to time, and you will be able to access the most current manual online on the "System

More information

CpSc 1111 Lab 5 Formatting and Flow Control

CpSc 1111 Lab 5 Formatting and Flow Control CpSc 1111 Lab 5 Formatting and Flow Control Overview By the end of the lab, you will be able to: use fscanf() to accept a character input from the user execute a basic block iteratively using loops to

More information

Variables, Data Types, and Arithmetic Expressions Learning Objectives:

Variables, Data Types, and Arithmetic Expressions Learning Objectives: Variables, Data Types, and Arithmetic Expressions Learning Objectives: Printing more than one variable in one printf() Printing formatting characters in printf Declaring and initializing variables A couple

More information

CPSC 217 Assignment 3

CPSC 217 Assignment 3 CPSC 217 Assignment 3 Due: Monday November 23, 2015 at 12:00 noon Weight: 7% Sample Solution Length: 135 lines, including some comments (not including the provided code) Individual Work: All assignments

More information

The Algrech Photo Store

The Algrech Photo Store The Algrech Photo Store A Walk-Through (names removed) December 2016 1. Visit http://cosc304.ok.ubc.ca/group14/camera/store/ SITE WALK-THROUGH 1 2. Type Canon into the search bar and press ENTER. 3. Change

More information

Sales Station Mobile User Guide

Sales Station Mobile User Guide Sales Station Mobile User Guide Doubleknot, Inc. 20665 Fourth Street, Suite 103 Saratoga, California 95070 Telephone: (408) 971-9120 Email: doubleknot@doubleknot.com SSM-OPS-UG-1.0 2016 Doubleknot, Inc.

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

ITEC136 - Lab 2 Population

ITEC136 - Lab 2 Population ITEC136 - Lab 2 Population Purpose To assess your ability to apply the knowledge and skills developed up though week 7. Emphasis will be placed on the following learning outcomes: 1. Decompose a problem

More information

Spring 2017 CMSC 140 Programming Project 7: Payroll

Spring 2017 CMSC 140 Programming Project 7: Payroll Spring 2017 CMSC 140 Programming Project 7: Payroll Concepts tested by the program: 1. Working with arrays 2. Using file operations 3. Using a selection sort to sort parallel arrays 4. Using a binary search

More information

Ex: If you use a program to record sales, you will want to remember data:

Ex: If you use a program to record sales, you will want to remember data: Data Variables Programs need to remember values. Ex: If you use a program to record sales, you will want to remember data: A loaf of bread was sold to Sione Latu on 14/02/19 for T$1.00. Customer Name:

More information

Project 1 - Battleship Game

Project 1 - Battleship Game Project 1 - Battleship Game Minimal Submission Due: Friday, December 22 th, 2006 Revision History Final Project Due: Sunday, January 21 th, 2007 Dec 7th, 2006, v1.0: Initial revision for faculty review.

More information

CS 215 Spring 2018 Project 3 Learning Objective: - Implementing software using Object-Oriented Programming, including use of classes/objects.

CS 215 Spring 2018 Project 3 Learning Objective: - Implementing software using Object-Oriented Programming, including use of classes/objects. 1 CS 215 Spring 2018 Project 3 Learning Objective: - Implementing software using Object-Oriented Programming, including use of classes/objects. General Description: In the days before images and videos

More information

Programming Style Guide v1.1

Programming Style Guide v1.1 Oregon State University Intro to programming Source Code Style Guide Modified from: OREGON INSTITUTE OF TECHNOLOGY COMPUTER SYSTEMS ENGINEERING TECHNOLOGY Modified by: Joseph Jess Programming Style Guide

More information

Maintenance and Fuel log Overview Learn how the maintenance and fuel log works

Maintenance and Fuel log Overview Learn how the maintenance and fuel log works Maintenance and Fuel log Overview Learn how the maintenance and fuel log works MAINTENANCE AND FUEL LOG OVERVIEW The maintenance and fuel log are the key functions of the system that allow you to enter

More information

2017/12/20 20:31 1/6 Lab 1 - Producer/Consumer in XINU

2017/12/20 20:31 1/6 Lab 1 - Producer/Consumer in XINU 2017/12/20 20:31 1/6 Lab 1 - Producer/Consumer in XINU Lab 1 - Producer/Consumer in XINU DUE: Tuesday, September 6th 11:59 PM Objectives By the end of this lab students will be able to: Understand how

More information

FAU. How do I. Post course content? Folders

FAU. How do I. Post course content? Folders How do I Post course content? Content is made up of folders, files, links, and assessments (this will be covered on page ## or see separate documentation). It is basically anything you want to share with

More information

Speedy Claims CMS 1500 Manual 2009 SpeedySoft USA, Inc.

Speedy Claims CMS 1500 Manual 2009 SpeedySoft USA, Inc. Speedy Claims CMS 1500 Manual Speedy Claims CMS 1500 User Manual by SpeedySoft USA, Inc. The Speedy Claims for CMS 1500 software is very easy to use. This manual will show you how to most effectively

More information

COP4530 Data Structures, Algorithms and Generic Programming Recitation 3 Date: January 20 & 22, 2009

COP4530 Data Structures, Algorithms and Generic Programming Recitation 3 Date: January 20 & 22, 2009 COP4530 Data Structures, Algorithms and Generic Programming Recitation 3 Date: January 20 & 22, 2009 Lab objectives: 1) Quiz 2) Set up SSH to run external programs. 3) Learn how to use the DDD debuger.

More information

Barchard Introduction to SPSS Marks

Barchard Introduction to SPSS Marks Barchard Introduction to SPSS 21.0 3 Marks Purpose The purpose of this assignment is to introduce you to SPSS, the most commonly used statistical package in the social sciences. You will create a new data

More information

CONTENTS DCTV USER GUIDE

CONTENTS DCTV USER GUIDE CONTENTS Remote Controls Guide 3-6 Recording a Series from the Guide 7-8 Watch a Recorded Program 8-9 Reminders 9-10 Create a Favorites List 10-11 Working With Multiple Streams 12 My Phone Menu 13 Parental

More information

Benchmark Excel 2010 Level 1, Chapter 8 Rubrics

Benchmark Excel 2010 Level 1, Chapter 8 Rubrics Benchmark Excel 2010 Level 1, Chapter 8 Rubrics Note that the following are suggested rubrics. Instructors should feel free to customize the rubric to suit their grading standards and/or to adjust the

More information

Customer Instructions BookScanner2 App

Customer Instructions BookScanner2 App Customer Instructions BookScanner2 App 2 022017 BookScanner2 App TABLET Set Up You have been provided with a point-of-sale system comprising of a tablet, Bluetooth scanner, Bluetooth printer, credit card

More information

What will you learn: A better understanding of 3 D space How to use keyframes Designing and planning an animation How to render animations

What will you learn: A better understanding of 3 D space How to use keyframes Designing and planning an animation How to render animations Intro to Blender Introductory Animation Shane Trautsch Crestwood High School Welcome Back! Blender can also be used for animation. In this tutorial, you will learn how to create simple animations using

More information

Multiplying and Dividing by Powers of 10

Multiplying and Dividing by Powers of 10 Multiplying and Dividing by Powers of 10 1.) Complete stations A-F around the room. Copy each problem and answer it below. Problem A B C D E F Answer = = = = = = 2.) Where is the decimal point in a whole

More information

CS2500 Exam 2 Fall 2014

CS2500 Exam 2 Fall 2014 CS2500 Exam 2 Fall 2014 Name: Husky email id: Section (Ahmed/Lerner/Razzaq/Shivers): Write down the answers in the space provided. You may use the usual primitives and expression forms, including those

More information

CS61C Machine Structures. Lecture 4 C Pointers and Arrays. 1/25/2006 John Wawrzynek. www-inst.eecs.berkeley.edu/~cs61c/

CS61C Machine Structures. Lecture 4 C Pointers and Arrays. 1/25/2006 John Wawrzynek. www-inst.eecs.berkeley.edu/~cs61c/ CS61C Machine Structures Lecture 4 C Pointers and Arrays 1/25/2006 John Wawrzynek (www.cs.berkeley.edu/~johnw) www-inst.eecs.berkeley.edu/~cs61c/ CS 61C L04 C Pointers (1) Common C Error There is a difference

More information

LAB 4.1 Relational Operators and the if Statement

LAB 4.1 Relational Operators and the if Statement LAB 4.1 Relational Operators and the if Statement // This program tests whether or not an initialized value of num2 // is equal to a value of num1 input by the user. int main( ) int num1, // num1 is not

More information