Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 11 Weeks Ago |
Questions Answered: | 4870 |
Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Can you help me with this program, I'm not sure how to start
Â
Page1of7ITP 165: Introduction to C++ ProgrammingHomework 6: Tic-Tac-ToeDue: 11:59pm, March 4th, 2016GoalFor this assignment, you will be making a game! You will be implementing the two-player game Tic-Tac-Toe. Part of the logic has been taken care of for you and provided to you in the form of an alreadystarted .cpp file. You will be filling in the missing code for one function and creating another fromscratch. This assignment will give you practice with calling and creating functions that have input andreturn values.Setupï‚·Create a new project in Visual Studio or Xcode calledhw06and add the existing file namedhw06.cppto your project. The file is included with your homework write-up on Blackboard.ï‚·Yourhw06.cppfile must begin with the following (replace the name and email with your actualinformation):// Name// ITP 165, Spring 2016// Homework 06// USC emailPart 1: PrintBoard functionï‚·To begin, you will be making a function to display the game board. Be sure to include thefunction header comments to document the name, purpose, parameters, and return of thefunction.ï‚·This function will be called PrintBoard and will return nothing. It has one input parameter of acharacter array that is meant to hold the game board.oThis function will display a 3x3 grid and outputs every element of the character array inthe corresponding grid spot.oYou may assume we will always have a size 9 array (the typical number of spaces on aTic-Tac-Toe game board).ï‚·Now you need to test your function in main. Create achararray of size 9 initialized with thecharacters1-9.ï‚·Next, call the newly implemented PrintBoard function with thechararray from main as aninput parameter to display the game board and test your function.ï‚·Your output in Part 1 should look something like:1 | 2 | 3------------4 | 5 | 6------------7 | 8 | 9Press any key to continue...
Attachments:-----------