Create class that allows you to generate number of plants

Assignment Help C/C++ Programming
Reference no: EM13328684

In this program, you are to create a class that allows you to generate a number of different plants. You must think about what characteristics a plant has such as:plant type, whether or not it's a conifer or deciduous, has flowers or not, etc.As for methods, you should have at least a number of methods including getters and setters for your attributes, a method allowing you to add water which should increase the size of the plant, and a toString method. Keep in mind, each plant should grow at a different rate when you add water.In your driver, you should create at least 2 different plants, after you instantiate a plant, you should print out the information about the plant, then water the plant at least three times and then print out the plant again.

Reference no: EM13328684

Questions Cloud

Determine the standard reduction potentials : Find the standard reduction potentials for the following half reactions in acidic solution. E° for MnO4 (aq) + 8 H+ (aq) + 5e^- -> Mn^2+ (aq) + 4 H2O (I)
By what percent does the volume change : Some thermometers indicate temperature by means of the thermal expansion of alcohol. by what percent does the volume change if the temperature changes by 9 F
Determine what is jms cost of capital for the firm : The target capital structure for JM is 53% common stock, 16% preferred stock, and 31% debt. If the cost of common equity for the firm is 19.1, the cost of preferred stock is 12.8%, and the before-tax cost of debt is 10.2%,
What is the net present value of a project : What is the net present value of a project with the cash flows, if the discount rate is 10 percent - How long will it take the firm to recover its initial investment in this project?
Create class that allows you to generate number of plants : In your driver, you should create at least 2 different plants, after you instantiate a plant, you should print out the information about the plant, then water the plant at least three times and then print out the plant again.
What is the shear stress on the bar : A 250 N force is applied at a37° angle to the surface of theend of a square bar. The surface is 4.00 cm on a side. What is the shear stress on the bar
Determine the total energy stored in the electric field : A 1.50-cm-diameter parallel-plate capacitor with a spacing of 0.100mm is charged to 100V. What is the total energy stored in the electric field
Explain a battery is created using zinc and electrodes along : If a battery is created using zinc and electrodes along with any corresponding ionic solutions what voltage will it produce by itself? note that E for Ag^+ (aq) + e^- ---> Ag (s) is +0.80 v.
Estimate the average stopping force of the shrub on woman : A 80 kg woman fell from an open window 0.5m above above a fairly soft shrub. Estimate the average stopping force of the shrub on the woman

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create a text file named grades.txt

Write a program to calculate students' average test scores and their grades. Creat a text file named  grades.txt

  Write c program which compute acceleration of jet fighter

Write a C++ program which compute the acceleration (m/s 2) of jet fighter launched from aircraft-carrier based catapult, provided jet's takeoff speed in km/hr

  Ohio phonebook has gotten mixed up

In an accident, the Ohio phonebook has gotten mixed up. The names are now really out of order. You and your enthusiastic, but naive, assistant Carl must fix the problem. No one can use the phonebook while you are sorting it, so every extra second of ..

  Floating point values into an array

Write a program that allows a user to enter 10 floating point values into an array. Then, in a loop, the program should prompt the user for a desired precision and subsequently display each value to the correct precision.

  A constructor and a destructor

A constructor and a destructor, Insert a new element chosen by the user at the correct place in the list

  Design a simple atm service kiosk

Design a simple ATM service kiosk. This kiosk supports the following options for its menu: 1. Viewing your account balance2. Depositing cash3. Withdrawing cash

  C++ program to draw a correct texas flag using rectangles

Write a C++ program to draw a correct Texas flag using rectangles, lines, and/or polygons (not images).

  Program that incorporates these two functions

Write the program that incorporates these two functions, as described. You will notice that the two functions have very similar statements, so you are doing some repetitive C++ code.

  Creates an array of six divsales objects

Write a program that creates an array of six DivSales objects. The program should ask the user to enter the sales for four quarters for each division. After the data are entered, the program should display a table showing the division sales for ..

  Make 2-dimensional array

make 2-dimensional array a bit of life and bringing them from the abstract to the concrete realms

  Functions to make a main program

write the required functions to make a main program that is already written

  Write a method that accepts a string

Write a method that accepts a String object as an argument and displays its contents backward. For instance, if the string argument is "gravity" the method should display - "ytivarg". Demonstrate the method in a program that asks the user to input..

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