I’m working on a Programming question and need guidance to help me study.
For this homework assignment, you will edit your Homework 6 to add functionality to play a simplified version of the classic game of Battleship on the screen/console. (I WILL ATTACH MY HOMEWORK 6 PROGRAM: homework6 program.docx )
You shall organize your program into three files:
• prgm.h will hold #includes, #defines, templates of any structure types, and a list of function prototypes.
• main.c will hold the local #include file as well as the main()function for the program.
• func.c will hold the local #include file as well all other functions (except main(), of course) used in the program.
2. Define a structure that contains the following four members: (1) a character member that holds the row used for the torpedo’s position on the board – note that this character may be a single character in the range ‘A’ – ‘J’; (2) an integer member that holds the column used for the torpedo’s position on the board –note that this integer has a range 1 – 10; (3) an integer member that keeps track of the number of hits on the aircraft carrier – note that an aircraft carrier is sunk