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 codecademy answers

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

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

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:

Solutions Store
Financial Assignments
High Quality Assignments
24/7 Assignment Help
George M.
Top Academic Tutor
Writer Writer Name Offer Chat
Solutions Store

ONLINE

Solutions Store

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

$16 Chat With Writer
Financial Assignments

ONLINE

Financial Assignments

You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$33 Chat With Writer
High Quality Assignments

ONLINE

High Quality Assignments

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

$44 Chat With Writer
24/7 Assignment Help

ONLINE

24/7 Assignment Help

You can award me any time as I am ready to start your project curiously. Waiting for your positive response. Thank you!

$49 Chat With Writer
George M.

ONLINE

George M.

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

$37 Chat With Writer
Top Academic Tutor

ONLINE

Top Academic Tutor

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

$29 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

Food dye chromatography results - Vanadium iii carbonate formula - 65 atheldene drive glen waverley - Benefits of autocad electrical - Home baked bread sally croft - Need a paper done in APA format related to managing technology operations - BE D7 - Discussion - Unveiling the Legitimacy of EssayService: A Critical Analysis - The first cross cultural missionary team was - The contemporary reader gary goshgarian pdf - 12 hour cough relief target - Transition words purdue - Four main cycles of genre movies - Lms motorsports grants pass oregon - As discussed in your textbook the implicit association test iat - The real story behind apple's famous 1984 super bowl ad - College students need their sleep answers - Chapter 10 nervous system - Accounting Report - Why i want to be a chief petty officer essay - Reasons why government intervene in business - Course of Study Impact - A market research company wishes to find out - Paul westwood forensic document services - Which numerical summary is used for categorical data? - Aesthetics in early childhood education - Blank map of europe 1812 - Week 2 home work: Scanvenger hunt - Jakaranda never let you go spotify - CJT202 DISCUSSION - 4 number combination lock possibilities - Need answer for Discussion question 300 words each with 2 peer responses. - Public health engineering department chhattisgarh tender - Nsw fire brigade retired members - Accumulator register in 8085 - 6 - Roman legion marching speed - Project Mgmt Process - Reflection, Discussion and Assignment - What are persuasive devices - Final project / presentation slide - Current key trends in data warehousing - Duncan robertson all black - Maine anjou street box hill - Group therapy - Creative Solutions - Functional behavior assessment interview form - Select the statement that is true for apa formatted citations - Stage directions the crucible - Theme of the poem if written by rudyard kipling - PHd Isaac Newton - Kite runner chapter 6 - Formula mass of glucose c6h12o6 - Assignment 3: Risk Workshop And Risk Register - Csu cross institutional study - Sandra cisneros woman hollering creek summary - Commanding heights youtube - Disc 5 - Week 2 - Security Architecture and Design - Class 2 Assessment 1 - Mind tools communication skills quiz - Order # 9658 - Planet fitness deals march 2018 - 3 16 time signature - Personal selling in b2b marketing ppt - Catawba industrial company case study solution - OUTLINE Paper for a Technical Writing class - Naeyc code of ethics pdf - Entity type and entity instance - Vms peopleclick com login entry asp - Liquid nitrogen experiments for high schools - Genetic disorder brochure project - Is tara bethan married - Product market fit canvas - Engstrom auto mirror plant root cause - Vcaa past physics exams - Ten 4 bruising rule - How do you figure square miles - Katherine c intervention follow up - Ac white lawyers ayr - How does emilia die in othello - Lab report on uv vis spectroscopy - Nursing Theory Disc# 3 - What does uncle jack learn from scout - The civically engaged reader - Southwest airlines in 2014 culture values and operating practices - Competency based recruitment and selection ppt - Www.mycapella.net login - Hcf silver extras plus - Audi a4 convertible roof position sensor - Coaguchek xs system manual - Core concepts in cultural anthropology 7th edition pdf - Leeds beckett online welcome - Fidden farm campsite cost - Zat you santa claus - Strategic management planning for domestic & global competition 13th edition - Name three stains that can be used for negative staining - How much is a bowl of chili at wendy's - BI A - Discussion: Implementing a Revision Strategy