Create a 3 dimensional array

Assignment Help Computer Engineering
Reference no: EM13323752

Create a 3 dimensional array. The array should be initialized to zeroes. Create a program that will accept entries for ship locations. Ships will have to have the same Z value. In other words, the ships will all be horizontal. Enter a total of five ship locations. These can be between two and three element long ships. You will need to enter the ship length, starting coordinates and ending coordinates. Values of 1 will be placed in these elements. After you have entered 5 ships, then change the program to accept element positions where you are firing at the ship. If a 1 exists at the location, the print an alert showing you have struck the ship.

If all the elements occupied by the ship are hit, demonstrate by sending out 5 alerts and printing ship sunk.

 

Reference no: EM13323752

Questions Cloud

The sodium flouride solution and hydrofluoric acid solution : During an experiment, a student mixed 14.5 mL of a .5 M sodium flouride solution with 15.6 mL of a .750 M hydrofluoric acid solution. The measured pH was 3.24. Calculate the pKa.
Design a gui program that calculates a car gas millage : Design a GUI program that calculates a car's gas millage. The program's window should have text boxes that let the user enter the number of gallons of gas the car holds, and the number of miles it can be driven on a full tank.
What is the magnitude of its dipole moment : A dipole has a +5e charged particle and a -5e charged particle separated by a distance of 6 nm. What is the magnitude of its dipole moment
Explain the difference between a real wage and a nominal : How do the income and the substitution effects determine the slope of the labor supply curve?
Create a 3 dimensional array : Create a 3 dimensional array. The array should be initialized to zeroes. Create a program that will accept entries for ship locations. Ships will have to have the same Z value.
Explain what is the daily production of calcium sulfite : If the coal is burned in teh DPH power plant that uses 2300 tons of coal per day, what is the daily production of calcium sulfite, if the conversion is 98%? if 50 pounds of calcium oxide costa $13.50 how much does DPH power plant per day for CaO
Why application designed and written for intel architecture : Determine at least five advantages and five disadvantages of using bytecode or Intermediate Language (IL) in computer applications.
Calculate the new wacc : Calculate the New WACC and briefly discuss in your report if this new WACC and capital structure might signal the market and investors
What was their initial separation distance : Two charges are brought together until they are 90.0cm apart, causing the electric force between them to increase by a factor of exactly 6. What was their initial separation distance

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe the steps to complete the list

Promotion time is coming around the corner. In the last board meeting, your supervisor has asked someone to make a list of tables for a Fernandos Skate Shop customer orders.

  Can a relation be stored as a sequential file

How various times should a user be allowed to mistype a password before the conversation is terminated.

  Imagine that a doubly linked list "header"

Assume that a doubly linked list "header" stores the elements of a priority queue. make use of the function pop(), which deletes the element with the largest value from the list (priority queue).

  How to developing an information management framework

List and describe the steps involved in developing an Information Management framework.

  Explain executives based on their needs

assume that you acting as an IT consultant for them. What software solutions would you recommend to your executives based on their needs? Explain your answer.

  Create a database to keep track of all the students

explain how you would design a database to keep track of all the students at a university. describe tables, relationships, attributes, Primary Keys, Foreign Keys, Candidate Keys. Describe minimum and maximum cardinalities for each relationship. Ma..

  Explain the averaging algorithm

Explain the averaging algorithm

  Change in behavior that occurs as a result of experience

Give an instance of such a "lesson" that helped you to improve your job performance. Try to generalize this isolated experience of yours into a "training method" that would help others to improve their performance as well.

  What exactly are static and dynamic chains

Do I have although information to do this problem and What exactly are the static and dynamic Chains? I am not a programmer and I am trying to get this right.

  Design a simple web-page designed to meet

design a simple web-page designed to meet the following requirements:

  Related to investment in stock group

Specify the minimum amount Trader must invest in each stock group in order to achieve the investment goal?

  Define the type of input data used

express the type of input data used for a business related function.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd