CSci 1103: Introduction to Java Homework 6 Fall 2016

Similar documents
9.3 Surface Area of Pyramids

Advisory. Date: April Background:

INDUSTRIAL AND COMMERCIAL


Derivation of Annuity and Perpetuity Formulae. A. Present Value of an Annuity (Deferred Payment or Ordinary Annuity)

HelpSTAR Student Edition

Chapter 3 Savings, Present Value and Ricardian Equivalence

Firstmark Credit Union Commercial Loan Department

DISPLAYING NASDAQ LEVEL II DATA

Module Availability at Regent s School of Drama, Film and Media Autumn 2016 and Spring 2017 *subject to change*

Questions & Answers Chapter 10 Software Reliability Prediction, Allocation and Demonstration Testing

Database Management Systems

PROCUREMENT STANDING ORDERS WAIVER DECISION NOTICE BOROUGH TREASURER. 20% of claim (potential fees estimated to be 140,000)

Integrating Net2 with an intruder alarm system

LAPLACE S EQUATION IN SPHERICAL COORDINATES. With Applications to Electrodynamics

Vision Helpdesk Client Portal User Guide

9:6.4 Sample Questions/Requests for Managing Underwriter Candidates

Episode 401: Newton s law of universal gravitation

Hitachi Virtual Storage Platform

Symmetric polynomials and partitions Eugene Mukhin

Graphs of Equations. A coordinate system is a way to graphically show the relationship between 2 quantities.

NCH Software MoneyLine

Budgeting Loans from the Social Fund

Left- and Right-Brain Preferences Profile

FI3300 Corporate Finance

Finance 360 Problem Set #6 Solutions

Instructions to help you complete your enrollment form for HPHC's Medicare Supplemental Plan

On Effectiveness of Defense Systems against Active Worms

Transmittal 198 Date: DECEMBER 9, SUBJECT: Termination of the Existing Eligibility-File Based Crossover Process at All Medicare Contractors

The force between electric charges. Comparing gravity and the interaction between charges. Coulomb s Law. Forces between two charges

Converting knowledge Into Practice

How to SYSPREP a Windows 7 Pro corporate PC setup so you can image it for use on future PCs

The LCOE is defined as the energy price ($ per unit of energy output) for which the Net Present Value of the investment is zero.

DNS: Domain Name System

Pipelined MIPS Processor. Dmitri Strukov ECE 154A

Voltage ( = Electric Potential )

How to create RAID 1 mirroring with a hard disk that already has data or an operating system on it

How to recover your Exchange 2003/2007 mailboxes and s if all you have available are your PRIV1.EDB and PRIV1.STM Information Store database

Things to Remember. r Complete all of the sections on the Retirement Benefit Options form that apply to your request.

WINMAG Graphics Management System

Thank you for participating in Teach It First!

Spirotechnics! September 7, Amanda Zeringue, Michael Spannuth and Amanda Zeringue Dierential Geometry Project

How to create a default user profile in Windows 7

SPATIAL EQUALISATION OF SOUND SYSTEMS IN CARS BY DIGITAL INVERSE FILTERING

Week 3-4: Permutations and Combinations

The Binomial Distribution

The Supply of Loanable Funds: A Comment on the Misconception and Its Implications

Concept and Experiences on using a Wiki-based System for Software-related Seminar Papers

How To Get A Tax Credit From Illinois

US Al (19) United States (12) Patent Application Publication (10) Pub. No.: US 2006/ A1 Wu (57) A sender is selectively input- S301

Saturated and weakly saturated hypergraphs

Chapter 3: JavaScript in Action Page 1 of 10. How to practice reading and writing JavaScript on a Web page

Ilona V. Tregub, ScD., Professor

Figure 2. So it is very likely that the Babylonians attributed 60 units to each side of the hexagon. Its resulting perimeter would then be 360!

Vacancy Rebate Supporting Documentation Checklist

READING A CREDIT REPORT

How To Change V1 Programming

INITIAL MARGIN CALCULATION ON DERIVATIVE MARKETS OPTION VALUATION FORMULAS

Valuation of Floating Rate Bonds 1

YOUR REPRODUCTIVE LIFE PLANNING GUIDE

Dundee Housing. Application Form and guidance notes. Office use only. Received By: Date Received: Passed to Lettings Team: Application Number:

WEBSITE ACCOUNT USER GUIDE SECURITY, PASSWORD & CONTACTS

Vector Calculus: Are you ready? Vectors in 2D and 3D Space: Review

Impulse and Linear Momentum 5

NCH Software FlexiServer

Confirmation of Booking

Faithful Comptroller s Handbook

UNIT CIRCLE TRIGONOMETRY

12. Rolling, Torque, and Angular Momentum

Bereavement benefits. Help for widows, widowers and surviving civil partners

NCH Software Bolt PDF Printer

BIOS American Megatrends Inc (AMI) v02.61 BIOS setup guide and manual for AM2/AM2+/AM3 motherboards

DOCTORATE DEGREE PROGRAMS

PY1052 Problem Set 8 Autumn 2004 Solutions

VAT201. efiling user guide for Value-Added Tax

(Sn) J. P. Phillips, J. P. Phillips, Mayor uity of Roanoke, Alabama

Over-encryption: Management of Access Control Evolution on Outsourced Data

Teach yourself Android application development - Part I: Creating Android products

cover comparison TUH it s my health fund! Your Queensland health fund Effective 2 April 2014

SABRe B2.1: Design & Development. Supplier Briefing Pack.

Key Features of Life Insurance

4a 4ab b (count number of places from first non-zero digit to

Avaya Remote Feature Activation (RFA) User Guide

ViVUD: Virtual Server Cluster based View-Upload Decoupling for Multi-Channel P2P Video Streaming Systems

DOING BUSINESS WITH THE REGION OF PEEL A GUIDE FOR NEW AND CURRENT VENDORS

A Two-Step Tabu Search Heuristic for Multi-Period Multi-Site Assignment Problem with Joint Requirement of Multiple Resource Types

Physics 235 Chapter 5. Chapter 5 Gravitation

Chapter 1: Introduction BELSORP analysis program Required computer environment... 8

Software Engineering and Development

2 r2 θ = r2 t. (3.59) The equal area law is the statement that the term in parentheses,

NCH Software Express Accounts Accounting Software

An Efficient Group Key Agreement Protocol for Ad hoc Networks

Research on Risk Assessment of the Transformer Based on Life Cycle Cost

Angles formed by 2 Lines being cut by a Transversal

Mechanics 1: Motion in a Central Force Field

2. TRIGONOMETRIC FUNCTIONS OF GENERAL ANGLES

Solution Derivations for Capa #8

Annual Notice of Changes for 2016

Comparing Availability of Various Rack Power Redundancy Configurations

INVERSE BORN SERIES FOR SCALAR WAVES * 1. Introduction

Transcription:

De Date: Fiday, Nov. 11, 2016 befoe 6:00pm. CSci 1103: Intodction to Java Homewok 6 Fa 2016 Instctions: This is an individa homewok assignment. Thee ae two pobem woth 20 points each. Sove the pobems beow by yosef (nike the abs, whee yo wok coaboativey), and sbmit the sotion as a Java soce code fie. Hee ae a few moe impotant detais: 1. Unike the compte ab execises, this is not a coaboative assignment. Yo mst design, impement, and test the sotion to each pobem on yo own withot the assistance of anyone othe than the cose instcto o TAs. In addition, yo may not incde sotions o potions of sotions obtained fom any soce othe than those povided in cass: exampes fom the textbook, ectes, o code yo and yo patne wite to sove ab pobems. Othewise obtaining o poviding sotions to any homewok pobems fo this cass is consideed academic miscondct. Ask the instcto if yo have qestions. 2. Becase a homewok assignments ae sbmitted and tested eectonicay, the foowing ae impotant: Yo foow any naming conventions mentioned in the homewok instctions. Yo sbmit the coect fie(s) thogh Moode by the de deadine. Yo foow the exampe inpt and otpt fomats given in each pobem desciption. Regadess of how o whee yo deveop yo sotions, yo pogams compie and execte on cseabs comptes nning the Linx opeating system. 3. The pobem desciptions wi say show at east one test case and the esting coect otpt. Howeve, yo shod test yo pogam on othe test cases (that yo make p) as we. Making p good test cases is a vaabe pogamming ski, and is pat of ensing yo code sotion is coect. Pobem A: Mini-maze (20 points) Make a sma 2D maze. Yo shod aow the se to move eft, ight p o down. The maze shod se the foowing symbos:. = Open space X = Yo O = Exit W = Wa If the se ties to move otsize of the maze o into a wa, they shod jst move nowhee. When the se eaches the exit, dispay the boad and end the game. Fo this sbmission, bid and sbmit the maze as shown in the exampes (i.e. do not change the ocation of was/exit/x).

Exampe 1 (se inpt is ndeined): d X....X....X.

.WXW WWXW O.X. OX.. X... Yo win! Test yo pogam sing not ony the exampe data above, bt othe cases as we. And evise yo pogam nti yo ae se it is coect. When yo ae done, name the soce code fie <sename>_6a.java. Hee yo epace <sename> with yo U of M emai addess (fist ette ppe case); fo exampe, if yo emai addess is smithx1234@mn.ed, yo fie shod be named Smithx1234_6A.java. Then sbmit yo pogam sing the HW6 Pobem A sbmission ink in Moode.

Pobem B: Gocey eceipt (20 points) Wite a pogam to geneate a eceipt when gocey shopping. To do this, the se shod be aowed to ente sentences indicating what they boght. When thee ae no moe items, yo shod ente! checkot (withot qotes) to stop the pogam. Yo shod then ist the qantities of each item boght, aong with the tota (do not incde the phase ). Yo pogam shod be case-insensitive. The capitaization yo shod dispay in the otpt is the fist way they enteed the wods (see exampes 2 & 3). Exampe 1 (se inpt is ndeined): appe appe banana mik Tota items: 4 appe x2 banana x1 mik x1 Exampe 2 (se inpt is ndeined): coke Coke COKE MORE COKE Tota items: 4 coke x3 MORE COKE x1 Exampe 3 (se inpt is ndeined): COKE COke Coke coke c... oke Tota items: 5 COKE x4 c... oke x1 Exampe 4 (se inpt is ndeined): pack of soda

pizza pizza cheese pizza pineappe appe Tota items: 6 pack of soda x1 pizza x2 cheese pizza x1 pineappe x1 appe x1 Exampe 5 (se inpt is ndeined): Tota items: 0 Test yo pogam sing not ony the exampe data above, bt othe cases as we. And evise yo pogam nti yo ae se it is coect. When yo ae done, name the soce code fie <sename>_6b.java. Hee yo epace <sename> with yo U of M emai addess (fist ette ppe case); fo exampe, if yo emai addess is smithx1234@mn.ed, yo fie shod be named Smithx1234_6B.java. Then sbmit yo pogam sing the HW6 Pobem B sbmission ink in Moode.