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

C programming board game

15/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:

Assignment Guru
Financial Hub
Calculation Guru
Premium Solutions
Innovative Writer
Top Essay Tutor
Writer Writer Name Offer Chat
Assignment Guru

ONLINE

Assignment Guru

I have read and understood all your initial requirements, and I am very professional in this task.

$17 Chat With Writer
Financial Hub

ONLINE

Financial Hub

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

$39 Chat With Writer
Calculation Guru

ONLINE

Calculation Guru

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

$49 Chat With Writer
Premium Solutions

ONLINE

Premium Solutions

I will cover all the points which you have mentioned in your project details.

$43 Chat With Writer
Innovative Writer

ONLINE

Innovative Writer

I have read and understood all your initial requirements, and I am very professional in this task.

$22 Chat With Writer
Top Essay Tutor

ONLINE

Top Essay Tutor

I have read your project details. I can do this within your deadline.

$31 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

Hltwhs002 follow safe work practices for direct client care - Which part is primarily responsible for conducting foreign relations - Software design course specifications - Read the case study "the estimating problem" on page 734 and then answer the questions on page 735. - Duke public policy phd - Consultant's analysis report on enterprise systems - Ucl postgraduate personal statement - First year of College Seminar - Mental Disorder Project - Widespread acceptance of the great sport myth leads people to - Research Paper - Anode heel effect definition - Discussion - Bunyip state forest camping - Lemonade target market - Present value of uneven cash flows - Break even analysis worksheet - Baking soda and vinegar limiting reactant lab - Free wheeling diode waveform - How to create a frequency table in minitab - Priory high school penwortham - Levels of training needs assessment - Nursing discussion - The complete textbook of phlebotomy pdf - Userinfo getusertype in salesforce - How carders make money - Peter pan window scene - Invasive species online game - The five major environmental forces in a marketing decision are - Why is the long run aggregate supply curve vertical - Torrid apex vs ghost whisperer - Ben & jerry's promotion - What are the defining characteristics of the phylum porifera - An introduction to programming using visual basic 2012 solutions - War horse chapter 2 - Economics - Indirect competitors of nike - Cobit domains and control objectives - There are 3 specific classes for all fingerprints - Ecu nurse practitioner program - Organizational change and employee engagement - Rebel fm gold coast - Part 2: BRD - Cqu moodle - Oxidation reduction practice quiz - How to draw price elasticity of demand curve in excel - Words to use when analysing text - Art yasmina reza monologue - Siop powerpoint presentation - Nelson chemistry 12 hess's law lab answers - Multinational Company Project - How to determine square yards from square feet - Sci 163 week 2 nutrition and physical fitness plan - Armstrong and miller youtube - Skin soap note - Everyday use literary analysis - Input codes for ralph breaks the maze - Gardner's theory of multiple intelligences quizlet - 107nurd4FR - N491 Assignment Mod 8 - Sweep frequency response analysis pdf - Vagisil syncope - Pedigree chart for colour blindness - Fish cheeks by amy tan worksheet - Marpol annex vi regulation 14 pdf - Did macbeth kill banquo - 71 victory parade tascott - +971561686603 Abortion pills in Dubai/Abu Dhabi-mifepristone & misoprostol in DUBAI - Paper - Physical properties of paper - Hid proximity entryprox manual - Community Corrections - The supply curve for product x is given by - Discussion needed by Thur @ 6pm - Deconstructing Adaptive Leadership - How to cite aca code of ethics 2014 - The level of various substances in the blood - Cima f3 practice exam - Tqm's two core principles are _____ - Dr john hearne booragoon - Write an argumentative essay about Santa claus - Groups' influence on consumers is strong primarily because - Bibl 104 bible dictionary project - Financial management - Liquid units of measurement - Anthracene and maleic anhydride product - Abm voltage source multisim - Python lists are commonly used to store data types. Lists are a collection of information typically called a container. - Marriage families and separation brochure - Assignment 1: Procedural Law and the Bill of Rights - Locating Credible Databases and Research - Iron 3 nitrate and potassium thiocyanate - DQ - Physical security plan - Psychology vce study design - Ap lab report format - Discussion Board : Where does our trash end up? - Gauri nanda clocky - Back lever muscles worked - Ethics