Sponsored Links


Results 1 to 2 of 2

Thread: CS301 Data Structure Assignments No.2 Solution and Discussion Fall 2014

  1. #1
    Senior Member
    Join Date
    Oct 2012
    Posts
    323

    CS301 Data Structure Assignments No.2 Solution and Discussion Fall 2014

    Sponsored Links1



    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.

    Sponsored Links


  2. #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


    12.jpg
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 12-03-2014, 02:20 PM
  2. CS301 Data Structures Assignment No. 1 Solution and Discussion Fall 2014
    By vuassignments in forum Assignments & Solutions
    Replies: 4
    Last Post: 11-18-2014, 01:15 AM
  3. Replies: 1
    Last Post: 07-18-2014, 01:32 PM
  4. Replies: 7
    Last Post: 11-02-2011, 04:32 AM
  5. Replies: 8
    Last Post: 11-07-2010, 05:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft