Miss Natalia

(14)

$20/per page/Negotiable

About Miss Natalia

Levels Tought:
Elementary,High School,College,University

Expertise:
Accounting,Business & Finance See all
Accounting,Business & Finance,Calculus,Computer Science,Environmental science,Health & Medical Hide all
Teaching Since: Apr 2017
Last Sign in: 359 Weeks Ago, 6 Days Ago
Questions Answered: 6064
Tutorials Posted: 6070

Education

  • Doctor of Education in Educational Leadership with a Specialization in Educational Technology
    Phoniex University
    Oct-1999 - Nov-2005

Experience

  • HR Executive
    a21, Inc.
    Nov-1998 - Dec-2005

Category > Business & Finance Posted 05 May 2017 My Price 10.00

This lab looks at defining a multidimensional array type and some helper subprograms

This lab looks at defining a multidimensional array type and some helper subprograms for writing a TicTacToe program. Note that this is somewhere between a regular lab and a programming assignment. It will be graded accordingly.

For this lab you are allowed, but not required, to do pair programming where two students work on the program together. If you do this, please submit one (1) printout and one (1) uploaded file with both of your names on it. You are expected to both contribute to the program and to take turns typing in the content.

Due: Wednesday, May 3, 2017

  1. Open the following link: TTTLab.adb Save the file as Y:\Ada\TTTLab.adb

    View the directory listing in Windows Explorer to confirm that the file is now in your Y:\Ada subdirectory.

     
  2. Launch AdaGIDE. Open the file you just created, Y:\Ada\TTTLab.adb.

     
  3. The code is an Ada program that has comments that indicate what its functionality should be. Your task is to:
    1. Implement the body of IsFilled. This function should return true when all board positions have an X or O, and return false otherwise.
    2. Implement the body of DisplayBoard. This procedure should output the TicTacToe board in a nice readable way. You will want to use vertical bars (|) and dashes or underscores to make a grid. When the value of a particular board position is Blank, you will want to output blank spaces (rather than the word Blank). For that reason, you probably do not want to use an enumeration_io package.
    3. (Do the first two before this one) Implement a function (or procedure if you prefer) to determine if a player has won the game according to the standard rules of TicTacToe. Don't forget about diagonals. Modify the main program loop to stop either when there is a winner or when the board is full. Report the winner.

Answers

(14)
Status NEW Posted 05 May 2017 06:05 AM My Price 10.00

Sol-----------uti-----------ons----------- fi-----------le ----------- He-----------llo----------- Si-----------r/M-----------ada-----------m -----------Tha-----------nk -----------you----------- fo-----------r y-----------our----------- in-----------ter-----------est----------- an-----------d b-----------uyi-----------ng -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I-----------

Not Rated(0)