CS201 MID TERM SOLVED MCQs || PAST PAPERS || GROUP-1 || INTRODUCTION TO PROGRAMMING || VuTech Visit Website For More Solutions www.vutechofficial.blogspot.com …
CS301 ASSIGNMENT NO. 1 FALL 2022 || 100% RIGHT SOLUTION || DATA STRUCTURES || BY VuTech
SEND WHATSAPP OR E-MAIL FOR ANY QUERY
0325-6644800
kamranhameedvu@gmail.com
Visit Website For More Solutions
www.vutechofficial.blogspot.com
Instructions
Please read the
following instructions carefully before submitting the assignment solution:
It should be clear that your assignment will not get any
credit/marks if:
oAssignment is submitted
after due date.
oSubmitted assignment
does not open or file is corrupt.
oAssignment is copied
(From internet/students).
Recommended Tools
Dev
C++
Assignment Submission Instructions
You have to
submit only code “.cpp” file on the assignments interface from your LMS
account.
Assignment submitted in any other (.doc, .pdf,
image, etc.) format will not be accepted and will be scaled with zero marks. No excuse will be accepted
on submitting solution file in any other format.
For any query
related to assignment, please contact cs301@vu.edu.pk.
Problem Statement:
You are required to make a program using C++
language to implement singly linked list. Your will create a linked list of
random numbers and display last asked elements of linked list on the console (command
prompt). Following are the detailed requirements.
Decide the size of linked list
Generate a random number between 15 to
20 and use it as size of linked list. Every time the program will be executed
a different number should be generated.
Fill/create the linked list with random
numbers in range 1 to 100.
Display the last few elements of linked
list on console.
The number of last few elements will
be entered by user.
If user will enter 5 then display last
five elements of linked list. If the user will enter 8 then display last
eight elements of linked list.
Important
Instructions:
You need to fulfill the following
requirements while solving the assignment task.
1.Use only user defined classes for Node
and List, the use of struct is not allowed.
2.The structure of Node and List classes
should be similar to the structure given below. If you will create extra data
members then your marks will be deducted.
3.User will enter the no. of elements he wants
to see, so your application should display entered no. of last elements.
4.An animated gif file is attached with
assignment file. This animation contains the procedure to select last elements
of your choice. Once you have selected the elements of your choice then you can
display them easily.
We provide Virtual University of Pakistan Study Materials such as Solution of Assignments, GDBs, Mid Term Solved Papers, Final Term Solved Papers, Mid Term Solved MCQs, and Final Term Solved MCQs. We also provide regular Semester Quizzes, Updated Handouts, and Short Questions and Answers. We help you with your research and many other educational-related topics, as far as we know. Furthermore, Share your problem with us and Please feel free to ask any related questions.