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

55 views17 pages

Document Summary

Ecole de science informatique et de g enie electrique. No part of this document may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise without prior written permission from the instructors. This question is about object-oriented programming in java. Speci cally, this is a small part of a software system that you are developing for a supermarket chain. We are focussing on 2 types of goods, books and. Baskets of nuts , and the part of the software system that computes the price of good and services after taxes for all items sold by the chain, in every province. In our software system, every object representing a good or a service, which includes objects of the classes. The constructor of the class receives these 4 elements of information as parameters.