ITEC 2610 – SUMMER 2022 Assignment 1
Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit
Assignment 1
ITEC 2610 – SUMMER 2022
In this assignment, you will be designing a simple online shop. You can choose the type of product for this shop (clothes, sport equipment, etc.). The goal of this assignment is to gain experience in designing classes for a specific problem, choosing the right attributes and methods for the classes, and practicing UML diagrams. Please note that you do not need to implement a working sample of the shop and the goal of this assignment is just the design part.
The weight for this assignment is 10% of the course total. The assignment will be graded out of 100.
Shop Requirements
The online shop has an inventory consisting of different products with their correspondent quantities. The users can navigate to the shop, add products to their carts, and pay with their credit cards. Each user must be registered and have valid information stored in the system (name, email, etc.). The users should have at least one credit card on the system.
Also, based on the products that a user buys, its quantity in the inventory decreases. The online shop also has one admin who can add new items, change the quantity of items, and add/remove users.
In this assignment your goal is to answer these questions:
• What are the entities (classes) in this problem?
• What are the required attributes and methods for each of the classes?
• What are the access modifiers for these attributes and methods?
• What are the types of the attributes and the return types of the methods?
Notes
UML
After designing your classes on paper and choosing the attributes and methods for them, you will have to design your UML based on the information we have learned in class. The UML consists of the class names, their attributes, methods, and the relationship between the classes. The UML will be submitted as a single PDF file. You can use online tools to draw the UML or simply use tables (for example in Microsoft Words).
Please very briefly explain your challenges, i.e., did you have any doubts if a specific item counts as a class or not, how did you overcome this doubt, did you have doubts about the return types of some methods, and so on.
.java Files
As you know, each of the classes will be mapped to a .java file. Do not forget to add the getters and setters when necessary. You should also add the attributes and methods you have chosen for each class. Do not forget to add proper constructor(s) for each of the classes.
Submission
Please note that submissions are only accepted individually, and you may not seek help from other classmates. Feel free to email the instructor if you have any questions.
• You are required to submit a PDF file and a number of .java files (based on the number of classes you have designed).
• The PDf file includes the UML for the classes that you have designed. The PDF should also include your full name, email address, and student id as follows:
Name: Mana Poustizadeh
Email: mana4@yorku.ca
Student ID: XXXXXXXXX
Note: this is important for grading your work, if you don't put in your name and student
ID, it can be very difficult for us to determine whose submission this is. You will be deducted points if your file does not include this information.
• Your submission should be a zip file named assg1_studentID.zip. Please replace the studentID in the file name with your own student ID.
• You should abide by the policies set by the Senate of York University and by the Faculty of Liberal Arts & Professional Studies regarding the Academic Honesty. Your files are checked for similarities so do not use each other’s files.
• Submissions are only accepted via eClass. Submissions sent to instructor will not be considered for grading.
Submission Structure
assg1_XXXXXXXXX.zip
UML.pdf
A.java
B.java
C.java
…
Please note that you should not be submitting your whole project, but just the single java files. Submitting the whole project (src folder, iml file, out folder, etc.) instead of the above format will result in losing marks.
2022-06-18