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

  Write in c++ another overloaded operator

Write in C++ another overloaded operator to go in the program that has Treasury. Overload the forward slash /  so that in the main program, you can declare sale to be of type Treasury, and commission to be of type Treasury, and commispctage to be of ..

  Dealerships are awarded the rebate

Dealerships are awarded the rebate on a quarter-by-quarter basis, only for quarters where their actual sales exceeded expected volumes for that quarter. Expected sales volumes for each quarter are as follows:

  Write a program to calculate a person''s net pay

Write a program to calculate a person's net pay after subtracting federal income tax.The program should ask the user to enter the person's name, social security number, gross pay, and the number of dependents.

  Describe the probability of the moves

Write a program in C++ to describe the Probability of the moves

  Create a calling module name and parameters

Create a calling module name and parameters for the following. (Remember that the asterisk before the parameter name indicates a call-by-reference parameter.

  Given a character code to indicate the type of customer

Pete's Plumbing of Pompey sells to both retail and wholesale buyers. The retail buyer must pay New York State and Onondaga County sales tax (8%). However, the wholesale buyer does not pay sales tax and receives a volume discount on the amount purchas..

  Assessment system of a university

Write a program for Assessment system of a University

  Called cbankaccount

Create a base class, called CBankAccount, and two additional classes (each derived from CBankAccount), called CSavingsAccount and CCheckingAccount.

  Written a code that parses through a file reading

written a code that parses through a file reading it line by line and splitting it into tokens by white space. But I want a pair of single quotes to be one token, not how many words are in it

  The program will read integers values

Write a C++ program to do the following. The program will read integers values one at a time from standard input (cin) until you read the value 150. assume that the number of values read in is at least 1 and less than or equal to 100

  Design and implement a c++ program for find friends

MCS2514Pgm1- Design and implement a C++ program that will help find friends according to a defined method. In particular, your program will find and display the ten people in database who answered a set of survey questions closest to what the user..

  C++ pointer function synopsis

C++ pointer Function Synopsis: char *amonthLess(char *dateString) Description: Variable dataString is a valid date in a form of mm/dd/yyyy Given the above information, write a main() program that asks a user to enter a date in a form of mm/dd/yyyy..

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