(Software Development Practices) (Spring 2001)
|
Late Policy:If for some reason you can't meet the due date, your work
will still be accepted up to 3 work days past the due date but with some penalty:
Because of the compressed time schedule, late submissions are strongly discouraged. Submit late homeworks through e-mail as one compressed zip file, clearly indicating its content in the subject line. Also submit a hard-copy (on paper) to instructor in the first lecture following your submission. Warning:
Guidelines to follow:1. Follow the good programming practices given in the book. Especially, properly indent your program, write comments where necessary, follow the convention mentioned in the class in choosing your identifier names. 2. Include your name, class, student id, homework number and section id on the first page. 3. Include the question number in the identification comment at the top of the program. 3. Use paper conservatively. You may download Fineprint driver (at www.fineprint.com) and fit four printout pages (or two pages if your printer's print quality is poor) in each page. Caution: It is not very difficult for a professional to detect cheaters. So if you have done the homework with someone else indicate your partner at the beginning of the code. If I catch any unmentioned partnerships, I will deal them separately. Note: I will choose and grade only some of the exercises. But if you have not answered any of the questions, you will automatically loose some points for each unanswered question. Deliverables: 1. Submit printouts of your code and at least one sample run of your
program on paper.
Homework Assignment - 5 (Due to May 23) (Solutions) Write a class called Rationalfor performing arithmetic with fractions. Use integer variables to represent private data of the class -- the numerator
and the denominator. Provide a constructor function that enables an object of
this class to be initialized when it is declared. The constructor should contain
default values in case no initializers are provided and should store the
fraction in reduced form (i.e., the fraction Hint: You should write a utility member function called reduce. a) Overload the addition, subtraction, multiplication, and division operators for this class. The result should be stored in reduced form. Hint: The operators should work as usual, they should not change the values of input operands. b) Write a friend function to print Rational numbers in the form a/b where a is the numerator and b is the denominator. Overload << operator for this purpose. c) Write a friend function to input Rational numbers in the form a/b where a is the numerator and b is the denominator. Overload >> operator for this purpose. d) Provide a member function for printing Rational numbers in floating point format. e) Overload the relational and equality operators for this class. f) Write a driver program (i.e., a main function) to test each member function of your class. Your program should at least contain the following statements: Rational a, b(5), c(6,2), d, e; Instructions: You may form 2-person working groups in this assignment. In this case submit a single set of solutions but clearly mark the name of participants in the front page. (If you form larger groups, a -20 points will be deducted from your total score for each extra person.) Homework 5 Grading Policy:
Homework Assignment - 4 (Due to May 2) (Solutions) You may form 2-person working groups in this assignment. In this case submit a single set of solutions but clearly mark the name of participants in the front page. (If you form larger groups, a -20 points will be deducted from your total score for each extra person.) Do the following exercises in the textbook:
Homework Assignment - 3 (Due to April 18) (Solutions) You may form 2-person working groups in this assignment. In this case submit a single set of solutions but clearly mark the name of participants in the front page. (If you form larger groups, a -20 points will be deducted from your total score for each extra person.) Do the following exercises in the textbook:
Homework Assignment - 2 (Due to March 30) (Solutions) You may form 2-person working groups in this assignment. In this case submit a single set of solutions but clearly mark the name of participants in the front page. (If you form larger groups, a -20 points will be deducted from your total score for each extra person.) Do the following exercises in the textbook:
Deliverables: 1. Submit printouts of your code and at least one sample run of your
program on paper.
Homework Assignment - 1 Make-up (Due April 25) (Only for the students who registered late) Do exercise 4.17 in the textbook: Submit printouts of your code and at least one sample run of your program on paper. Homework Assignment - 1 (Due March 16) (Solutions) Do the following exercises in the textbook:
Submit printouts of your code and at least one sample run of your program on paper. Homework Assignment - 0 (Due Feb 23) (Solutions) Computer type and print out the following information on a piece of A4 paper, and attach a photo of yours. The supplied info will help the instructor to get to know the class. Note 1: Do not answer any questions that you may feel like an intrusion to your privacy. Note 2: Your photo will be returned to you by the end of semester.
| List of letter grades was turned in to department on June 13th. Your unclaimed diskettes will be donated to department.
|
Last updated: 25/07/2001 21:37 |