Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Create a project in eclipse called Lab3 (on java), which has separate folders for the source code and the compiled code. Additionally, copy or

1. Create a project in eclipse called Lab3 (on java), which has separate folders for the source code and the compiled code. Additionally, copy or import into the foldersrc the Florcreated class in the previous laboratory. 2. Create a class called Jardin, which has an Arrayfloresque that will store elements of type Flory and an intantityFloresque that will store the amount of existing flowers in the garden. The Jardin class must have the following methods: a. Define a constructor method that has as argument the length for the variable flowers. b. Write a method to add, add a flower to the arrangement in such a way that it is arranged in alphabetical order according to the name of the flower. c. Write a method to eliminate, remove the existing flower in a given position (entered by argument) and return the flower removed. d. Write a content method, which returns the information of the existing flower in a given position. 3. Write a Garden Test class, which has a Garden of 5 flowers. To perform the following actions: a. Add the flower (Rosa, 10, 5.0) b. Add the flower (Sunflower, 110, 6.5) c. Print the garden information. A method must be defined to print ALL the information existing in the garden. d. Add the flower (Orchid, 4, 8.0) and. Remove the flower in the first position F. Print the garden information. g. Add a flower requested to the user (you must ask the flower information to the user and then add it to the garden) h. Print the garden information.

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions

Question

a. How are members selected to join the team?

Answered: 1 week ago

Question

b. Will new members be welcomed?

Answered: 1 week ago

Question

c. Will leaders rotate periodically?

Answered: 1 week ago