IMAT5101 Object Oriented Programming Assignment

Assignment Help Other Subject
Reference no: EM132425959

IMAT5101 Object Oriented Programming Assignment - De Montfort University, UK

The learning outcomes that are assessed by this coursework are:

1. Have a comprehensive understanding of OO programming concepts: abstraction, encapsulation, inheritance, etc.

2. Be able to select appropriate API facilities in the design, implementation and testing of OO applications and applets.

About this assessment - You are given a scenario for your assignment. This takes the form of a design description and a specification by way of a class diagram. You should gain an understanding of the scenario, implement the class diagram and produce the functionality listed within the use cases.

You should implement each class to the expected standards as discussed and practiced during the module.

Objectives - The objective of this assessment is for you to demonstrate your ability to design and implement an OO system consisting of a set of Java classes and a client program. In particular:

1. To design and implement classes with suitable fields, constructors, accessor methods, and modifier methods.

2. To conform to the standard conventions of Java.

3. To implement classes that are associated by inheritance, delegation, composition and aggregation.

4. To write a client application that uses your classes to show that they function correctly.

Your Scenario: Shopping Cart

STAGE 1 -

Use Cases: You should have a test class, with a main method, that should complete the following use cases for the "Shopping Cart System" to show it works as expected. Please clearly highlight where each use case is exercised in your test program with comments:

CartTest

UC1: A test program that creates an instance of Cart, populates it with several orders (for both products and discount products), and uses a for-each loop to produce a formatted listing of the orders with their price, the number of items in the cart and the overall total price.

Note: You can either use a data file to dynamically read orders, or hardcode the order instances to add to the cart.

UC2: Test each of the sort methods work as expected, as evidenced by appropriate output.

For the sortOrders(Comparator<Order>) method, you should pass in a custom comparator that sorts by cost (asc) and if these are the same then by product (desc).

UC3: Additionally, test the use of equality by using the contains and remove methods. Also, you should use a PrintWriter to produce a receipt for all of the orders and associated details of the cart, and output these into a text file Cart.txt.

UC4: Add further code to show how each method of Cart can be used. In particular, increase and/or decrease the quantity of one or more of the products in the cart, and then re-print the updated cart listing.

STAGE 2 -

Use Cases: Add the following use case at the end of your existing code in your test program - you may need to update other code that has been affected by the additional changes.

UC5: Create an instance of RewardProcessor, add a selection of products to it (but not all the same as those in your cart), and then test the rewardPoints method appropriately.

STAGE 3 -

Use Cases: Add the following use case at the end of your existing code in your test program - you may need to update other code that has been affected by the additional changes.

UC6: Create four different Order object instances and ensure each has a different price policy - default, buy 1 get 1 free, buy 2 get 1 free, and buy 5 get 1 free.

Calculate the cost of each to show the price policies are being applied correctly, and test each policy with different quantities.

Attachment:- Object Oriented Programming Assignment File.rar

Reference no: EM132425959

Questions Cloud

Venipuncture patient education assignment : Each scenario will require to describe the importance and function of being able to properly educate the patient successfully in order to protect the employee
What are the impacts of culture on motivation : Are all cultures motivated by the same thing? Is there a slant in the research? Is there a theory you believe would work across cultures? Which one?
Ece 430 developmentally appropriate practice : ECE capstone, discusses seven developmentally appropriate practice topics. For this discussion, you will be focusing on Delivery of Curriculum
Research a business failure and discuss : Identify an organization that could benefit from the application of the I/O Model of Above-Average Returns. Do not use Apple, Nike, Amazon
IMAT5101 Object Oriented Programming Assignment : IMAT5101 Object Oriented Programming Assignment Help and Solution - De Montfort University, UK. Implementation and testing of OO applications and applets
Discuss the importance of the theories of freud and jung : Discuss the importance of the theories of Freud and Jung for the study of mythology.
Summarize recent developments in several states : In your initial post of at least 200-250 words, summarize recent developments in several states enacting voter ID laws.
What is the nutritional content of the food : What type of nutrient would your goal require? In other words, if you are trying to build muscle, do you need a lot of energy for a long run, etc.?
Define and discuss the various intermediate sanctions : Define and discuss the various intermediate sanctions and what they involve. Your response should be at least 300 words in length.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd