Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We are going to make a tool to help Square Foot Gardeners. Basically plants are put into 4x4 foot squares. Different plants take up different

We are going to make a tool to help Square Foot Gardeners. Basically plants are put into 4x4 foot squares. Different plants take up different discrete amounts of the 4x4 box.

What you are to do is to create a C++ class structure that includes small plants which take up 1x1 foot square. Medium plants which take up a 2x2 ft square. Shrub which is a 3x3. Lastly a tree which is a 4x4. You should have at least a couple of varieties of plants at each size. For instances you could have radish and carrots as small plants. You could have a "dwarf peach" as a tree.

Your program needs to ask the users how many of what varieties of plants they want for their garden. Your program should output a report or map (ASCII art is good) of each 4x4 box filled information about what plants should be in each box.

You do NOT have to have an optimal use of each box. For this assignment it would be acceptable to have one plant per box. But it also seems silly not not make an effort to fully utilize the box.

We need to use class Inheritance for this C++ program. I would appreciate it if comments and explanations are placed almost everywhere, I am also trying to understand the code as well!

Thanks!

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_2

Step: 3

blur-text-image_3

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

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions

Question

1. Write down two or three of your greatest strengths.

Answered: 1 week ago