Laboratory Activity 5: First Look at Classes

Size: px
Start display at page:

Download "Laboratory Activity 5: First Look at Classes"

Transcription

1 Laboratory Activity 5: First Look at Classes 1 Introduction The software company that you have been working for has asked you to developing a program that will be used by a Car Dealer. As the first stage of this project, you have been assigned to create a Car class that will contain the basic information about all the cars that the Dealers sells. Another person in your company will develop the GUI interface application that will extensively use your Car class (like a soap opera on TV, there will be a future drama here and you will eventually do the GUI too, but this is later in this semester, not in today s episode ). While this GUI is not ready, you will be testing your class in a terminal window type program that you must develop yourself. 2 Main Features of a Car When creating a new class, like a Car, you need to ask the customer what are the major features that they want to have in a car, so that we can translate those features into a program/class. It is important to have an open channel with the customer in the initial phase of your project, so that when you finally deliver your product to the customer they are hopefully satisfied with the product and there are no unpleasant surprises, such as it is not what we were expecting. After few meetings with the customer, the following list of car features are expected to be handled by your application: Price Color Model Accessories Each of the features above have different values, depending on the car model. This Car Dealer only works with Corolla, Camry, and Sienna cars. And for each of those car models, this dealer works only with a selection of built years, colors, and accessories, as shown in Section 3 on the next page.

2 3 Types of Cars normally found in the Car Dealer store Your program shall allow the dealer to create the following cars Year Range: Price Range: $18000 $20000 Available Colors: Black, Blue Accessories: none Car Model: Camry Year Range: Price Range: $20000 $22000 Available Colors: Red, White Year Range: Price Range: $25000 $30000 Available Colors: Silver, Black Standard Accessories: Media Player, heated seat 4 Code Development The Car Dealer application that you are about to develop has two main parts: a Java Class called Car, which will contain all the fields (car characteristics) discussed in Section 2, and a main program that will use this Car class to create car objects (the actual cars for sale). Remember that the Car class is just a blue print of a car; the car object can be created by using this blue print with the command that involves the new keyword. 4.1 Create Your Netbeans Project As you have done multiple times already in this course, create a new NetBeans project called CarDealerApp. Before start coding inside the CarDealerApp java file itself, let s first create a Car Class (see Section 4.2 below), since the CarDealerApp uses the Car class to create new car objects. 4.2 Create the Car Class inside the CarDealerApp In the project, create a new Java Class called Car. To do so, right click your mouse when its pointer is on your program source package (if you have used CarDealerApp as your project name, then your package name should cardealerapp. Right click on that package) >> New >> Java Class and then name this new class as Car >> Finish.

3 4.2.1 Create the class fields In this class, create class fields (variables) that will hold the Car Model, year, price, available colors, default color, standard accessories, and optional accessories. Think about their types when creating these fields. Just to practice our understanding about using Java arrays, please use arrays when defining ranges, such as price range: double[] pricerange; // where the first item would hold the lowest value and the second item the highest value in the range. Do the same for colors, accessories, and build year ranges shown in Section Create the class methods As part of our pursue of happiness, opss I mean the pursue of data encapsulation, create setters and getters for all the class fields. Sections and discuss details of these methods The setter methods The following setter methods shall be created in the Car class. setcolor() can only change the car color is the new color requested is one of the available colors for the given car model, e.g., for Camry only Red and White colors are acceptable when requesting a car color change. However this list of color changes for Corolla and Siena. Your code implementation should handle these differences. setyear(): the Dealer had told you that they deal with cars only certain range of year built, and this range change based on the car model, therefore your setyear() must reflect/check/validate that. setprice(): same comment as in setyear(). setaccessories():same comment as in setyear() The getter methods Very similar to the getters, however the getters just return info while the setters set data into a given Car object Create a Car Constructor For this exercise, you are required to create only the non default constructor (i.e., the constructor that takes input arguments). This constructor will require the following inputs: type of car, its color, built year, and its tag price. Here is an example of the command to create a new Car object from within the CarDealerApp: Car car01 = new Car("Corolla", 2016, 18500, "Blue"); Create a printinfo() Method A method called printinfo() shall be created. When this method is called, it shall print the car info into the terminal window, as shown in the example below. Built Year: 2015 Tag Price: $15000

4 4.3 CarDealerApp Implementation Now that you have created the Car Class, it is time to work in the CarDealerApp file. Sections through give details on what needs to be done Current Available Car for Sale The CarDealerApp shall create cars that the dealer currently has for sale. The table below contains all the information you need. In a real application, this info would come from a text file, or database, or GUI. For this lab you will hard code the creation of those elements (so that every time we run this program we will get the same results). Create the cars in the same manner as shown in Section Car ID Car 01 Car 02 Car 03 Car 04 Car 05 Model Corolla Corolla Camry Camry Sienna Year Asked Price Color Blacl Blue Red White Silver Make an array of Available Cars Make an array of available cars. The process of creating an array of Cars is very similar to the way of creating an array of integers or doubles. Your app will use this array to print out the cars that are currently available in the Car Dealer Store by looping over the array General App functionality After your program creates the 5 cars listed in the Table above (in the background, the user wouldn t see it), your app shall present a menu in the terminal window as shown below: Choose Option: 1: list of available cars 2: Choose car 3: Exit Where: choosing 1 makes the application to show all the available cars in the dealer store, choosing 2 makes the application to prompt the user to select one of the available cars (1 for the first, 2 for the second, etc.); and 3 will exit the application Buying a given car If the buyer select option 2 above, and select a given car, let s say the first one in the table in Section 4.3.1, the app then will display the car features as shown below: Year: 2016 Price: $18500 Accessories: none And then it should prompt the user the following question: Make your best offer. If the offer is in the price range shown in Section 3.0, then accept it and make the deal; otherwise tell the customer to make a better offer and provide the allowed price range for them. Keep asking until either the user enters a price in the car range price or if the user enters 1.

5 4.3.5 General Application Checks While creating the main application, if the programmer tries to create a car outside the ranges of the Table shown in the Section 3.0, your Car class should complain about it and for now let s make the program to quit after issuing a meaningful error message. For this lab, your application should check for valid color, year, color, and tag price when the car is created. Remember that those features are car model dependent, e.g., valid colors for one car model, such as Corolla, are different for Camry and Sienna cars. Their specific ranges are given in the Table shown in Section 3. 5 Testing the Application It is imperative that you, as a developer, exhaustively test your application, verifying that it performs as intended. Sections 5.1 to 5.X describe the minimum tests and acceptance criteria for this application. 5.1 Test 01: Listing Available Cars for Sale If the user selects option 1 list of available cars), your application should print the following output: Built Year: 2016 Tag Price: Accessories: None Tag Price: Color: Blue Accessories: None Car Model: Camry Built Year: 2016 Tag Price: Color: Red Car Model: Camry Built Year: 2015 Tag Price: Color: White Tag Price: Color: Silver Accessories: Media Player, Heated Seats

6 5.2 Test 02: Bad Car Model In the CarDealerApp, place this command Car car01 = new Car("Rav4", 2016, 18500, "Black"); The CarDealerApp shall error off with a meaningful message, such as: This dealer doesn't work with this car model: Rav4 5.3 Test 03: Bad Built Year, Price, and Color In the CarDealerApp, place this command Car car01 = new Car("Corolla", 2000, 10, "Orange"); The CarDealerApp shall error off with a meaningful message for each of those invalid values: This dealer doesn't work with this car model: Rav4 Note: instead of creating a single Car object with all possible errors, you can test your app by creating multiple cars, and in each of them you place just one invalid value. It is up to you. Example: If you create a car using the following command: Car car07 = new Car("Corolla", 2000, 100, "Green"); Your app should issue the following warning messages: Unfortunately we do not work with Corolla in the given year: 2000 We work with cars from 2016 to 2018 We cannot sell the car for the requested price of The color Green that you have requested is not available for car model: Corolla The available colors are: Black, Blue

7 5.4 Buying a car Choose option 2 Choose car from the menu shown in Section Then select Sienna. Your program should prompt the user to give his/her best offer. Input and you should get that you got the car! Congratulations. Pay attention that the final printout shall have the new tag price instead of the original value! Choose the car you've liked: 5 Tag Price: Color: Silver Accessories: Media Player, Heated Seats Give your best offer: Deal! Sold! Tag Price: Color: Silver Accessories: Media Player, Heated Seats Now, try it again and offer a very low value for the car. You should get a message like this: Choose the car you've liked: 1 Built Year: 2016 Tag Price: Accessories: None Give your best offer: 10 Your best offer is outside the allowed range The range for Corolla is between $ and $

Final Assignment for CS-0401

Final Assignment for CS-0401 Final Assignment for CS-0401 1 Introduction In this assignment you will create a program with an Graphical User Interface that will help customers to decide what car and car features that they want. In

More information

CS Programming Exercise:

CS Programming Exercise: CS Programming Exercise: An Introduction to Java and the ObjectDraw Library Objective: To demonstrate the use of objectdraw graphics primitives and Java programming tools This lab will introduce you to

More information

Software Testing Prof. Meenakshi D Souza Department of Computer Science and Engineering International Institute of Information Technology, Bangalore

Software Testing Prof. Meenakshi D Souza Department of Computer Science and Engineering International Institute of Information Technology, Bangalore Software Testing Prof. Meenakshi D Souza Department of Computer Science and Engineering International Institute of Information Technology, Bangalore Lecture 04 Software Test Automation: JUnit as an example

More information

Fall CSEE W4119 Computer Networks Programming Assignment 1 - Simple Online Bidding System

Fall CSEE W4119 Computer Networks Programming Assignment 1 - Simple Online Bidding System Fall 2012 - CSEE W4119 Computer Networks Programming Assignment 1 - Simple Online Bidding System Prof. Gil Zussman due: Wed. 10/24/2012, 23:55 EST 1 Introduction In this programming assignment, you are

More information

[DOC] SEO LINK BUILDING INDIANAPOLIS PRODUCTS MANUAL DOCUMENT

[DOC] SEO LINK BUILDING INDIANAPOLIS PRODUCTS MANUAL DOCUMENT 01 May, 2018 [DOC] SEO LINK BUILDING INDIANAPOLIS PRODUCTS MANUAL DOCUMENT Document Filetype: PDF 479.46 KB 0 [DOC] SEO LINK BUILDING INDIANAPOLIS PRODUCTS MANUAL DOCUMENT Automatic links to the pages

