Spring 2024 Cs304p 1 Sol
Spring 2024 Cs304p 1 Sol
Maximum Marks: 20
Instructions Due Date: 29 April 2024
The purpose of this assignment is to give your hands-on practice. It is expected that students
will solve the assignment themselves. The following rules will apply during the evaluation
of the assignment.
● Cheating from any source will result in zero marks in the assignment.
● The submitted assignment does NOT open or the file is corrupted.
● No assignment after the due date will be accepted
Students can submit HTML, Images and Plain text only in this inline Mode. The
table can also be drawn in the interface.
● DOC/pdf File uploading option will not be available in inline assignment
submission.
Uploading Assignment Instruction
Follow the given instructions to submit the inline assignments.
• Images of the following formats can be inserted in the inline assignment interface.
• Images and tables can be inserted using the following highlighted options in the
interface.
Virtual University of Pakistan SEMESTER Spring 2024
Suppose you are building an online shopping platform “One Click Shopping”. On this platform you can
buy products from different available categories. To place an order, first you have to register as a user
and login to complete the order.
To place an order, select the product from the list and add it into the shopping cart. You can make
payment through online credit card or cash on delivery. After making payment your order will be
completed.
As a student of OOP (Object oriented programming) course you have to perform following tasks using
above scenario.
2. Identify the generalization relationship and mention the parent and child classes
Note:
Part # 1:
Name Login()
Password Logout()
Description
Price
No of Items removeItem()
displayCart()
checkout()
User ID trackOrder()
Items
Total Price
Order Status
User ID
Amount
CCV
Sample output for part # 2 is given below, your solution output should be like this.
Part # 2: