Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS301 Data Structure Assignments No.2 Solution and Discussion Fall 2014
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
CS301 Data Structure Assignments No.2 Solution and Discussion Fall 2014 Due Date: May 27, 2014


Uploading instructions
For clarity and simplicity, You are required to Upload/Submit only one .CPP file.
Don’t 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 on grace day.
Note: Use only Dev C++ IDE.
Objective
The objective of this assignment is to make you familiar with array, link list, stack and queue data structures and programming techniques related to them.
1) Before developing this assignment understand and practice following topics (array, link list, stack implementation using link list and queue implementation using circular array).
2) Use stack data structure to save information of players. Each player will represent a node which will contain player name and scores.
3) Use queue data structure to save dice numbers and get random number from dice. Use circular array to implement queue.
4) Your solution should use these classes
Player (Node) Class : To save information of each player
Stack Class: To save different players
Queue Class: To save dice numbers 1-6 and get random number from dice.
5) Before calling rand() method use this line ( srand(static_cast<int>(time(0))); ) to get different random numbers.

Reply
#2
For this assignment the following programs are a must
Linked List
Stack
queue
circular array
random num gen for Dice rolling
in the end all of the above will be assembled,
I wonder How
I found some codes for random numbers



.jpg   12.jpg (Size: 86.21 KB / Downloads: 760)
If you enter 60 as input, that means you have rolled the dice 60 times, the answer that you will get will be less than 6 , it can be 2 2 4 4 5 6 or 1 1 1 2 4 5 so it is a part of consignment pick up tools and start assembling, time is too short
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  cs301 assignment no 3 Solution 20 January 2016 Vuhelper 0 11,098 01-20-2016, 03:32 PM
Last Post: Vuhelper
  CS201 Assignment vo 3 Solution 20th January 2016 Vuhelper 2 2,612 01-20-2016, 03:28 PM
Last Post: Vuhelper
  CS101 Assignment no 3 Solution 20th January 2016 Vuhelper 0 2,292 01-20-2016, 03:25 PM
Last Post: Vuhelper
  SOC101 INTRODUCTION TO SOCIOLOGY assignment no 3 Solution 20 January 2016 Vuhelper 0 1,884 01-20-2016, 03:19 PM
Last Post: Vuhelper
  CS402 Assignment No 4 Solution & Discussion Xpert 0 2,111 08-01-2015, 02:33 AM
Last Post: Xpert
  cs101 Assignment No. 1 Solution 21 may spring 2015 semester Xpert 0 2,924 05-21-2015, 12:41 AM
Last Post: Xpert
  Assignment solution eng 301 due date 20 may 2015 rumesa khan 3 4,544 05-20-2015, 01:34 AM
Last Post: Xpert
  PHY301 Circuit Theory Assignment No. 1 idea Solution spring may 2015 semester Xpert 0 1,573 05-15-2015, 03:52 AM
Last Post: Xpert
  Assignment No. 01 Spring 2015 Information Systems CS507 idea solution spring 2015 Xpert 0 2,461 05-15-2015, 03:49 AM
Last Post: Xpert
  cs401 assignment no 1 spring may 2015 solution for idea Xpert 0 4,385 05-15-2015, 03:45 AM
Last Post: Xpert

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support