Design a class named house plant a house plant has fields


Problem

Complete the following tasks:

a. Design a class named House Plant. A House Plant has fields for a name (for example, "Philodendron"), a price (for example, 29.99), and a field that indicates whether the plant has been fed in the last month (for example, "Yes"). Create the class diagram and write the pseudocode that defines the class.

b. Design an application that declares two House Plant objects and sets and displays their values.

c. Design an application that declares an array of 10 House Plants. Prompt the user for data for each of the House Plants, then display all the values.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Design a class named house plant a house plant has fields
Reference No:- TGS02648711

Expected delivery within 24 Hours