CS301 ASSIGNMENT 1 SOLUTION FALL 2017
Dear Virtual University Students, here you can read and download CS301assignment No.1 Solution fall 2017. CS301 Assignment Opining Date 13 November 2017 and Closing Date 20 November 2017. So, harry up Download the CS301 Assignment Solution File and submit Your Assignment Solution. Easily you can Download Solution file click the Download Button and Get Assignment Solution File. Any Question for Assignment so easily you can Contact me using Contact form. If assignment solution was helpful. Please Share It with your friends. You can also like our Facebook page, subscribe YouTube channel and follow on Google+ for Latest Update.
DownloadRecommended: Midterm Solved Papers Reference by Moaaz
IMPORTANT ASSIGNMENT INSTRUCTION
Please read the following instructions carefully before solving & submitting assignment:
It should be clear that your assignment will not get any credit (marks) if:
- The assignment is submitted after due date.
- The submitted code does NOT compile.
- The submitted assignment file is not in .CPP format.
- The submitted assignment file does not open or is corrupted.
- The assignment is copied (from other student or ditto copy from handouts or internet).
Uploading instructions:
- For clarity and simplicity, you are required to Upload/Submit only ONE .CPP file which will contain solution of question.
- Do not wait for grace day. Grace Day is given only if there is problem with LMS on due date. Submit your solution within due date.
- Note that no assignment will be accepted through email if there is any problem in LMS on grace day.
Note: Use only dev-C++ IDE.
Objective:
The objective of this assignment is to make you familiar with working of stack data structure and programming techniques to implement and understand the working of this data structure.
For any query about the assignment, contact at cs301@vu.edu.pk ASSIGNMENT QUESTION
Write a C++ program to balance three (3) stacks so the sum of numbers in each stack should be same.
Your program should fulfill following requirements.
- Create three (3) stacks, initially each stack will have three same numbers. Number of each stack should be different from other stack numbers. You can see in above diagram that initially each stack has same number but number is different from the numbers in other stacks.
- Your program should swap values between stack in the way that after balancing the stacks. Each stack should have different number as showing in above diagram.
- Please note that user will enter numbers into stack, not X, Y and Z.
- User will enter a number for each stack which will be inserted 3 times in each stack.
- You can implement stack through array or link list. It is your choice.
Sample output screen shot of program is given below
Solution guidelines
- First understand the code given in handouts about stack.
- Don’t allow popping if stack is empty and pushing if stack is full.
- Lectures Covered: This assignment covers Lecture # 1 - 12
Deadline:
Your assignment must be uploaded / submitted on / before, 20 November, 2017.DOWNLOAD COMPLETE ASSIGNMENT SOLUTION
You can Also Download Midterm Solved Past Papers, Final term Solved Past Papers, GDB Solutions, Assignment Solutions, and Solved Quizzes files, PPT Slides, Handouts and Short Notes.
Post a Comment