Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

CS301 Assignment No 01 Fall 2020 Solution & Discussion Due Date: 26-11-2020

Problem Statement:
Suppose you are asked to make a Ranking information chart of students in a dynamic list called linked list using C++ language. The data will be stored in this list in order i.e. the highest marks student will be on top position with other information whereas the next highest marks student will be on second top position and so on.
Your program will get the information of a student in the form of input (Student ID, Name, Marks) through console. After filling the required information, the student will be inserted in linked list at right place. The right place of student will be decided on the basis of marks.
Furthermore, you are required to use only classes for this assignment. As we are not covering Struct in this course so using it in assignment solution is not allowed.
Sample Output:
See the gif file attached with this assignment file.

Note:
DO REMEMBER that you must use your VUID as an input in this program.

  Submission detailsFollowing Files Must be submitted in a single zip or rar file.C++ code file (file name should be your VUID)A .gif file which shows only “execution” of your Application (For Recording .gif a software named Screentogif is uploaded on LMS, or you can use any other gif recording tool as well)First record must be with your own VU-ID in .gif file.  If you do not submit any of the above-mentioned file or use some other VU-ID, you will be awarded Zero Marks. 

Views: 2334

Replies to This Discussion

need idea solution

CS301 Assignment No.1 2020 Updated Sol

Click on below link 

CS301 Assignment No.1 2020 Updated Sol

CS301 Assignment No1. 2020 New Updated Sol
It's a CPP file.
Link below 
CS301 Assignment submit karne ka process
1.Code ko dev c++ may lakhna ha and save your vu id
2. Execute Karna ha(koi error to nhii)
3. Run Karna code
4. Black interface show ho ga (Apny Jo screen to gift ka software install kiya hwa ho ga usko open Kar ky recording pay laga lay and gif software apko apni lms cs301 kay subject my links my mill jay ga ya ap google Kar lay screen to gif) One (1) press karna Jaha apny apni mail I'd khud ki lakhni ha For e.g (mc1234567) Marks____ 1st name __Last name___ Then again press 1 Koi be I'd day waha but remember 1st pay apny apni hi vu id dani Marks 1st name __Last name_____ Then again press 1 Again koi be I'd lakhy Marks 1st name ____Last name ___ Press 2 Press 2 karny sy apny Jo be idz Kay marks lakhy ho gay jisky highest ho gay wo sub sy top pay show ho gay Then press 3 Dev C++ wali file and gif wali file ko ak folder my rakhy or click kary send to my option ho ga zip ka ap apni dono files ko zip may convert Kar dy and submit on your lms .

CS301 Data Structures Assignment 1 Solution & Discussion Fall 2020


Solution:

 

#include <iostream>
using namespace std;
class Books{
private:
int current;
int books;
int size;
int *stack;

public:
Books(int s, int b){
size = s;
stack = new int[size];
books = b;
current = -1;
}
void push(int x){
stack[++current] = x;
}
int pop(){
return stack[current--];
}
int top(){
return stack[current];
}
int isEmpty(){
return (current==-1);
}
int isFull(){
return (current == size-1);
}
};

main(){
int s, b, id;
int s_books = 0;
int h_books = 0;
int o_books = 0;

cout "Set the size of stack: " endl;
cin >> s;

cout "How many books you want to add in stack" endl;
cin >> b;

Books book(s,b);
for(int i = 0; i < b; i++){
if(!book.isFull()){
cout "Enter book identity number that you want to insert into stack" endl;
cin >> id;
book.push(id);

}
}
for(int i = 0; i < b; i++){
if(!book.isEmpty()){
int idd = book.pop();
if(idd%8==0){
s_books++;
}
else if(idd%5==0){
h_books++;
}
else{
o_books++;
}
}
}
if(b > 0){
cout "total software book/books " s_books endl;
cout "total hardware book/books " h_books endl;
cout "total other book/books" o_books endl;
}else{
cout "books not found";
}

}

 

 

Execute online --> http://cpp.sh/4qjig

 

CS301 Assignment#01 Solution File Fall 2020

Click on the below link 

CS301_Assignment_No_01_Solution_Fall_2020

CS301 Assignment 1 Solution 2020 | CS301 Assignment No 1 Solution Fall 2020

CS301 Assignment 1 Solution 2020, CS301 Assignment No 1 Solution Fall 2020, CS301 Assignment 1 Solution 2020, CS301 Assignment No 1 Solution Fall 2020, CS301, CS301Assignment1, CS301AssignmentSolution, CS301SolvedAssignment, CS301Assignment1Solution2020, CS301Assignment1fall2020, CS301AssignmentSolution, CS301Programming, CS301AssignmentNo1, CS301Assignment1Solution2020, CS301Solution CS301Assignment1Solution2020 CS301SolutionLink CS301Assignment1Solution2020 CS301DownloadLink CS301AssignmentPDF CS301AssignmentCPP CS301Assignment1Solution2020 CS301AssignmentSolutionCPP CS301CPPFile CS301Assignment CS301Assignment1Solution2020 CS301AssignmentDownload CS301Solve CS301Assignment1Solution2020 CS301Assignment1 CS301Assignment1Solution2020 CS301 Assignment 1 Solution 2020 CS301 Assignment 1 Solution 2020 CS301 Assignment 1 Solution 2020 CS301 Assignment 1 Solution 2020 CS301 Assignment 1 Solution 2020 CS301 Assignment 1 Solution 2020 CS301 Assignment 1 Solution 2020 CS301 Assignment 1 Solution 2020

CS301 Assignment No. 1 Fall 2020 Solution by VU ACADEMY

