Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do in C++ coding please Nrite a program to fulfill the following requirements: You need a program to help you plan a garden. The

Please do in C++ coding please

image text in transcribed

Nrite a program to fulfill the following requirements: You need a program to help you plan a garden. The user will enter - The square footage of their garden plot - Their needs for each of several types of plants (you won't know ahead of time how many types). For each plant they will specify the length of the rows, their width, and the number of rows. After each plant is entered, the program is to calculate the square footage used for that plant and display the remaining square footage left in the garden. The program should then ask them if they want to plant something else. If the user tries to enter too much for a plant compared to what is left, the program should tell them of their error and tell them the square footage that will actually be used for that plant. The user is not required to fill their garden space. When the user is done entering plants, the program should display the total square footage used, the number of plant types and the amount of space remaining. The type of loop you use is your choice. You must use a function to calculate the area used for each plant type

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

Database And Expert Systems Applications Dexa 2023 Workshops 34th International Conference Dexa 2023 Penang Malaysia August 28 30 2023 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Maqbool Khan

1st Edition

303139688X, 978-3031396885

More Books

Students also viewed these Databases questions

Question

1-4 How will MIS help my career?

Answered: 1 week ago