More information

Setting up an Invoice System

Setting up an Invoice System Chapter 2 To fully understand the value of relational databases you need to create a detailed system. In this chapter you will setup an invoicing system for a computer mail order company, PC Direct, which

More information

CSCE 156 Computer Science II

CSCE 156 Computer Science II CSCE 156 Computer Science II Lab 04 - Classes & Constructors Dr. Chris Bourke Prior to Lab 1. Review this laboratory handout prior to lab. 2. Read Object Creation tutorial: http://download.oracle.com/javase/tutorial/java/javaoo/objectcreation.

More information

Chapter 11 Generics. Generics. Hello!

Chapter 11 Generics. Generics. Hello! Chapter 11 Generics Written by Dr. Mark Snyder [minor edits for this semester by Dr. Kinga Dobolyi] Hello! The topic for this chapter is generics. Collections rely heavily upon generics, and so they are

More information

Default Values for Functions Enumeration constant Member Functions

Default Values for Functions Enumeration constant Member Functions Default Values for Functions Enumeration constant Member Functions Shahram Rahatlou University of Rome La Sapienza Corso di Programmazione++ Roma, 22 May 2006 Today s Lecture Go through your solutions

More information

the design marketplace

the design marketplace the design marketplace WELCOME TO ADVANCED CLOUDING! Congratulations on becoming a TemplateCloud Advanced Clouder! This guide contains everything you need to know to take you to the next level of TemplateCloud

More information

National Quali cations 2017

National Quali cations 2017 H FOR X716/76/01 OFFICIAL USE National Quali cations 017 Mark Computing Science TUESDAY, 16 MAY 1:00 PM 3:00 PM *X7167601* Fill in these boxes and read what is printed below. Full name of centre Town Forename(s)

More information

CMSC 201 Fall 2018 Lab 04 While Loops

CMSC 201 Fall 2018 Lab 04 While Loops CMSC 201 Fall 2018 Lab 04 While Loops Assignment: Lab 04 While Loops Due Date: During discussion, September 24 th through September 27 th Value: 10 points (8 points during lab, 2 points for Pre Lab quiz)

More information

ICOM 4015 Advanced Programming Laboratory. Chapter 4 Introduction to Object Oriented Programming

ICOM 4015 Advanced Programming Laboratory. Chapter 4 Introduction to Object Oriented Programming ICOM 4015 Advanced Programming Laboratory Chapter 4 Introduction to Object Oriented Programming University of Puerto Rico Electrical and Computer Engineering Department by Juan E. Surís 1 Introduction

More information

10 Usability Heuristics by Nielsen; Lazada and Shopee Review

10 Usability Heuristics by Nielsen; Lazada and Shopee Review 10 Usability Heuristics by Nielsen; Lazada and Shopee Review Summary Over decade to give user best experience, lot of designers had research and evaluate all possible user experience on digital platforms.

More information

Navigating the NEW Conway / Toolkit CMA Program

Navigating the NEW Conway / Toolkit CMA Program Navigating the NEW Conway / Toolkit CMA Program GETTING STARTED: Log into your DASHBOARD on our Intranet www.jackconway.com Click, Toolkit CMA from Quick Links Once you click on Toolkit CMA your account

More information

Once you click on the Enterprise Icon found on your desktop you will be asked for your password. This Default Code Is

Once you click on the Enterprise Icon found on your desktop you will be asked for your password. This Default Code Is Once you click on the Enterprise Icon found on your desktop you will be asked for your password. This Default Code Is You should now see the main screen which is called the main screen or menu screen.

More information

CSI Lab 02. Tuesday, January 21st

CSI Lab 02. Tuesday, January 21st CSI Lab 02 Tuesday, January 21st Objectives: Explore some basic functionality of python Introduction Last week we talked about the fact that a computer is, among other things, a tool to perform high speed

More information

+ Inheritance. Sometimes we need to create new more specialized types that are similar to types we have already created.

+ Inheritance. Sometimes we need to create new more specialized types that are similar to types we have already created. + Inheritance + Inheritance Classes that we design in Java can be used to model some concept in our program. For example: Pokemon a = new Pokemon(); Pokemon b = new Pokemon() Sometimes we need to create

More information

6.001 Notes: Section 15.1

6.001 Notes: Section 15.1 6.001 Notes: Section 15.1 Slide 15.1.1 Our goal over the next few lectures is to build an interpreter, which in a very basic sense is the ultimate in programming, since doing so will allow us to define

More information

Software Design Models, Tools & Processes. Lecture 6: Transition Phase Cecilia Mascolo

Software Design Models, Tools & Processes. Lecture 6: Transition Phase Cecilia Mascolo Software Design Models, Tools & Processes Lecture 6: Transition Phase Cecilia Mascolo UML Component diagram Component documentation Your own classes should be documented the same way library classes are.

More information

Electronic Sales Platform User s Manual

Electronic Sales Platform User s Manual Electronic Sales Platform User s Manual Version 1.1 2018 St. Petersburg 2 CONTENTS Preface... 3 1 Introduction... 4 1.1 Workstation Requirements and Settings... 4 1.2 Starting application... 5 2 Summary

