ITI 1121 Midterm: ITI 1121 University of Ottawa 2005 Midterm-en

27 views15 pages

Document Summary

The company java financial solutions is developing a new software system for tracking professional expenses. You are part of the software development team responsible for the hierarchy of classes to represent expenses. The amount for a transportation expense using a private car is a xed rate times the distance traveled; The amount for a transportation expense by air is a xed amount (speci ed when a new transportation expense is created); The amount for a meal expense is the number of meals times a xed rate. The rate depends on the kind of meal: breakfast, lunch or dinner; You must write the java implementation of the following classes. Make sure to include the construc- tors, the access methods and where appropriate the method for calculating the amount represented by the expense: expense, transportation. Page 6 of 15 (question 1: continued: complete the partial implementation of the class expensetracker below.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents