Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Battleship game program

19/04/2021 Client: muhammad11 Deadline: 2 Day

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

after 5 hits; and (4) an integer member that keeps track of the number of hits on

the battleship – note that a battleship is sunk after 4 hits.

3. Update the function to display the game board by adding another parameter used to indicate whether or not to “reveal” the solution with ship positions visible or to display the current, active board. In displaying the board, you will display an ‘X’ for each position where a torpedo shot hit either ship and ‘O’ for each position where a torpedo shot missed a ship. If the “reveal” is not set, you will display a blank space for any position that is open (i.e., no ship is assigned, nor has a torpedo shot been fired) or contains a ship. If the “reveal” is set, you will still display a blank space for any position that is open, but will you display a ‘B’ for each position containing a battleship that has not been hit and an ‘A’ for each position containing an aircraft carrier that has not been hit. You will call this function to display the updated board after every torpedo shot fired by the user. During the game, “reveal” will not be set. However, after the game is won or lost, you will call this function with “reveal” set to display the board.

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Top Rated Expert
Accounting & Finance Master
Calculation Master
Financial Solutions Provider
Pro Writer
Top Class Engineers
Writer Writer Name Offer Chat
Top Rated Expert

ONLINE

Top Rated Expert

Give me a chance, i will do this with my best efforts

$45 Chat With Writer
Accounting & Finance Master

ONLINE

Accounting & Finance Master

Hello, I an ranked top 10 freelancers in academic and contents writing. I can write and updated your personal statement with great quality and free of plagiarism

$19 Chat With Writer
Calculation Master

ONLINE

Calculation Master

I have read your project details. I can do this within your deadline.

$43 Chat With Writer
Financial Solutions Provider

ONLINE

Financial Solutions Provider

Hello, I an ranked top 10 freelancers in academic and contents writing. I can write and updated your personal statement with great quality and free of plagiarism

$48 Chat With Writer
Pro Writer

ONLINE

Pro Writer

I have read and understood all your initial requirements, and I am very professional in this task.

$26 Chat With Writer
Top Class Engineers

ONLINE

Top Class Engineers

I have read and understood all your initial requirements, and I am very professional in this task.

$38 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Discussion Board - Bobby dazzler cockney slang - Rate of change - Postcode for gisborne nz - Final report 7 pages due by 24 hours - Creating a multimedia presentation student guide - Figs and wasps video - Www ucmp berkeley edu exhibits historyoflife php - SUMMARY OF AN ENGINEERING ARTICLE - Multiple Choices . Answer A/B/C/D/E directly - Swallow the air summary - Mlk the purpose of education rhetorical analysis - What is the difference between catabolism and metabolism - What is the name of the compound shown here - Leadership course - Team Leadership Practical Application - Pracconnassignoperations - Idea accounting software - Effective business writing quiz - Reverse saturation current of silicon diode - This is a partial adjusted trial balance of barone company - Understanding business research terms and concepts part 2 - Expository essay - An asset turnover ratio of 1.75 can be interpreted as - Closed feedwater heater analysis - Henna co produces and sells two products - Metonymy examples in hamlet - 1982 horror film mistress crossword - N491 Discussion Mod 4: - One major avenues for achieving a cost advantage over rivals is by - Studies in Arts and Humanities 4 PAGE PAPER!!!! - C&EBW5DR - Management - Crypto Week 8 discussion Posting - Hilux brake controller wiring - Pandora jewelry competitive advantage - List of driver knowledge test questions - Discussion post - Which gas is easily liquefied - Cases in operations management pdf - Discussion question - The fashion channel harvard case solution - Project Work - Business discussion - Raf halton basic training - Case study topics in nursing - Mgt 420 exam 2 - What is market domain - PsychoTherapy Disc 8 - Niscc public facing register - On april 1 2015 jiro nozomi created - Analysis draft paper - Waves word search answers - Evergreen company sells lawn and garden products to wholesalers - Is suddenly a transition word - Cathay pacific pilot roster - Freemason 2nd degree salute - So what's so bad about being so so summary - Cricket life cycle diagram - Robin hood case answers - Stock valuation questions and answers - Www mhhe com biosci genbio virtual_labs bl_16 bl_16 html - Virus explorer hhmi answer key - Jill mccorkle her chee to heart - SCIN Elemental Discovery and Application - Converting k to c - Mac genie food truck indianapolis - The lady of shalott part 3 summary - Combat fire inc manufactures steel cylinders - MKTG201 Week 7 Discussion - Strength and one weakness - As 400 commands tutorial - 0olo - Optimum custhelp app answers list 136 138 search router - The curious researcher chapter 1 - Counseling - On first looking into chapman's homer rhyme scheme - Force field analysis examples of driving forces - Aqueous solution of silver nitrate and sodium chloride - The dynaco manufacturing company produces - 4 pages full due by 24 hours - Walter mischel's view of situationism implies that - Deliverable 5 - Hypothesis Tests for Two Samples - Clover animal farm characteristics - Ethics 2 - Villanova master black belt certification - Audi r8 optional extras - Subjects of civil law - Jane addams why women should vote - Estimating unpaid claims using basic techniques - Umicore thin film products - Vector Biology - Portfolio Project - My father began as a god - Design formula for inset fed microstrip patch antenna - Twinkle twinkle little star circumference equals two pi r - Linux exercises for beginners - Discussion - HOMEWORK - Ucl spss software download - What rule applies most closely to this word deplore