Docsity

Data Structures II - Homework 5: Linked List Project, Assignments of Data Structures and Algorithms

Toggle sidebar
bg1
Wentworth Institute of Technology
Division of Professional and Continuing Studies
COMP385 Section 71 - Data Structures II - Fall, 2005
Homework 5 – Linked List
Instructor: Bob Goldstein (617) 912-2512
http://webpages.charter.net/tlgcreations/Courses/index.html
http://goldstein.eri.harvard.edu/courses/index.html
http://public.wit.edu/~goldsteinr/index.html
Due Date: October 11, 2005
Hand In: Printout of program code and dialogue of how it runs.
Purpose:
Get experience using linked lists.
Description:
Start with the Simon program that we did in class and make the following modifications:
1. Make arbitrary button array, not just a 2x2. Ask the user what size to create. Maximum size will be a 5x5,
so you need to make 25 unique colors.
2. Have the program beep at each blink.
3. Give the user at the beginning of the program the option to click in actual order or reverse order. HINT –
use the doubly linked list structure to navigate the list from rear to front.
4. Modify the testing for a “win” so that it happens at each button press, so that as soon as an incorrect button
is pressed, the loss occurs.
5. Give the user the option of “trying another game”, rather than aborting the program.
Extra Credit:
1. Make a unique beep sound for each button
2. Don’t use the console at all for option choices – use a separate GUI frame.
/app/work/qkdcf3-480181-2765049-homework5-doc.doc 1 12/4/2020 12/4/2020

Partial preview of the text

Download Data Structures II - Homework 5: Linked List Project and more Assignments Data Structures and Algorithms in PDF only on Docsity!

Wentworth Institute of Technology

Division of Professional and Continuing Studies

COMP385 Section 71 - Data Structures II - Fall, 2005

Homework 5 – Linked List

Instructor: Bob Goldstein (617) 912- [email protected] http://webpages.charter.net/tlgcreations/Courses/index.html http://goldstein.eri.harvard.edu/courses/index.html http://public.wit.edu/~goldsteinr/index.html Due Date: October 11, 2005 Hand In: Printout of program code and dialogue of how it runs. Purpose: Get experience using linked lists. Description: Start with the Simon program that we did in class and make the following modifications:

  1. Make arbitrary button array, not just a 2x2. Ask the user what size to create. Maximum size will be a 5x5, so you need to make 25 unique colors.
  2. Have the program beep at each blink.
  3. Give the user at the beginning of the program the option to click in actual order or reverse order. HINT – use the doubly linked list structure to navigate the list from rear to front.
  4. Modify the testing for a “win” so that it happens at each button press, so that as soon as an incorrect button is pressed, the loss occurs.
  5. Give the user the option of “trying another game”, rather than aborting the program. Extra Credit:
  6. Make a unique beep sound for each button
  7. Don’t use the console at all for option choices – use a separate GUI frame. /app/work/qkdcf3-480181-2765049-homework5-doc.doc 1 12/4/2020 12/4/