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

Is technology making us dumber synthesis essay - British museum search algorithm - Boots care learning answers - Techniques used in interpersonal psychotherapy - How many bones baby born with - Borders thomas king plot diagram - Explain corporate motives for forecasting exchange rates - Research paper scaffold worksheet - Conclusion of coca cola company - 8 pages in Counseling - Thompson smarter than you think - ME 3010 Project 1 Consider the planar linkage shown below - Quotations in a short story - The practice of statistics 3rd edition chapter 5 answers - How to speed up the cooling process of food - Av jennings home designs packages - Blocking drills volleyball beginners - Ethical Dilemmas - To study the earth's magnetic field using a tangent galvanometer - Examples of traditional research in education - Piedmont fasteners - Competency based assessment meaning - Write a research paper that contains the following - Do volcanoes form at divergent boundaries - What are common mythemes in myths and legends - Most scaled up vce subjects - Blackmores conceive well gold woolworths - Circuit construction kit phet lab - Eugene teo net worth - Blast and fasta in bioinformatics - Vhl repaso answers - 100 sweaty sweats challenge lululemon - Peter pan movie script - What is the equilibrium price and equilibrium quantity of pizza - Moreton bay marine park map - Orac beverages llc fargo nd - Three input components of the congruence model - Follow APA format - This is a Collaborative Learning Community (CLC) assignment. - 2 truths and a lie instructions - Precision engineered amino 1500mg 150 tablets - Module 7 trade terms quiz - Accu chek multiclix instructions - Assigment 22222 fund - Nurses as knowledge workers definition - The white company is a member of the lamp industry - Long term care week 6 - Loss of innocence archetype - Latec investments ltd v hotel terrigal pty ltd - Business model and competitive strategy of ikea in india pdf - Sea cadet number 1 uniform - Barbara flynn is in charge of maintaining - Affidavit of loss passport philippines - Science Experiment: Analysis - Statistics class 10 ppt - Stage 2 - Article Summary 1 - 2nd degree emulation ritual - Brooklyn dreams hollywood knights - Healthcare quality book 3rd edition pdf - Which of the following statements regarding six sigma is true - Steve martin death of my father - Summarizing and Analyzing Sources - An indian father's plea argumentative essay - Zwick valves north america - Describe a stationary front - Allusions in movies and tv shows - Apothecary in to kill a mockingbird - Read Aggressive Sales Quotas or Unfair Business Practice? and complete the questions at the end of the case study. - Teacher aide award wage qld - Nurses personal communication devices impact patient care - Experiment 1: observation of mitosis in a plant cell - Phet simulations balloons and static electricity answers - HA575 Assignment 6 - Coca cola push and pull strategy - Kilo mega giga tera peta - Action research data collection techniques - MANGAERIAL ECONOMICS - Riding with private andrew malone chords - What is straight numeric filing system - What is walt disney's mission statement - Data table 1 microscopic examination of the endocrine system - Online resources 5 - Simulink pid temperature controller - Trova le migliori suonerie gratis in formato MP3 qui! - Block business letter - Why would a holographic will be disallowed - Chapter 22 descent with modification a darwinian view of life - Ecf meaning mark scheme - Rereading america 11th edition pdf - Entity relationship diagram for college - What is the empirical formula of hydrogen peroxide - Osce physical exam checklist - Nursing case study hepatic encephalopathy - Write 5 pages argumental essay in MLA format - Pepper binkley marshall sebring wedding - Hair - Taelln411 answers - International journal of choice theory and reality therapy - BIOLOGY: Tissues and Membranes Assignment