Implementing c++ program that simulates a submarine

Assignment Help Computer Engineering
Reference no: EM1316810

Design and implement the C++ program which simulates a submarine. Utilizing a two dimensional dynamic array (where user state the number of rows and columns), you should represent a submarine within an aquatic landscape. The submarine should travel from left side of array to right side, without leaving the area. If sub tries to leave area or it wanders into the shallow area, the simulation should end. Initialize array to -1. The user should be able to move the sub up, left, right and down. The initialize method in given files will represent the array as follows:

1) Submarine

2) Shallow area

3) Moveable area

Reference no: EM1316810

Questions Cloud

Calculation of cash interest payment for a bond : Calculation of cash interest payment for a bond and The bonds pay interest semiannually
Problem on profit and loss : Problem on profit and loss.
Findout the volume of a molar solution : Find the volume of a molar solution and What volume of a 2.00 molar solution of sulfuric acid, H 2 SO 4 , is required to react with 250.0g of magnesium carbonate, MgCO 3 , according to the following equation?
Determining standard deviation of number of houses : Assume you choose 20 houses at random. On average, how many houses of twenty would you expect to have DVD? Determine standard deviation of number of houses with DVD?
Implementing c++ program that simulates a submarine : Design and implement the C++ program which simulates a submarine. If sub tries to leave area or it wanders into the shallow area, the simulation should end. Initialize array to -1. The user should be able to move the sub up, left, right and down.
Find the volume of feso4 solution : Find the volume of FeSO4 solution - What volume of 0.200M FeSO 4  solution would be required to react with 20.0mL of 0.250M KMnO 4 according to the following equation?
Production decisions of company : A company produces two main products: electronic control device3s and specialty microchips. The average total cost of producing a microchip is $300; the firm sells the chips to other high-tech manufacturers for $550. Should the company produce con..
Determine the empirical formula : Determine the Empirical Formula for the following compounds given the following information
Probability distribution for sampling without replacement : Which probability distribution is suitable when sampling without replacement?

Reviews

Write a Review

Computer Engineering Questions & Answers

  How to produce a work breakdown structure

How to produce a Work Breakdown Structure. Ensure main WBS tasks headings are the 5 PMBOK® process areas.

  Describe how left explanation is useful while formatting

Describe how left explanation is useful while formatting

  Explain fast process of distributing the cards to accountant

Explain fast process of distributing the cards to accountant.

  Java program that asks the user to enter two numbers x and b

Java program that asks the user to enter two numbers x and b.

  Explain in details what are structures

Explain in details what are structures.

  Write down program that models an employee

Write down program that models an employee

  Healthcare it

Summarizing everything you have learned related to the Healthcare IT, describe what has been the most surprising or the interesting lesson that is learned.

  Clarify security mechanisms available for a database

Clarify security mechanisms available for a database

  Design a class diagram for the ticket-processing system

Design a class diagram for the ticket-processing system

  What are the errors

What are the errors

  How to figure out possibly stacks, queues and trees

How to figure out  possibly stacks, queues and trees

  Creating a program with a building as subclass

Assume the existence of the Building class. Describe a subclass, ApartmentBuilding that consists of following instance variables: an integer, a boolean, numFloors, an integer, hasElevator, unitsPerFloor, a boolean, hasCentralAir, and a string, man..

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