Results 1 to 2 of 2

Thread: HELP! I am trying (and trying, and trying) To complete a slot machine assignment

  1. #1
    Join Date
    Apr 2015
    Posts
    1
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default HELP! I am trying (and trying, and trying) To complete a slot machine assignment

    I am trying to complete this assignment:
    Modify the following slot machine code:
    So that the player’s credits appear in a textbox. When the game begins, the number of credits should start at 20. Each spin of the slots should cost the player one credit. If all three slot images match, however, the player wins and is credited with 13 credits.
    In addition, an alert window should appear to notify the player of the winning spin. Augment the SpinSlots function so that the number of credits is updated appropriately on each spin.
    Add code to the SpinSlots function that will not allow the player to spin if the balance is Zero. Add an alert notification.
    Add a button that allows the player to add 20 credits to his account. (write a function)

    CODE REMOVED BY MODERATOR

    I know there are a lot of mistakes, I am still trying to edit it, but I am going in circles and getting myself lost. Help! Thank-you so much!
    Last edited by Beverleyh; 04-11-2015 at 02:49 PM.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Unfortunately we are not able to help you with your assignment. You should contact your instructor for feedback and suggestions, or maybe seek help from other students in your class.

    Furthermore, the source website features this text prominently in the instructor resource area
    This work is protected by United States copyright laws and is provided solely for the use of instructors in teaching their courses and assessing student learning. Dissemination or sale of any part of this work (including on the World Wide Web) will destroy the integrity of the work and is not permitted. The work and materials from it should never be made available to students except by instructors using the accompanying text in their classes. All recipients of this work are expected to abide by these restrictions and to honor the intended pedagogical purposes and the needs of other instructors who rely on these materials
    Please note the part I have put in bold - to avoid any conflicts of interest, I have removed reference to the code you posted and will be closing this thread to discourage responses that may unwittingly interfere with student learning in the future.
    Last edited by Beverleyh; 04-11-2015 at 02:54 PM.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. The Following User Says Thank You to Beverleyh For This Useful Post:

    LostAria (04-11-2015)

Similar Threads

  1. Help on a Javascript (Slot Machine)
    By Informatics in forum JavaScript
    Replies: 3
    Last Post: 08-01-2010, 05:54 PM
  2. Assignment for college
    By Jon Smith in forum Java
    Replies: 3
    Last Post: 10-12-2008, 12:11 AM
  3. HELP Needed with Assignment
    By Juniper79 in forum JavaScript
    Replies: 4
    Last Post: 10-11-2008, 05:41 AM
  4. HELP with homework assignment =[
    By Jason2008 in forum Java
    Replies: 2
    Last Post: 10-10-2008, 10:04 PM
  5. Slot Machine Problem
    By IanMarlowe in forum JavaScript
    Replies: 3
    Last Post: 07-06-2005, 03:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •