Professional Documents
Culture Documents
اا
اا
Objective
Submitting Assignments:
Complete and submit your solution on (CS211 Practical e-learning page), using one of the
following upload links according to your own section before the deadline (Late assignments will
not be graded).
Once finished, compress your source code (Header and CPP files) and upload it to the assignment
link on e‐learning. Note: Your assignment must be compiled to be graded. Partial credit will not
be given for the code with syntax errors.
Grading.
The total grade is going to be out of 80, you must successfully discuss your solution with a TA to
get your grades. Feel free to contact the TA and ask her about the assignment if there is
anything not clear to you.
TAs information:
Search Functions:
+ searchByClothingItemID (const string & searchName) : bool //(5 pts) Returns true if an item is
in the list using its clothingItemID, otherwise the value false is returned.
+ searchByPrice ( float searchprice) : bool //(5 pts) Returns true if there are items in the list
cheaper than the passed price, otherwise the value false is returned.
count Functions:
+ CountByCategory( const string & ItemCategory): int // ( 5 pts) returns how many clothing
items of a specific ItemCategory exist in the list.
Print Functions:
+ print (): void //( 3 pts) Prints the information of all items in the clothing list neatly and
clearly.
+ printFront(): void //(1 pts) Function to print the information of the first clothing item in
the list by calling the function ClothingItemType::displayInfo().
+ printBack() : void //(1 pts) Function to print the information of the last clothing item in
the list by calling the function ClothingItemType::displayInfo().
Important notes:
1. On e-learning, you can find the header and the cpp files that you are supposed to place your
code inside. The cout sentences inside the file testProg.cpp may help you to design a
comprehensive list of test items. Once you’ve finished, please compress your source code
(Header and CPP files) and upload it to the assignment link on e‐learning.
2. Please add the time complexity of each function as a comment before the function header.
3. Please Implement the function outside the class.
4. Please implement the classes and their functions as specified in the UML (by the green
comment).
5. The code Should Be customized from the code you learned in the course, specifically the
classes linkedListType and unorderedLinkedListType, the code that diverges significantly
from the code inside these classes is not an acceptable solution.
6. You must write a code to test the functions you’ve implemented. You are responsible for
designing a test code that helps us to see if your functions are implemented properly. In the
test code, you’ll define an object of the class ClothingListType and call the functions. You
need to place your test code inside the file “testProg.cpp” which contains the “main
function”. During grading, we are also going to use our one test code to check if your code
is written properly or not. A sample test run is presented in the sample screenshots below.
first last
clothingItemID:124 clothingItemID:154
clothingItemID:123 clothingItemID:154
Name: T-shirt Name: skirt
Name: Jeans Name: Boot
Category: bottom
Category: Top
Category: Footwear … Category: bottom
price: 23
price :15
price :25 price: 30
quantityInStock:20 quantityInStock:17
quantityInStock:100 quantityInStock:45
Good luck