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

What is an arena stage - Penn foster writing skills part 2 answers - Lloyds bank summer internship - Exploring strategy model - Chapter 8 data analysis and statistics answers - Investorplace media llc lancaster pa - Purnell model - Introductory Speech Outline - Www brims co uk romans - Global technology's capital structure is as follows - Axa actuarial graduate scheme - Time warner inc investor relations - Roman Empire Civ - When Heaven Meets Horror: A Tale of a Hellish Experience on Earth - Just walk on by a black man ponders comprehension - Disaster management - One systems 104 hth - Fire prevention inspection and code enforcement 3rd edition answers - Hbr working capital simulation for sunflower nutraceuticals - Tata nano the people's car case study solution - Legacies by nikki giovanni thesis statement - Freedom on my mind pdf - Stt welding stainless steel - 3123 linden avenue bakersfield ca - Shadow Health: Focused Exam: Cough Results - The oxbow thomas cole color - Business Management 465 - Agriculture Class questions - Average bond enthalpy definition ib - Future pro goaltending essentials book - Blackboard.utdl - Five stages of the helping process - Black card revoked petty edition amazon - Rl series circuit calculator - Rhetorical analysis of a song assignment - Assignment 450 words - Charging system output test - How salt affects the freezing point of water - How does your engine run program - Proportional parts in triangles and parallel lines - Netflix company vision - Cloud Conference Presentation (14 PPT slides) - The right to be heard implies that companies should listen to consumer complaints and - Analyzing a poem worksheet i wandered lonely as a cloud - Art Analysis Paper - Formal Analysis - Airbnb annual report 2015 pdf - Romeo and juliet references in songs - Word module 2 sam exam answers - Leveled literacy intervention research - Can aqua dragons eat fish food - The general name for the deepest portion of any basin is - 5505 san diego edinburg tx 78542 - Conclusion ohm's law lab report - 3 Discussion Questions, 3 Student Responses, 2 Papers ... - Sharp essay blc - Skills approach to leadership - 3 pages - Followership - Virtual lab natural selection table answers - 1 page due 24 hour - Write a Audit report and Do a powerpoint presentation - Business research management - Drama Analysis - Mole day project ideas - Calculate the emf of the dry cell, in volts. - How to build a marble launcher - Metal shop safety rules - Cookie stealing using xss - Wgu evidence based practice task 1 2018 - 250words use 2 sources - Https www internetsociety org tutorials your digital footprint matters - Discussion 2 - Applied finance centre mq - I need help with my homework - China's three gorges dam guided reading questions answers - Make haste while the sun shines bible - The price of everything eduardo porter pdf - QUIZ - Middlesex county netball association - Family Health Assessment Part 1 - Strengths and weaknesses of consumer oriented evaluation approach - In the park gwen harwood techniques - N/A - Cultural Approaches to Organizational Communication - Sound devices in ozymandias - Dr nick aspres liverpool - Labor Relations and Management - Calculation condition qlik sense - Religion- Reflection Paper 3 - How to calculate case mix index for hospitals - Duty calculator pitney bowes - Puma segmentation targeting and positioning - Discussion Board - Formulas and oxidation numbers lab answers - Miles into kilometers formula - Jason robert bourque and daniel george mcallister - One Discussion and Two - Eurotunnel project finance case study - Wk 1 – Signature Assignment: Professional Goals Paper - Quality associates inc case problem solution free