lab10 - Lab 10 Exercises 1(10 pts Implement the class...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 16000 -01 Fall Semester 2010 Lab 10: User-Defined Classes, Part II 20 pts posted: 11/22 due: 11/29-12/01 in lab Learning Outcomes Utilize Java syntax in fundamental programming algorithms (a) Design and implement elementary multi-class solutions to programming problems (c)(j) Recognize the need for arrays in the solutions of programming problems, and manipulate data in one dimensional arrays (b)(k) Requirements The focus of this lab is to gain additional experience with Java user-defined classes and obtain very simple introduction to arrays. This lab will also help you complete Project 4. Preliminaries 1. Download the file, lab10exe.zip, from Blackboard. This file is attached to the Lab 10 assignment. 2. The file, lab10exe.zip, contains an Eclipse project. Import this project into your Eclipse workspace. 3. The imported project contains several Java classes. Add a comment block at the beginning of each Java class except for MoneyBoard to add the following lines: /* * <your name> * CS160-01 Fall 2010
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: * Lab 10 * */ Exercises 1. (10 pts) Implement the class, Briefcase, as defined in the Project 4 assignment. The class, BriefcaseTest, contains a partially complete Java program to test the methods of the Briefcase class. Complete the program as indicated by the embedded comments. When completed, the program should produce the output shown below. 5000.0 false 200.0 true 1 Exercise 1 output. 2. (10 pts) The class, MoneyBoardTest, contains a partial Java program to demonstrate the methods of the class, MoneyBoard, which is needed to complete Project 4. Complete the program as indicated by the embedded comments. When completed, the program should produce the output shown below. 0.01 1.0 5.0 10.0 25.0 50.0 75.0 100.0 200.0 300.0 400.0 500.0 750.0 1000.0 5000.0 10000.0 25000.0 50000.0 75000.0 100000.0 200000.0 300000.0 400000.0 500000.0 750000.0 1000000.0 7 24 Exercise 2 output. What to Submit • Zip your Eclipse project and email it to the TAs and instructor on Blackboard. 2...
View Full Document

This note was uploaded on 12/15/2010 for the course CS 160 taught by Professor Staff during the Fall '08 term at Indiana University-Purdue University Fort Wayne.

Page1 / 2

lab10 - Lab 10 Exercises 1(10 pts Implement the class...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online