Preview

Matlab Report Bingo Card

Satisfactory Essays
Open Document
Open Document
351 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Matlab Report Bingo Card
Matlab report
Unfortunately I found this assignment much more difficult than the previous one; therefore I couldn’t get the bingo card to work in the way that I would have liked it to.
I firstly randomly generated a 3x9 matrix as shown in the editor window print out, I am happy with this part as it works perfectly, with all the numbers being displayed in the right places with a full range of 1-90.
The problems started to arise when deleting the terms, I got it to work where it randomly deletes 4 terms in each row, however I could not produce a code that ensures that there is always 1 number in each row.
I then created a for loop, which selects the balls, we have to use the randperm function otherwise the balls would just come out in order from 1-90. Whilst in the for loop I used to the ismember function to cross check the balls that were drawn to the ones that have been produced on a card, this works by whenever number drawn (represented by B) is in the array it produces a 1 and when it is not in the array in produces a zero, therefore we can assign certain quotes for when the ismember term is zero or 1 e.g. if (I==0) then we can display sorry no match etc. I also assigned for each number the quote the bingo caller would say to make it more enjoyable for the user.
Unfortunately I couldn’t get the bingo card to distinguish when the player had won, I tried summing up the ismember terms so that when sum(I)==15 (which is the number of numbers in the card after terms had been deleted) displayed BINGO! However I could not get the code to work so I removed it.
Overall I am disappointed with the code itself as it doesn’t feature some of the main aspects that I would of liked, I am happy however that I eventually was able to be able to match terms and produce unique sayings for each number.

You May Also Find These Documents Helpful

  • Good Essays

    CGS 2531 Notes Ch. 1-5

    • 2861 Words
    • 11 Pages

    Right click the letter or row number for which you want to insert a new column to the left or a new row above……

    • 2861 Words
    • 11 Pages
    Good Essays
  • Better Essays

    Imp 1 Pow 4

    • 892 Words
    • 4 Pages

    For the last scenario, there were still only three different color gumballs in the gumball machine. But this time there were three kids. So I drew up another set of possible gumballs that could roll out of…

    • 892 Words
    • 4 Pages
    Better Essays
  • Satisfactory Essays

    Learn how to play lottery and its ins and outs through an extensive guide that walks every reader through the key and essential points of the game. From rules, tips, all the way to advanced strategies, every reader—new or experienced—is ensured to benefit from the significant writings.…

    • 257 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    HIS 204 Week 3 Assignment

    • 409 Words
    • 2 Pages

    This archive file of HIS 204 Week 2 Quiz shows the solutions to the following problems: ...…

    • 409 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Problem Set 2 1

    • 487 Words
    • 2 Pages

    Problem Set 2 is to be completed by 11:59 p.m. (ET) on Monday of Module/Week 4.…

    • 487 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 3 Student

    • 1264 Words
    • 7 Pages

    Step 3: Write the exact output you would expect from the following line of code if the user of the program enters “Nolan Owens”. (Reference: Displaying Items, page 40 – 41).…

    • 1264 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    House Bill 54, created a lottery in Texas, which was signed by the Governor in a special session of the 72nd Legislature. The lottery Act required voter approval before taking effect. (2) The Texas Lottery Commission was created in 1993 (House Bill 1587, 73rd Texas Legislature, Regular Session). Its primary purpose is to administer the Texas lottery, which had been authorized by a constitutional amendment approved by the voters in November 1991, and which had been administered by the Office of the Comptroller of Public Accounts, 1991-1993. The commission's executive director is required to exercise strict control over all lottery games conducted in Texas, to ensure integrity, security, honesty, and fairness. The commission licenses lottery ticket sales agents, and in so doing conducts investigations into the criminal history of potential licensees (using records from the Texas Department of Public Safety, the Federal Bureau of Investigation, the Internal Revenue Service, and other law enforcement agencies). (3) Any funds collected above the lottery's operating expenses (i.e., less 10% used for lottery administration, plus at least 5% as commissions to ticket retailers, plus payment of prizes) are considered revenue and are transferred to the unobligated portion of the state's General Revenue Fund. No political subdivision of the state may impose sales taxes or ad excess taxes on lottery tickets or on prize payments; however, the following may be deducted from the prize: money owed in delinquent taxes, other money owed to the comptroller or the Alcoholic Beverage Commission, money owed in delinquent child support payments, or money owed in default on a guaranteed student loan. The Lottery Commission's Charitable Bingo Operations division licenses and regulates charities authorized to conduct charitable bingo games, those who manufacture or sell bingo equipment, and those who lease facilities where charitable bingo is played. The commission collects a 3% bingo…

    • 402 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Discrete Mathematics

    • 954 Words
    • 4 Pages

    Part II: The implementation of the program that runs the game involves testing. One of the necessary tests is to see if the simulated spins are random. Create an n-ary relation, in table form, that depicts possible results of 10 trials of the game. Include the following results of the game:…

    • 954 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Bingo Winner

    • 1005 Words
    • 5 Pages

    You feel how out of place the protagonist feels in this place. For the second half of the story, the Bingo Winner moves to the front of the stage where he gets to spin the wheel for a chance to win the final prize. Here is where the story takes a mysterious and strange twist. Point of View The story is told in the third person limited omniscient by the narrator.…

    • 1005 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    A student named Dashawn was chosen to help prepare for an activity, Sight Word Bingo. He was instructed to give each student a bingo card. Deshawn perform the task beautifully. Mrs. Thomas also ask Zoe to assist her in preparing for Sight Word Bingo. Zoe's task was to give each student 8 tokens or coins to cover the site word or letter.. Zoe was an excellent helper.…

    • 399 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    If one answers a math problem incorrectly, it shows the correct answer before moving on to the next math problem. If one gets several problems wrong, it shows the percentage of the problems that one answered correclty. If one gets several problems correct, it shows the percentage and a bee named Zoey Zinger, the game mascot, flyes onto the screen and the narrator says, "Keep on buzzing Zoey Zinger."…

    • 213 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Lottery tickets should be our priority area. This means a separate counter to serve these customers to minimise queuing time and maximise customer service. It also means a comfortable counter to enable customers to choose their lottery numbers.…

    • 1922 Words
    • 8 Pages
    Satisfactory Essays
  • Better Essays

    Decimals Misconceptions

    • 1145 Words
    • 5 Pages

    | Use the extended place value chart to reinforce placement and value of each digit.…

    • 1145 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Report. Tic-Tac-Toe

    • 980 Words
    • 4 Pages

    The aim of the report is to describe how Tic-Tac-Toe game simulation was made with the help of MATLAB. The report describes how program reads the code and computer strategy for winning/not losing in the game.…

    • 980 Words
    • 4 Pages
    Good Essays
  • Good Essays

    The return to player rate is 96%, which is not extremely high, but the nice fact is that you get hits 41% of the time. Maximum win with the slot’s non-progressive jackpot is £93,750.…

    • 766 Words
    • 4 Pages
    Good Essays

Related Topics