Você está na página 1de 1

MCA First Year CS 101

Home Assignment -3

Date Issued 3rd Oct 2007 Date Due – 22nd Oct 2007
1. Submit your assignment on a CD and also the print out.
2. Do your own work. Copying from each other will be dealt with
strictly and appropriate action will be taken.
3. Write your name and roll number in each program as a comment.
4. If your program does not compile correctly, no marks will be given.
5. Make sure that you program does not have any virus.
6. Your class names and variable names should be readable / meaningful.
7. For each class/method, include one or more comments describing what
the class/method is supposed to do.
8. Do proper alignment of code to make the program readable. If proper
alignment is not done, program will not be checked.
9. Use only those concepts and statements covered in class.

Exercise 1. Chapter 8, Programming exercises 8.2 to 8.6. All these


relate to a single class, therefore, all these can be combined in one
class called Purse. Write a test program which will ask user for input
and test all the methods in this class.

Exercise 2. Programming Project 8.1.

Exercise 3. Programming exercises 9.5 and 9.6. Write which approach (in
9.5 or 9.6) is more object Oriented and why?

Please use BlueJ IDE for developing these programs. In your minor-test
2, questions may be asked on BlueJ.

Você também pode gostar