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

    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

    The main idea of Wick’s article is that Bingo is a very addictive game especially popular with elderly American people. By explaining the detailed experience in the Bingo hall she gives us the idea of how to play bingo and also how much interesting bingo could be, In fact people in the bingo hall are so much focused on the game that they do not even have time to go to the bathroom. Since everyone came to play bingo by hoping to win, some people did not seem happy when a new comer won the big prize, the blackout.…

    • 529 Words
    • 3 Pages
    Satisfactory 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
  • 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

    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
  • 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
  • Satisfactory Essays

    With his written guide, you had to find out the numbers from the previous 7 draws and use those together with his formula to calculate the possible upcoming winning numbers. This calculation may have put off a lot of people despite the fact that thousands…

    • 779 Words
    • 4 Pages
    Satisfactory 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
  • Satisfactory Essays

    Output 7,60% 0,00% 15,00% 10,00% 0,00% 0,00% 0,00% 5,00% 0,00% 7,00% 1,00% 7,00% 0,00% 3,00% 87,78% 100,00% 79,05% 89,10% 93,00% 100,00% 97,00% 144,11 126,50 126,50 100,00 89,10 82,86 82,86 80,38 1,79 1,57 1,57 1,24 1,11 1,03 1,03 100,00…

    • 1051 Words
    • 5 Pages
    Satisfactory 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