Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

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

The requirements for homework 5 in the data structures ii course offered by wentworth institute of technology's division of professional and continuing studies during the fall, 2005 semester. Students are tasked with modifying the simon game program to use a linked list, allowing users to create a custom size button array, adding beeps for each button press, navigating the list in reverse order, and implementing a 'try another game' option.

Typology: Assignments

Pre 2010

Uploaded on 08/19/2009

koofers-user-tdw
koofers-user-tdw 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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
bobg@vision.eri.harvard.edu
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- bobg@vision.eri.harvard.edu 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/