#CS301 #CS301Assignment1 #CS301AssignmentSolution #CS301SolvedAssignment #CS301Assignment1Solution2020 #CS301Assignment1Fall2020 #CS301ssignmentSolution #CS301Networking #CS301AssignmentNo1 #CS301Assignment1Solution2020 #CS301Solution #CS301Assignment1Solution2020 #CS301SolutionLink #CS301Assignment1Solution2020 #CS301DownloadLink #CS301AssignmentPDF #CS301Assignment1Solution2020 #CS301AssignmentSolution #CS301File #CS301Assignment #CS301Assignment1Solution2020 #CS301AssignmentDownload #CS301Solve #CS301Assignment1Solution2020 #CS301Assignment1 #CS301Assignment1Solution2020 CS301Assignment1Solution2020, CS301Assignment1Solution2020, CS301Assignment1Solution2020, CS301Assignment1Solution2020, CS301Assignment1Solution2020, CS301Assignment1Solution2020, CS301Assignment1Solution2020, CS301Assignment1Solution2020,

CS301 Assignment No.1 2020
Its new updated solution


#include<iostream>
using namespace std;

class Node
{
public :
string st_id;
string f_name;
string l_name;
int marks;
Node *nextNode;

Node()
{
st_id="";
f_name="";
l_name="";
marks=0;
}

Node(string id, string f_nm, string l_nm, int mrk)
{
st_id=id;
f_name=f_nm;
l_name=l_nm;
marks=mrk;
}

void setVUID(string id)
{
st_id=id;
}
void setMarks(int m)
{
marks=m;
}
void setFName(string f_n)
{
f_name=f_n;
}
void set_LName(string l_n)
{
l_name=l_n;
}

int getMarks()
{
return marks;
}
string getSTID()
{
return st_id;
}
string getFName()
{
return f_name;
}
string getLName()
{
return l_name;
}
};

class Student_List
{
private :
Node * headNode;
public :
Student_List()
{
headNode = NULL;
}

void add_student(Node **head, Node* newNode)
{
Node* currentNode;
if(*head == NULL || (*head)->marks <= newNode->marks)
{
newNode->nextNode = *head;
*head=newNode;
}
else
{
currentNode = *head;
while(currentNode->nextNode != NULL && currentNode->nextNode->marks > newNode->marks)
{
currentNode=currentNode->nextNode;
}
newNode->nextNode=currentNode->nextNode;
currentNode->nextNode=newNode;
}
}

void new_Node()
{
string id;
string f_nm;
string l_nm;
int mrk;
cout"Enter VU ID : ";
cin>>id;
cout"Enter Marks: ";
cin>>mrk;
cout"Enter First Name : ";
cin>>f_nm;
cout"Enter Last Name : ";
cin>>l_nm;

Node* newNode= new Node(id,f_nm,l_nm,mrk);

newNode->nextNode=NULL;
add_student(&headNode, newNode);
}

void display_Student()
{
Node* node1 = headNode;
if(node1==NULL)
{
cout"No student entered yet "endl;
}
else
{
while(node1!=NULL)
{
cout"\n\nVU ID : "node1->getSTID();
cout"\nMarks: "node1->getMarks();
cout"\nFirst Name : "node1->getFName();
cout"\nLast Name : "node1->getLName()endl;
node1=node1->nextNode;
}
}
}
};

main()
{

Student_List * list = new Student_List();
bool close=1;
int ch=0;
do
{
cout"\n1. To add new student in ranking";
cout"\n2. To display ranking";
cout"\n3. To close";
cout"\n\nEnter your choice (1, 2 or 3) : ";
cin>>ch;

if(ch==1)
{
list->new_Node();
}
else if(ch==2)
{
cout"\nRanking Chart\n";
list->display_Student();
}
if(ch==3)
{
close=0;
cout"\n\n\n\tThank you for watching this video subsribe channel (VU ACADEMY) for more solution\n\n";
}

}while(close);
}

CS301 Assignment No.1 2020 Updated Sol

Click on below link 

CS301 Assignment No.1 2020 Updated Sol

CS301 Assignment No1. 2020 New Updated Sol
It's a CPP file.
Link below 

CS301 Assignment No 1 Solution Fall 2020 || Abid Farooq Bhutta | Data Structure cs301 Correct Solved

CS301 Assignment 1 Complete Correct Solution Solved 2020 || Fall 2020
CS301 Solution Assignment no.1 2020 || Complete Correct Fall 2020 Solved. CS301 Assignment 1 Complete Solution Fall 2020,CS301 Assignment 1 Complete Solution,CS301 Assignment 1,CS301 ,CS301 Assignment 1 solution,CS301 assignment Fall 2020,CS301 assignment solution Fall 2020,CS301 assignment, Assignment 1 CS301 solution, solution CS301 Assignment 1, CS301 Assignment 1 solution 2020,CS301 assignment solution 2020,CS301 Assignment 1,CS301 Assignment 1 solution Fall 2020,CS301 assignment no 1 solution Fall 2020,CS301 assignment no 1 solution 2020,CS301 1st assignment solution 2020,CS301 1st assignment solution,CS301 1st assignment solution Fall 2020,assignment solution Fall 2020, #CS301 #CS301assignment1solution2020

CS301 Assignment 1 Complete Solution Fall 2020,CS301 Assignment 1 Complete Solution,CS301 Assignment 1 solution,CS301 assignment Fall 2020,CS301 assignment solution Fall 2020,Assignment 1 CS301 solution, solution CS301 Assignment 1,CS301 Assignment 1 solution 2020,CS301 assignment solution 2020,CS301 Assignment 1,CS301 Assignment 1 solution Fall 2020,CS301 assignment no 1 solution 2020,CS301 1st assignment solution 2020,assignment solution Fall 2020

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service