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

IT - Conflict resolution paper example - The least productive marine ecosystem is the - Square root transformation formula - Grid connected pv systems design only - Global business today mcgraw hill - Rebecca j donatelle health the basics pdf - Sleep number bed assembly instructions - What are the primary and secondary dimensions of diversity - Activity 7 - John f kennedy moon speech text - Peanut growers cooperative marketing association - Levels of analysis framework - Mr dutoit was asked by his psychotherapist - Explain how dna sequences are used in classification - The ugly american chapter 1 summary - Interval notation domain and range calculator - Iteration question - due in 6 hours - Week -3 research paper -832 - Essential elements of a contract in business law - What are the five major categories of pricing strategies - Hudl camera not working - Integrated listening systems side effects - Gcu professional dispositions - Social Work: Assignment 1 - In the heart disease diagnosis case study, what was a benefit of the sipmes expert system? - For anyone - Reimbursement methods in health care - Goals for impaired physical mobility - The task of stitching together a strategy - X 2 2x 10 0 quadratic formula - La migra en la walmart - Like Water for Chocolate movie review - Smitty's men's & boy's wear - Why does isabella fall in love with heathcliff - OPERATIONS MANAGEMENT - 600 word discussion: Describe how IT/IS can be used to resolve a management issue in your business organization. Please provide examples. - Costco wholesale corporation case study - In the accompanying figure the split double arrow mouse pointer - Probability of getting a black card - Policy and legal_8 - Jointcommission org standards_information npsgs aspx - Cyclone yasi destroyed banana crops - Tim mcmullan foyle's war - Raychem e 100 la - Cwu early childhood education - MENTAL HEALTH - Beer game bullwhip effect - The surfer judith wright analysis - Orana nursing home deniliquin - Presented here are the components in casilla company's income statement - Character analysis jay gatsby - The lost man chapter summary - 6 page essay - New century wellness group - Is everyone really equal second edition - Force field minecraft hack - Middle road media case study - Construct a flexible budget performance report - Homework 3 - Spark plug catalogue pdf - The legend of sleepy hollow chapter 1 - 14 1 condensed states of matter worksheet answers - Data augmentation for regression - Overview of the six kingdoms - Cultural intelligence the essential intelligence for the 21st century - Edit My Paper Narrative Paper - Beekeepers nature reserve wa - Watch Film and answer questions - Farnham royal village hall - Cwv topic 5 review - Australian army cadets handbook - Onity key card machine - A pair of star crossed lovers take their life technique - Literature review on the topic: In –Patient stress reduction - Total net operating working capital - Reciprocal space mapping tutorial - Ww raga - Litton industries uses a perpetual inventory system - Speed of a toy car lab report - Www mdc edu student portal - Ato fast key codes bas agent - Kmtc line vessel schedule point to point - Panjim's 2015 cash flow from financing activities is - How to solve fourth order equation - Jumping for the jelly beans herzberg - Warning opd error http error 12007 - Pavel tsatsouline height weight - Which silent messages does a business letter convey - Money for nothing inside the federal reserve answers - Module 3 Discussion - Is the Juvenile Justice System Just? - London dispersion forces in alcohols - Attention getter for diabetes speech - 3 day food intake paper - Kings lynn borough council - Robert frost nothing gold can stay - Queen of the night cactus care - Journal - Unit 7 Discussion 2 - Ethics 2