Giter Site home page Giter Site logo

asd_task_4's Introduction

Task_4 2019

Task 4 : Circular Double Linked List

DEADLINE = MARCH 4TH, 2019 - 23:59

Reading Material

Workflow

  1. FORK this repositori ASD_Task_4 to your GitHub account
  2. CLONE ASD_Task_4 repository from YOUR OWN ACCOUNT
  3. open and modify codes in *.cpp and *.h files inside project ASD_Task_4
  4. write your code inside the provided space in each functions/procedures
  5. COMMIT and PUSH your project to your account
  6. create a Pull Request

Introduction to Double Circular Linked List
Create a music player application to implement the double circular linked list data structure

[IMPORTANT] library integration

  1. on Code::Blocks, go into menu project->Build Option
  2. go to Linker Settings tab
  3. click Add to add new lib function
  4. type winmm
  5. click OK

list.h

modify the elemenList and List structure to implement Double Circular linked list

  • use only one head

list.cpp

modify each function to fit the data structure

  • createList
  • allocate, deallocate
  • insertFirst, insertLast, insertAfter
  • deleteFirst, deleteLast, deleteAfter
  • findElmByID, findElmByName
    to implement Double Circular Linked List mechanism

player.cpp

these function are already defined:

  • int randomInt(int max_int);
    function to produce random integer
  • void printInfo(List L);
    function to print music list inserted to List L
  • void playMusic(address P);
    function to play current music pointed by P
TODO : create function according to the header defined in player.h
  • function to play the music list from the first music and repeat the list n times
    void playRepeat(List &, int n);

  • function to delete any music defined by its ID
    void deleteMusicByID(List &L, infotype x);

  • function to shuffle the order of the music list
    void shuffleList(List &);
    simple logic example:

   repeat n times
      P <- first
      x = randomInt
      for i to x, 
          move P to next element
      delete after P
      insert first P
   end repeat


you can define another mechanism to shuffle the order

main.cpp

  • modify the main menu progam
  • run the application

asd_task_4's People

Contributors

adf-telkomuniv avatar haurathaya avatar undeed avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.