More information

public static String[] manyme() {

public static String[] manyme() { UNCA CSCI 202 Middle Exam 2013 9 April, 2013 This is a closed book and closed notes exam. It is a 100-minute exam to be given within the regular class meeting time. Calculators, PDA s, cell phones, and

More information

Regis University CC&IS CS310 Data Structures Programming Assignment 2: Arrays and ArrayLists

Regis University CC&IS CS310 Data Structures Programming Assignment 2: Arrays and ArrayLists Regis University CC&IS CS310 Data Structures Programming Assignment 2 Arrays and ArrayLists Problem Scenario The real estate office was very impressed with your work from last week. The IT director now

More information

CS1114: Matlab Introduction

CS1114: Matlab Introduction CS1114: Matlab Introduction 1 Introduction The purpose of this introduction is to provide you a brief introduction to the features of Matlab that will be most relevant to your work in this course. Even

More information

During the first 2 weeks of class, all students in the course will take an in-lab programming exam. This is the Exam in Programming Proficiency.

During the first 2 weeks of class, all students in the course will take an in-lab programming exam. This is the Exam in Programming Proficiency. Description of CPSC 301: This is a 2-unit credit/no credit course. It is a course taught entirely in lab, and has two required 2-hour 50-minute lab sessions per week. It will review, reinforce, and expand

More information

Burning CDs in Windows XP

Burning CDs in Windows XP B 770 / 1 Make CD Burning a Breeze with Windows XP's Built-in Tools If your PC is equipped with a rewritable CD drive you ve almost certainly got some specialised software for copying files to CDs. If

More information

Address - Your address is used as your user name. That makes it easy for you to remember.

Address - Your  address is used as your user name. That makes it easy for you to remember. Using the Longley Auctions Website Skip to page 4 for a visual tour of how to register for first time visitors. Welcome Philatelic material (stamps, postal history, philatelic literature) is sold by Longley

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

ICOM 4015 Advanced Programming Laboratory. Chapter 1 Introduction to Eclipse, Java and JUnit

ICOM 4015 Advanced Programming Laboratory. Chapter 1 Introduction to Eclipse, Java and JUnit ICOM 4015 Advanced Programming Laboratory Chapter 1 Introduction to Eclipse, Java and JUnit University of Puerto Rico Electrical and Computer Engineering Department by Juan E. Surís 1 Introduction This

More information

Instructions. Objectives:

Instructions. Objectives: King Saud University College of Computer & Information Science CSC111 Lab09 Objectss IIII All Sections - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

More information

CSCI 161 Introduction to Computer Science

CSCI 161 Introduction to Computer Science CSCI 161 Introduction to Computer Science Department of Mathematics and Computer Science Lecture 2b A First Look at Class Design Last Time... We saw: How fields (instance variables) are declared How methods

More information

Unit Search for Retail Registration: Search

Unit Search for Retail Registration: Search Unit Search for Retail Registration: Search can be made by both Serial and VIN (VIN or OEM VIN) of a unit. A user can enter a full or partial Serial/VIN to perform a search by clicking the Search link.

More information

BUYING GUIDE ELVARLI. Open storage system DESIGN:

BUYING GUIDE ELVARLI. Open storage system DESIGN: BUYING GUIDE ELVARLI Open storage system DESIGN: Ehlén Johansson CARE AND CLEANING: Wipe clean with a cloth dampened in a mild cleaner. Then dry with a clean, dry cloth. GOOD TO KNOW Max. load for ELVARLI

More information

CS 351 Design of Large Programs Java and Socket Communication

CS 351 Design of Large Programs Java and Socket Communication CS 351 Design of Large Programs Java and Socket Communication Instructor: Joel Castellanos e-mail: joel@unm.edu 4/6/2017 Transmission Control Protocol The Transmission Control Protocol (TCP) is one of

More information

Building custom components IAT351

Building custom components IAT351 Building custom components IAT351 Week 1 Lecture 1 9.05.2012 Lyn Bartram lyn@sfu.ca Today Review assignment issues New submission method Object oriented design How to extend Java and how to scope Final

More information

Apple Store Manual Iphone 4s Unlocked Price In Usa 2013

Apple Store Manual Iphone 4s Unlocked Price In Usa 2013 Apple Store Manual Iphone 4s Unlocked Price In Usa 2013 Learn more about the unlocked iphone. If you buy iphone for T-Mobile, it will arrive with a nano-sim card already installed that you can activate

More information

CMSC 201 Fall 2016 Homework 6 Functions

CMSC 201 Fall 2016 Homework 6 Functions CMSC 201 Fall 2016 Homework 6 Functions Assignment: Homework 6 Functions Due Date: Wednesday, October 26th, 2016 by 8:59:59 PM Value: 40 points Collaboration: For Homework 6, collaboration is not allowed

More information

Lab 1: Accessing the Linux Operating System Spring 2009

Lab 1: Accessing the Linux Operating System Spring 2009 CIS 90 Linux Lab Exercise Lab 1: Accessing the Linux Operating System Spring 2009 Lab 1: Accessing the Linux Operating System This lab takes a look at UNIX through an online experience on an Ubuntu Linux

More information

Slide 1 CS 170 Java Programming 1 Testing Karel

Slide 1 CS 170 Java Programming 1 Testing Karel CS 170 Java Programming 1 Testing Karel Introducing Unit Tests to Karel's World Slide 1 CS 170 Java Programming 1 Testing Karel Hi Everybody. This is the CS 170, Java Programming 1 lecture, Testing Karel.

More information

Revising CS-M41. Oliver Kullmann Computer Science Department Swansea University. Linux Lab Swansea, December 13, 2011.

Revising CS-M41. Oliver Kullmann Computer Science Department Swansea University. Linux Lab Swansea, December 13, 2011. Computer Science Department Swansea University Linux Lab Swansea, December 13, 2011 How to use the revision lecture The purpose of this lecture (and the slides) is to emphasise the main topics of this

More information

EE 422C HW 6 Multithreaded Programming

EE 422C HW 6 Multithreaded Programming EE 422C HW 6 Multithreaded Programming 100 Points Due: Monday 4/16/18 at 11:59pm Problem A certain theater plays one show each night. The theater has multiple box office outlets to sell tickets, and the

More information

Welcome to Lab! Feel free to get started until we start talking! The lab document is located on the course website:

Welcome to Lab! Feel free to get started until we start talking! The lab document is located on the course website: Welcome to Lab! Feel free to get started until we start talking! The lab document is located on the course website: https://users.wpi.edu/~sjarvis/ece2049_smj/ece2049_labs.html You do not need to keep

More information

CSCI 1301: Introduction to Computing and Programming Summer 2018 Lab 07 Classes and Methods

CSCI 1301: Introduction to Computing and Programming Summer 2018 Lab 07 Classes and Methods Introduction This lab introduces you to additional concepts of Object Oriented Programming (OOP), arguably the dominant programming paradigm in use today. In the paradigm, a program consists of component

More information

Task Management. Version 6.0 B

Task Management. Version 6.0 B Task Management Version 6.0 B The documentation in this publication is provided pursuant to a Sales and Licensing Contract for the Prophet 21 System entered into by and between Prophet 21 and the Purchaser

More information

CS1110 Lab 1 (Jan 27-28, 2015)

CS1110 Lab 1 (Jan 27-28, 2015) CS1110 Lab 1 (Jan 27-28, 2015) First Name: Last Name: NetID: Completing this lab assignment is very important and you must have a CS 1110 course consultant tell CMS that you did the work. (Correctness

More information

Remote Control & Cloud DVR User Guide

Remote Control & Cloud DVR User Guide Remote Control & Cloud DVR User Guide IPTV Middleware Version 12 Page 1 Contents The Remote... 4 Playback Controls... 5 What s on TV?... 6 Using the OK Button (Now Playing)... 6 Using the INFO or Browse

More information

CS Problem Solving and Object-Oriented Programming

CS Problem Solving and Object-Oriented Programming CS 101 - Problem Solving and Object-Oriented Programming Lab 5 - Draw a Penguin Due: October 28/29 Pre-lab Preparation Before coming to lab, you are expected to have: Read Bruce chapters 1-3 Introduction

More information

Final Project. This assignment demonstrates your understanding of the concepts from the CMIS 141 class.

Final Project. This assignment demonstrates your understanding of the concepts from the CMIS 141 class. Final Project This assignment demonstrates your understanding of the concepts from the CMIS 141 class. Before attempting this project, be sure you have completed all of the reading assignments, hands-on

More information

10-Day Follow-Up Plan for Sellers Million Dollar Pipeline Program Class 2

10-Day Follow-Up Plan for Sellers Million Dollar Pipeline Program Class 2 10-Day Follow-Up Plan for Sellers Million Dollar Pipeline Program Class 2 Jenn Tervo Sheldon Rapoza Buyers & Sellers are Like Apples & Oranges Sellers have more control over their timeline, and your reputation

More information

ITI Introduction to Computing II Winter 2018

ITI Introduction to Computing II Winter 2018 ITI 1121. Introduction to Computing II Winter 2018 Assignment 1 (Last modified on 27 janvier 2018) Deadline: February 2, 11:30 pm [ PDF ] Learning objectives Applying basic object oriented programming

More information

The following is an excerpt from Scott Meyers new book, Effective C++, Third Edition: 55 Specific Ways to Improve Your Programs and Designs.

The following is an excerpt from Scott Meyers new book, Effective C++, Third Edition: 55 Specific Ways to Improve Your Programs and Designs. The following is an excerpt from Scott Meyers new book, Effective C++, Third Edition: 55 Specific Ways to Improve Your Programs and Designs. Item 9: Never call virtual functions during construction or

More information

Structured Programming

Structured Programming CS 170 Java Programming 1 Objects and Variables A Little More History, Variables and Assignment, Objects, Classes, and Methods Structured Programming Ideas about how programs should be organized Functionally

More information

Getting Started with. InSpiredByYou.com COPYRIGHT STUDIOPLUS SOFTWARE, LLC ALL RIGHTS RESERVED

Getting Started with. InSpiredByYou.com COPYRIGHT STUDIOPLUS SOFTWARE, LLC ALL RIGHTS RESERVED Getting Started with InSpiredByYou.com COPYRIGHT 1998-2013 STUDIOPLUS SOFTWARE, LLC ALL RIGHTS RESERVED i Getting Started with InSpiredByYou Table of Contents Setting Up InSpiredByYou... 3 Set Up an InSpiredByYou

More information

Evil Hangman Project

Evil Hangman Project Evil Hangman Project Program Description: Evil Hangman is a program that actively cheats at Hangman. Instead of choosing a single word that the player tries to guess, the program maintains a set of words

More information

CSCI 1301: Introduction to Computing and Programming Spring 2019 Lab 10 Classes and Methods

CSCI 1301: Introduction to Computing and Programming Spring 2019 Lab 10 Classes and Methods Note: No Brainstorm this week. This lab gives fairly detailed instructions on how to complete the assignment. The purpose is to get more practice with OOP. Introduction This lab introduces you to additional

More information

Laboratory. of Java and. specifically. On the line the method. does, e.g.: /** Obtains. of the die.

Laboratory. of Java and. specifically. On the line the method. does, e.g.: /** Obtains. of the die. ECCS 166 Programming 3 Dr. Estell Spring Quarter 2011 Laboratory Assignment 4 Javadoc 25 March 2011 1. 2. 3. The purpose of this laboratory is to familiarize ourselves with the use of the built-in documentation

More information

APCS Semester #1 Final Exam Practice Problems

APCS Semester #1 Final Exam Practice Problems Name: Date: Per: AP Computer Science, Mr. Ferraro APCS Semester #1 Final Exam Practice Problems The problems here are to get you thinking about topics we ve visited thus far in preparation for the semester

More information

Safety SPL/2010 SPL/20 1

Safety SPL/2010 SPL/20 1 Safety 1 system designing for concurrent execution environments system: collection of objects and their interactions system properties: Safety - nothing bad ever happens Liveness - anything ever happens

More information

Manual Apple Iphone 5s 32gb Price In Usa. Without Contract >>>CLICK HERE<<<

Manual Apple Iphone 5s 32gb Price In Usa. Without Contract >>>CLICK HERE<<< Manual Apple Iphone 5s 32gb Price In Usa Without Contract Apple iphone 5S 32GB "Factory Unlocked" ios 4G LTE Smartphone. USA Seller - No Contract Required - Fast Shipping!! $359.95. Buy It Now. Free Shipping.

More information

Exsys RuleBook Selector Tutorial. Copyright 2004 EXSYS Inc. All right reserved. Printed in the United States of America.

Exsys RuleBook Selector Tutorial. Copyright 2004 EXSYS Inc. All right reserved. Printed in the United States of America. Exsys RuleBook Selector Tutorial Copyright 2004 EXSYS Inc. All right reserved. Printed in the United States of America. This documentation, as well as the software described in it, is furnished under license

More information

InterCafe Print Manager

InterCafe Print Manager InterCafe 2004 This manual and the appendant software belong to blue image GmbH Germany and are subject to the appendant license agreements and copyright regulations. 2004 blue image GmbH Manual Version

More information

Follow these steps to redeem and use your itunes Gift Card or content code. Menu, Apple Apple Store Mac iphone Watch ipad ipod itunes Support.

Follow these steps to redeem and use your itunes Gift Card or content code. Menu, Apple Apple Store Mac iphone Watch ipad ipod itunes Support. Instructions How To Use Itunes Gift Card On Iphone Yahoo Remember, first, to back that data up via itunes or icloud pre-transfer. Below, a complete guide to prepping your iphone 6 or 6 Plus, for both first-time

More information

Using Microsoft Excel

Using Microsoft Excel About Excel Using Microsoft Excel What is a Spreadsheet? Microsoft Excel is a program that s used for creating spreadsheets. So what is a spreadsheet? Before personal computers were common, spreadsheet

More information

CS61BL: Data Structures & Programming Methodology Summer Project 1: Dots!

CS61BL: Data Structures & Programming Methodology Summer Project 1: Dots! CS61BL: Data Structures & Programming Methodology Summer 2014 Project 1: Dots! Note on compiling Board.java You will not be able to compile Board.java until you make your own CantRemoveException class.

More information

CSE 1325 Project Description

CSE 1325 Project Description CSE 1325 Summer 2016 Object-Oriented and Event-driven Programming (Using Java) Instructor: Soumyava Das Graphical User Interface (GUI), Event Listeners and Handlers Project IV Assigned On: 07/28/2016 Due

More information

GIRLsmarts: Kodu Workshop Guide

GIRLsmarts: Kodu Workshop Guide GIRLsmarts: Kodu Workshop Guide Introduction Double click on the Kodu Game Lab icon labeled Feeding Turtles to start the Kodu program. You can move left and right between the worlds using the right control

More information

Imperative and Object Oriented Programming. Tutorial 1. Charlie Abela Department of Artificial Intelligence

Imperative and Object Oriented Programming. Tutorial 1. Charlie Abela Department of Artificial Intelligence Imperative and Object Oriented Programming Tutorial 1 Department of Artificial Intelligence charlie.abela@um.edu.mt Tutorial 1 In this tutorial you will be using the BlueJ IDE to develop java classes.

More information

Microsoft Access II 1.) Opening a Saved Database Music Click the Options Enable this Content Click OK. *

Microsoft Access II 1.) Opening a Saved Database Music Click the Options Enable this Content Click OK. * Microsoft Access II 1.) Opening a Saved Database Open the Music database saved on your computer s hard drive. *I added more songs and records to the Songs and Artist tables. Click the Options button next

More information

If you are watching a program and decide that you want to record the remainder of the program you can easily start the recording.

If you are watching a program and decide that you want to record the remainder of the program you can easily start the recording. Record Programs Your DVR service gives you the freedom to record the program you are watching as you are watching it, record a program while you watch another, or you can record a program you see in the

More information

Using WebBoard at UIS

Using WebBoard at UIS Using WebBoard at UIS Accessing your WebBoard Course...3 Logging in to WebBoard...3 Understanding the WebBoard Environment...4 The Menubar...5 The Conferences Menu...5 Conferences...5 Topics...6 Messages

More information

B2B User Guide: Getting started:

B2B User Guide: Getting started: B2B User Guide: Overview: Although this site is fairly intuitive this document covers the functions provided to Toyo dealers on this site. Not all functions may be provisioned for your particular user

More information

CS112 Lecture: Defining Instantiable Classes

CS112 Lecture: Defining Instantiable Classes CS112 Lecture: Defining Instantiable Classes Last revised 2/3/05 Objectives: 1. To describe the process of defining an instantiable class 2. To discuss public and private visibility modifiers. Materials:

More information

Important Upgrade Info for SPLM 2012

Important Upgrade Info for SPLM 2012 Important Upgrade Info for SPLM 2012 Summary In July 2012, Intergraph will release SmartPlant License Manager 2012 (v12), as an upgrade of SPLM 2010 (v11). SPLM 2012 will have little to no affect on how

More information

SupplierGenius User Guide

SupplierGenius User Guide SupplierGenius User Guide Level 1 Training Catalog Management Version 1.15 Overview Welcome to SupplierGenius, a cloud-based password-protected website designed to provide suppliers with the ability to

More information

SELECTION. (Chapter 2)

SELECTION. (Chapter 2) SELECTION (Chapter 2) Selection Very often you will want your programs to make choices among different groups of instructions For example, a program processing requests for airline tickets could have the

More information

Reporting With SAP Crystal Reports

Reporting With SAP Crystal Reports Reporting With SAP Crystal Reports MOTIVATION This material is an introduction to how to develop report utilizing SAP Crystal Reports. It is aimed at students at universities, universities and other educational

More information

MOBILE BIDDING GUIDE 2019 DINNER & AUCTION. Saturday, March 23, 2019 EMBASSY SUITES SEATTLE. wingluke.org/2019auction

MOBILE BIDDING GUIDE 2019 DINNER & AUCTION. Saturday, March 23, 2019 EMBASSY SUITES SEATTLE. wingluke.org/2019auction 2019 DINNER & AUCTION Saturday, March 23, 2019 EMBASSY SUITES SEATTLE wingluke.org/2019auction MOBILE BIDDING GUIDE KEEP YOUR EYES PEELED MOBILE BIDDING WILL GO LIVE ON FEBRUARY 15, 2019. Scope out auction

More information

VARIABLES. Aim Understanding how computer programs store values, and how they are accessed and used in computer programs.

VARIABLES. Aim Understanding how computer programs store values, and how they are accessed and used in computer programs. Lesson 2 VARIABLES Aim Understanding how computer programs store values, and how they are accessed and used in computer programs. WHAT ARE VARIABLES? When you input data (i.e. information) into a computer

More information

Lesson Plan. Subject: OBJECT ORIENTED PROGRAMMING USING C++ :15 weeks (From January, 2018 to April,2018)

Lesson Plan. Subject: OBJECT ORIENTED PROGRAMMING USING C++ :15 weeks (From January, 2018 to April,2018) Lesson Plan Name of the Faculty Discipline Semester :Mrs. Reena Rani : Computer Engineering : IV Subject: OBJECT ORIENTED PROGRAMMING USING C++ Lesson Plan Duration :15 weeks (From January, 2018 to April,2018)

More information

Digital TV. Quick Reference Guide

Digital TV. Quick Reference Guide Digital TV Quick Reference Guide CONTENTS Remote Control... 4 Playback Controls.... 4 What s on TV?.... 6 Using the OK Button.... 6 Using the Info Button.... 6 Using the Browse Button.... 7 Using the Channel

More information

MS Access Let s begin by looking at the toolbar and menu of Access.

MS Access Let s begin by looking at the toolbar and menu of Access. MS Access 2003 Access is a database program that allows you to store, retrieve, analyze, and print information. Individuals use databases for various purposes. Businesses use databases to manage customer

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

The for Loop. Lesson 11

The for Loop. Lesson 11 The for Loop Lesson 11 Have you ever played Tetris? You know that the game never truly ends. Blocks continue to fall one at a time, increasing in speed as you go up in levels, until the game breaks from

More information

Computer Science 210 Data Structures Siena College Fall Topic Notes: Methods

Computer Science 210 Data Structures Siena College Fall Topic Notes: Methods Computer Science 210 Data Structures Siena College Fall 2017 Topic Notes: Methods As programmers, we often find ourselves writing the same or similar code over and over. We learned that we can place code

More information

Week 3 Classes and Objects

Week 3 Classes and Objects Week 3 Classes and Objects written by Alexandros Evangelidis, adapted from J. Gardiner et al. 13 October 2015 1 Last Week Last week, we looked at some of the different types available in Java, and the

More information

METHODS EXERCISES GuessNumber and Sample run SumAll Sample Run

METHODS EXERCISES GuessNumber and Sample run SumAll Sample Run METHODS EXERCISES Write a method called GuessNumber that receives nothing and returns back nothing. The method first picks a random number from 1-100. The user then keeps guessing as long as their guess

More information

Getting Started with Python and the PyCharm IDE

Getting Started with Python and the PyCharm IDE New York University School of Continuing and Professional Studies Division of Programs in Information Technology Getting Started with Python and the PyCharm IDE Please note that if you already know how

More information

One of these "compartments" is more correctly referred to as an element of the array

One of these compartments is more correctly referred to as an element of the array An array is a special type of variable in that it can contain many values If a standard variable is like a box, think of an array as being like a box with compartments: One of these "compartments" is more

More information

AquaScan Win version 1.9

AquaScan Win version 1.9 AquaScan Win version 1.9 Page 1 of 13 11.08.03 AquaScan Win version 1.9 AquaScan Win should be used together with a control unit using program CS20 version 58, CS30 version 07, or later. The LOG parameter

More information

Recitation 3 Class and Objects

Recitation 3 Class and Objects 1.00/1.001 Introduction to Computers and Engineering Problem Solving Recitation 3 Class and Objects Spring 2012 1 Scope One method cannot see variables in another; Variables created inside a block: { exist

More information

Wightman DIGITAL TV. Quick Reference Guide

Wightman DIGITAL TV. Quick Reference Guide Wightman DIGITAL TV Quick Reference Guide Contents Remote Control... 4 Playback Controls.... 5 What s on TV?.... 6 Using the OK Button.... 6 Using the Info Button.... 6 Using the Browse Button.... 6 Using

More information

And check out a copy of your group's source tree, where N is your one-digit group number and user is your rss username

And check out a copy of your group's source tree, where N is your one-digit group number and user is your rss username RSS webmaster Subversion is a powerful, open-source version control system favored by the RSS course staff for use by RSS teams doing shared code development. This guide is a primer to the use of Subversion

More information

How to use Lonsdor Toyota Lexus Smart Key Emulator for Chip 98 (SKE Green)?

How to use Lonsdor Toyota Lexus Smart Key Emulator for Chip 98 (SKE Green)? http://www.lonsdork518.com How to use Lonsdor Toyota Lexus Smart Key Emulator for Chip 98 (SKE Green)? This is Lonsdor Toyota Lexus smart key all key lost emulator for the chip 98 (SKE Green) help file.

More information

M i c r o s o f t E x c e l A d v a n c e d P a r t 3-4. Microsoft Excel Advanced 3-4

M i c r o s o f t E x c e l A d v a n c e d P a r t 3-4. Microsoft Excel Advanced 3-4 Microsoft Excel 2010 Advanced 3-4 0 Absolute references There may be times when you do not want a cell reference to change when copying or filling cells. You can use an absolute reference to keep a row

More information

Introduction to Design Patterns

Introduction to Design Patterns Introduction to Design Patterns First, what s a design pattern? a general reusable solution to a commonly occurring problem within a given context in software design It s not a finished design that can

More information

Cadillac xts manual pdf

Cadillac xts manual pdf DownloadCadillac xts manual pdf. Free Download something worked, I was able to do the partitioning steps you guys told me to do and it worked. Cadillac xts manual pdf Cadillac xts manual pdf Mirror Link

More information

How Subscribers & Members Can Book Online

How Subscribers & Members Can Book Online Bundaberg players Incorporated Subscribers and Members can now book online from our website www.theplayhousetheatre.org.au HOW: To book online you simply need to SIGN ON using your email address and a

More information

Code Ninjas: Introduction to Computer Science. Macomb Science Olympiad Presented by Swati Dharia Shane Storks

Code Ninjas: Introduction to Computer Science. Macomb Science Olympiad Presented by Swati Dharia Shane Storks Code Ninjas: Introduction to Computer Science Macomb Science Olympiad Presented by Swati Dharia Shane Storks Goals of the Math Topics Learn basic math concepts used in computer science Introduce basic

More information

More About WHILE Loops

More About WHILE Loops More About WHILE Loops http://people.sc.fsu.edu/ jburkardt/isc/week04 lecture 07.pdf... ISC3313: Introduction to Scientific Computing with C++ Summer Semester 2011... John Burkardt Department of Scientific

More information

Objects and Classes. 1 Creating Classes and Objects. CSCI-UA 101 Objects and Classes

Objects and Classes. 1 Creating Classes and Objects. CSCI-UA 101 Objects and Classes Based on Introduction to Java Programming, Y. Daniel Liang, Brief Version, 10/E 1 Creating Classes and Objects Classes give us a way of defining custom data types and associating data with operations on

More information