Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with a c++ robot program. Implement a system that simulates a robot finding gold: 1) Each one of the following objects should

I need help with a c++ robot program.

Implement a system that simulates a robot finding gold:

1) Each one of the following objects should be implemented as classes: Workspace, Robot, GoldBar, Bomb. Create objects from these classes, making them to communicate among themselves as necessary to integrate your OOD/OOP (Object Oriented Design/Programming).

2) The Workspace is a 4 x 4 square walking place see figure; All objects have their initial position generated by a uniform distribution; objects should not be initiated in the same square, i.e. initial position should not be repeated;

3) The Robot should walk around and avoid stepping on any square where a Bomb is randomly placed. The robot can move one square at time.

4) Robot should keep walking around for as long as there is still a GoldBar to be found and collected in the workspace. image text in transcribed

image text in transcribed

image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago