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

Info icon This 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
Image of page 1

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

View Full Document Right Arrow Icon
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern