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

NUR495promptw2 - Post A Description Of Two Adolescent Risk-Taking Behaviors - MGMT3500 Weekly Homework 1 - "Hang the DJ” - Essay on is mobile necessary for students - Internal review infringement letter samples - Genichi taguchi contribution to quality management - Fernwood unit newark hospital - Case Study: Handling Disparate Information - Entrepreneurial Venture Plan Paper | DUE IN 24 HOURS - Psychology: Person-Centered Coaching - Cloud Computing - Research Paper - 7.2 3.7 lab troubleshooting advanced eigrp - Need help writing classification essay - Jomo kenyatta the gentlemen of the jungle summary - 45 degree reference line economics - Possible 5 digit combinations 0 9 - 2 coments each one 150 words (CITATION AND REFERENCE) - Domestic Violence Statistics - Signs of safety appreciative inquiry - Barbarian at the gate stock meaning - Cloud computing 5 - Scope of Practice and Patient’s Healthcare Accessibility - 300 words - Split half method of reliability testing - Australian gifted support centre - Business report title page - Iom six aims of quality health care - Lost title application vic - All my own work module 4 answers - The container store's secret to success employee satisfaction - English 102 - How to calculate isbn 10 check digit - Peter stoner prophecy probability - Billy elliot movie final scene - Organisational Theory - I have seen some reddish work done at night - Inno setup script examples - Directions to western carolina university - Phone book application in c program - Case brief . white collar crime - Herbalife shake price list - Business of Sport - Personality plus 4 types - Dod o 8530.1 m - Kiss the devil spray challenge - Case study on bone tissue structure and repair - Cyclone hollanda ile maurice - Belkasoft acquisition tool download - Example breakdown structure for coffee shop - Vce physics formula sheet 2019 - California History - 1 page - Turnaround at the preston plant - Harrison bergeron questions and answers - Literature - A can of bull case study - Handover document template free - Automatic floor cleaning machine project - Bend it like beckham sociology - Qut library room booking - Analysis of home burial - The Genesis of Labor Unions; The Teamsters - Organization leadership & decision making - Http mpsweb intranet mps - Www dfs ny gov insurance elec license req htm - Tract root word meaning - Ships load line marks - Chatr wireless vs public mobile - Nail varnish crossword clue - My aqua dragons have not hatched - Brannigan foods case - Johnson and johnson case study - 300 words - Discussion - LDR531 Week 6 FInal Exam SCORE 90 PERCENT - Guyland chapter 4 summary - Bosch hot water 10p - International nut and dried fruit council foundation - A piston cylinder device contains 0.85 kg of refrigerant - Angewandte chemie endnote style - Propose a nursing informatics project for your organization - Deakin university computer science - 10 plagues egyptian gods chart - Hailstone construct wow - Apply blue tissue paper texture excel - Extrinsic factors in sport - What is a flexible budget performance report - Cl luminaire ip65 tube - Karate do game codes - Florence foster jenkins death - Upper intermediate reading texts - Individual tax return problem 3 rhonda hill - Country manager latin america simulation answers - A therapist at a free university clinic treats elementary school - A practice known as dumping involves: - Worcester danesmoor 12 18 manual - Lif5800rl p smoke alarm manual - Business - Logistics and supply chain practice - Performance Appraisals in Development and Evaluation