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

Mount everest case study - C11 Week 3 Threaded Discussion - Sin and grace in christian counseling summary - Jfk in the butler - Which image is an example of an angular unconformity quizlet - Aircell 7 coaxial cable specifications - Brick lane doctors surgery - Lse behavioral science masters - Prewriting: Finding Key Passages - Gas turbine compressor surge - Kfc issues in india - Commonwealth bank sustainability report - James porter intertextuality and the discourse community pdf - The beginning inventory of merchandise at dunne co - Popular Culture's Perceptions of Sexuality and Aging - Church fire evacuation plan - How to determine if events are mutually exclusive - Financial reporting and analysis edition solutions - How many core electrons are in a chlorine atom - Motivation in education ppt - PLAGIARISM FREE "A" WORK 18 HOURS or LESS - America on film benshoff pdf - Bus 308 week 1 problem set - Case Study Assignment: Assessment Tools and Diagnostic Tests in Adults - Research Paper - MBA515 Week 6 Discussion 6 - Using cellphones while driving is dangerous persuasive speech - Successful Change Management - Product design technology vcaa - What is morrie's philosophy about money and power - Cold war dissertation topics - Nib ambulance only cover - Cover letter for vacation work - Biology - Lab - Lg electronics marketing strategy - Pierce the spaceman reading skill sheet answers - The aegean civilizations athens and sparta quiz answers - C489 fmea table - Crush seal o ring - Anu final exam timetable - How do open feedwater heaters differ from closed feedwater heaters - Www studypool com login - Arduino stopwatch serial monitor - It like pulling teeth by phil stephens answers - Intercultural communication - Chick fil a controversy toronto - Tv storyboard template word - Finance discussion 8 - Microeconomics 3 - Doublewide dealers has an roa of - Australian professional standard for teachers - Signal distortion in optical fiber - Week 7 E-marketing - Discussion - Touchstone 3.2: Draft an Argumentative Research Essay - The lost in space program at semco could be considered - Policy - Below are the questions based on the Blue Eyes/Brown Eyes Video. Please answer all of them. (You may wish to print out these questions for quick reference for when you go to write your paper) Students: please read all of the following questions. Think about what is being asked in each question. Then formulate in your mind what your answers to those questions would be. ER/SR Evaluate the significance of how Elliott used this exercise to teach the meaning of brotherhood and moral/ethical reasoning for overcoming stereotypes and relating to people who are different. CT/TR Discuss your overall reaction to “A Class Divided.” Respond to this thinking routine: Before viewing “A Class Divided” I Used to Think . . . After viewing “But Now I think . . . “ This change of mind is because? . . . SD Have you ever personally experienced discrimination? If so, what were the circumstances? How did you cope with stress? SR If not, what will you do in the future when you see or experience disc - Cinderella ate my daughter summary sparknotes - The drawing shows a frictionless incline and pulley - Afternoon delight ukulele chords - Gear drawing with dimensions pdf - The knight's tale study questions and answers - HURM Writer - Selection pressure peppered moths - Romeo and juliet kissing scene in pool - The tuskegee syphilis study was ethically problematic because quizlet - The definitive guide to recruiting in good times and bad - Warragul north primary school - Wish you wood toy store - Suss student handbook - 260 230 ratio dna - Attachment theory and social work values - No sugar spark notes - Fairness by chinelo okparanta - Unqualified structured reference - Black Mental Health - How to calculate mechanical advantage of a ramp - Buses from william harvey hospital to ashford international - Ezra pound's rules of imagism - Which of the following is true about using the various compositional modes for electronic media? - Monash late submission penalty - The President, the Congress, and the Economy - Reflection Paper-3pages - Eft signal part 1 - Cleanse wound crossword clue - Contrec batch controller 414 - Examples of education in to kill a mockingbird - Golds gym cancellation form - Discussion response - Contribution approach income statement example - Nursing practicum objectives samples - Universidad de guanajuato acceptance rate - World literature - Blueback tim winton summary - Justification memo template - Year 11 biozone answers - MHA500 Module 2 - Alexander cowan business model canvas - Lord of the flies movies