Supermarket Retail Items Programming Assignment: Class Hierarchy, Inheritance & Method Overriding
University | CCT College Dublin (CCT) |
Subject | Programming: Object-Oriented Approach |
Learning Outcomes
Please note this is not the assessment task. The task to be completed is detailed on the next page.
This CA will assess student attainment of the following minimum intended learning outcomes:
- Understand and employ fundamental concepts and principles of programming such as variables, Boolean expressions, control flow structures, methods, arrays, etc.
- Demonstrate a structured approach to algorithmic design and problem solving and exhibit professional development best practices in designing and developing robust, maintainable software.
- Illustrate and relate object-oriented concepts (encapsulation, inheritance, polymorphism) and employ them to solve practical, real-world problems.
- Differentiate, select, and utilise suitable application programming interfaces in the construction of software.
Attainment of the learning outcomes is the minimum requirement to achieve a Pass mark (40%). Higher marks are awarded where there is evidence of achievement beyond this, in accordance with QQI Assessment and Standards, Revised 2013, and summarised in the following table:
Percentage Range | CCT Performance Description | QQI Description of Attainment Level 6, 7 & 8 awards |
QQI Description of Attainment Level 9 awards |
---|---|---|---|
90% + | Exceptional | Achievement includes that required for a Pass and in most respects is significantly and consistently beyond this | Achievement includes that required for a Pass and in most respects is significantly and consistently beyond this |
80 – 89% | Outstanding | ||
70 – 79% | Excellent | ||
60 – 69% | Very Good | Achievement includes that required for a Pass and in many respects is significantly beyond this | Achievement includes that required for a Pass and in many respects is significantly beyond this |
50 – 59% | Good | Achievement includes that required for a Pass and in some respects is significantly beyond this | Attains all the minimum intended programme learning outcomes |
40 – 49% | Acceptable | Attains all the minimum intended programme learning outcomes | |
35 – 39% | Fail | Nearly (but not quite) attains the relevant minimum intended learning outcomes | Nearly (but not quite) attains the relevant minimum intended learning outcomes |
0 – 34% | Fail | Does not attain some or all of the minimum intended learning outcomes | Does not attain some or all of the minimum intended learning outcomes |
Please review the CCT Grade Descriptor available on the module Moodle page for a detailed description of the standard of work required for each grade band.
The grading system in CCT is the QQI percentage grading system and is in common use in higher education institutions in Ireland. The pass mark and thresholds for different grade bands may be different from what you have experience of in the higher education system in other countries. CCT grades must be considered in the context of the grading system in Irish higher education and not assumed to represent the same standard the percentage grade reflects when awarded in an international context.
Are You Searching Answer of this Question? Request Ireland Writers to Write a plagiarism Free Copy for You.
Assessment Task
Your task is to create a small class hierarchy involving AT LEAST 3 separate classes that you have programmed yourself.
These classes should include AT LEAST ONE parent-child (or super-class/sub-class) relationship. You also need to include at least ONE method THAT YOU HAVE WRITTEN which is overloaded or overridden.
The classes you build should represent ‘retail items’ that might be available in a SUPERMARKET. You can imagine any item, as long as it a physical thing and would realistically be sold in a Supermarket! NB: You SHOULD NOT write code for the Supermarket itself – only the items and a small “client” (see below)
Each class must have a number of appropriate properties and methods. This must include a “price” property that will store the sale price of the item. You should include other sensible properties that you need to describe the product!
You have been provided with code for a Shopping Trolley class (ShoppingTrolley.java). The ShoppingTrolley class includes properties and methods that have already been written for you. You should not need to make any adjustments to this code BUT you do need to read the comments so that you know how to use it!
You have also been supplied with a ‘client’ called “Supermarket.java” which includes the main() method. One line has been included here to declare a ShoppingTrolley to get you started. NOTE – This does NOT count as one of the ‘custom-built’ classes that you have to write!
** NOTE**
This code has been provided to you via GitHub Classroom. The link is https://classroom.github.com/a/3zZVv2a9. This will be your repository for this assignment. You will need to clone this repository in NetBeans to be able to use it!
When you have created your own classes, you need to modify Supermarket.java so that the program that will start by presenting the user with a small console menu that allows them to buy any of the items you have for sale. The last option on the menu should be “Proceed to Checkout”.
As a general rule, all input from the user should be validated appropriately.
When the user selects an item to buy, they should be prompted for a quantity (i.e. how many do they want to buy?) and then the menu should be displayed again. If they do not pick a valid option, then display an error message and display the menu again.
When the user selects the “Proceed to Checkout” option, the programme should list all the items that they have in their trolley, and the total amount due (i.e. total cost). You do not need to show the price of each individual item – only the total!
Use of GitHub: You are required to make regular commits to the GitHub repository over the course of the assignment. At least 1 commit per week is expected. Each commit should be properly documented (i.e. include a suitable comment for each commit that outlines what you added or changed)
SPECIFIC RESTRICTIONS – PLEASE NOTE!
- This is a console-based program. You may NOT use GUI elements such as Java FX or similar.
- Your program must use “java with Ant” ONLY. Use of dependencies such as Maven or Gradle is not allowed and will score zero.
- The custom-built classes must be YOUR OWN. Classes that have been used as examples in lectures (or provided to you) will not be counted as “custom-built” and do not count as part of your hierarchy!
Marking Schedule
Description | Weighting |
---|---|
Minimum number of custom-built classes have been included and include at least 1 parent-child (super-sub) relationship and one overloaded or over-ridden method. All custom-built classes must make sense for the program. | 10 |
All custom-built classes include appropriate properties and methods, and have been properly encapsulated and well-constructed. Commenting is clear and explains the code [Note – if your commenting does not explain what you have done, you could score zero here!] Note: GitHub must show that regular sensible commits have been made throughout the assignment timeframe [If you have not made regular commits, or if all of your commits occur in a short period of time, then your mark will be reduced and you are likely to be asked to meet for a code review] | 25 |
Code has been modularized well (i.e. custom-built methods have been included). Commenting is clear and explains the code [Note – if your commenting does not explain what you have done, you could score zero here!] Note: GitHub must show that regular sensible commits have been made throughout the assignment timeframe. [If you have not made regular commits, or if all of your commits occur in a short period of time, then your mark will be reduced and you are likely to be asked to meet for a code review] | 25 |
Program runs correctly and works as per the requirement (i.e. simple menu, etc) | 10 |
EXTRA CHALLENGE: The code includes extra features that are not included in the requirement brief. This could be (for example)
Note: GitHub must show that regular sensible commits have been made throughout the assignment timeframe. [If you have not made regular commits, or if all of your commits occur in a short period of time, then your mark will be reduced and you are likely to be asked to meet ken for a code review] |
30 |
Total | 100% |
** IMPORTANT ** A selection of submissions will be selected for review – approximately 20% of the group. If your submission is selected then you will be asked to meet with the lecturer to answer questions about your code. If you are unable to answer questions then your mark may be reduced or you could be awarded a zero mark. If you do not meet with your lecturer then your mark will be recorded as zero.
Get Solution of this Assessment. Hire Experts to solve this assignment for you Before Deadline.
Statement of Acceptable Use of Artificial Intelligence
Use Prohibited | Notes |
---|---|
The use of generative AI tools (such as ChatGPT, DALL-E, etc.) is not permitted AT ALL in this assignment. Any assignment that is found to have used generative AI tools in an unauthorised way will be subject to college disciplinary procedures as outlined in the QA Manual. | ● When in doubt about permitted usage, please ask for clarification. |
Submission Requirements
All assessment submissions must meet the minimum requirements listed below. Failure to do so may have implications for the mark awarded.
All assessment submissions must:
- You must submit ONLY a .jar file and all of the relevant .java files for your project! Compressed files (such as ZIP or RAR) are not allowed and will NOT be marked!
Please note that if you submit the wrong file then it may be impossible to view or run your program and you could be awarded a zero mark.
- Be submitted by the deadline date specified or be subject to late submission penalties
- Be submitted via Moodle upload
- Use Harvard Referencing when citing third party material
- Be the student’s own work.
- Include the CCT assessment cover page.
Additional Information
Additional Information
- Lecturers are not required to review draft assessment submissions. This may be offered at the lecturer’s discretion.
- In accordance with CCT policy, feedback to learners may be provided in written, audio or video format and can be provided as individual learner feedback, small group feedback or whole class feedback.
- Results and feedback will only be issued when assessments have been marked and moderated / reviewed by a second examiner.
- Additional feedback may be provided as individual, small group or whole class feedback. Lecturers are not obliged to respond to email requests for additional feedback where this is not the specified process or to respond to further requests for feedback following the additional feedback.
- Following receipt of feedback, where a student believes there has been an error in the marks or feedback received, they should avail of the recheck and review process and should not attempt to get a revised mark / feedback by directly approaching the lecturer. Lecturers are not authorised to amend published marks outside of the recheck and review process or the Board of Examiners process.
- Students are advised that disagreement with an academic judgement is not grounds for review.
- For additional support with academic writing and referencing students are advised to contact the CCT Library Service.
- For additional support with subject matter content students are advised to contact the CCT Student Mentoring Academy
Stuck in Completing this Assignment and feeling stressed ? Take our Private Writing Services
Get help from Ireland assignment help in your Supermarket Retail Items Programming Assignment. Here specializes in professionals for all categories of assignments who offer you AI-free and superior content. You are assured that our Dublin assignment help services will make you productive and help you achieve high grades in your academic year. We also have assignment samples for students written by PhD experts that are also provided here, which can help you boost your study power and check the quality of the assignment. Contact us now!