Java language, Netbeans program.
Shinas College of Technology
SULTANATE OF OMAN
INFORMATION TECHNOLOGY DEPARTMENT
Assignment
(To cover the outcomes by Self-reliant, Student Centered Learning Approach)
Level: | Diploma II | Specialization: | IT |
Course Code: | ITSE203 | Course Name: | Object Oriented Programming |
Date of Issue: | 03/02/2020 | Date of Submission: | 26-Mar-2020 |
Assignment Number and Title: |
|
Group: |
Instructions:
E-mail your assignment to [email protected]. No hardcopy or softcopy from USB is accepted for security purposes.
After sending your assignment, secure the copy of the sent mail (see Sent Items) as evidence until you get the confirmation of receiving from your course lecturer. If you don’t get any confirmation in one (1) or two (2) days, send it again and follow-up personally.
No updated versions are accepted once the assignment is submitted.
Write your ID, your name, and Section in the Subject of your mail.
(Example: 62S15134_Ahmed_Section_)
Use only your college mail to send your work. Contact ETC in case you have a log-in problem.
Marks will be deducted for late submission. Twenty percent (20%) of assignment scored mark will be reduced for each day of late submission.
Plagiarism is a crime. Plagiarism occurs when other’s work such as print material, images, audio-visual creations, computer programs, electronic materials, etc. are used without appropriate acknowledgement and this can be checked by copying your work to any search engines.
Plagiarism includes, but not limited to the following:
- Copying full or part (paragraphs, sentences or significant part of a sentence) of other’s work directly
- Copying from other’s work with an end reference to the original source but without putting the copied text between quotation marks
- Paraphrasing, summarising, or rearranging words, phrases or ideas of other’s work
- Copy-Paste of statements from multiple sources (electronic or print material)
- Presenting work done in collaboration with others as independent work
- Using one’s own work presented previously
Disciplinary Action for Student Plagiarism (for ALL involved) is Zero mark.
To avoid plagiarism, you must give credit whenever you use:
another person’s idea or theory;
any piece of information which is not a common knowledge; and
material from a website.
A student who satisfactorily completes the assignment should be able to:
Learning Objective | Course Outcome No. |
1. Understand the concepts of object-oriented programming . | 1 |
2. Use Java primitives | 2 |
3. Implement abstraction and encapsulation | 3,4,5 |
4 Implement inheritance and polymorphism | 7,11 |
5. Work with libraries, packages, interfaces and exceptions | 6,8,11,12 |
--------------------------------------------------------------------------------------------------------------------------- ---------
Problem:
A Super Hypermarket Company is in need of software to calculate the Tax amount for its items based on its type and price. The following is the description of the problem.
An Item can be identified by price, and description.
A Food is an Item having details of types (vegetables, fruits, pastry …), productionCountry (Oman, UAE, Italy, etc…), and expirayDate (Date of Expire).
A Clothing is an Item having details of category (male, female), Size, and color.
Tshirt is a Clothing having details of fabric and sleevesLength.
Jeans is a Clothing having details of style and brand.
Interface method needed:
Create an interface by name Taxable. The requirements are listed below:
TaxableDetails method that should provide Tax amount for every type of Item based on the below conditions.
Item | Condition | Tax Amount in Rials |
Food | No Condition | 0.25 |
Tshirt | Summer season | 1.12 |
Winter season and High nick | 1.5 | |
Winter season and cotton fabric | 1.7 | |
Jeans | Model is 80’s style | 2.66 |
Model is 70’s style and black denim | 1.75 | |
Model is after 2000 and blue denim | 3.0 |
Use necessary validations using exceptions and user-defined exceptions.
When there is requirement of printing details of Tax, the program should display all the details of the Item including the Tax detail.
Instructions:
Your program needs to collect the details of any number of Items.
The details required are considered as the most important requirements.
In the absence of any one of these requirements provided in the rubric, marks cannot be scored.
Ensure every technique to combine these requirements to assure its implementation in the program.
Rubrics:
Tasks | Breakdown of assessment criteria | Marks | Scored Marks | Remarks | |||
1 | Adopting coding standards (Naming, indents, alignment, comments, Spacing) | ||||||
2 | Handling appropriate packages (for input and output process) | ||||||
3 | Interface/abstract class | ||||||
4 | Super class – Sub class concept | ||||||
5 | Constructor | ||||||
6 | Polymorphism | ||||||
7 | Accessors and Mutators | ||||||
8 | Exception Handling | ||||||
9 | Input process (Presentation of proper information for the user and handling appropriate input data type) | ||||||
10 | Variables handling (handling proper data type to support information of output) | ||||||
11 | Condition Statements | ||||||
12 | Accuracy of manipulation of data | ||||||
13 | Output handling (Receipts display without ambiguity and proper messages) | ||||||
14 | Program executable satisfying the requirements completely | ||||||
Total | 15 |
References
Deitel &, Deitel, Java: How to Program, 9th Edition (Deitel), Prentice Hall; 9th edition (2011)
Todd Greanier, (2004). Java Foundations – John Wiley & Sons, Incorporated.
ProQuest Ebook Central: http://ebookcentral.proquest.com/lib/momp/detail.action?docID=267312
Budi Kurniawan, (2010).Java A Beginner’s Tutorial, Second Edition, Brainy Software.
ProQuest Ebook Central: http://ebookcentral.proquest.com/lib/momp/detail.action?docID=3003873.
https://docs.oracle.com/javase/tutorial/
Prepared by: Approved by:
Mr. H. Syed Ibrahim Ms. Amna Al Kaabi
Course Teacher HOS-IT