Write a program that creates a tool box object that contains two(2) different tools, each with varying speeds. class Tools (1) A array of five(5) doubles with the initial values 7000.55, 5017.34, 9789.23, 6912.45, 345.12. This represents the initial varying speeds of the tools. (2) Method setSpeed. This contains two parameters. The first parameter is of type double and the second is of type int. If the value of the second parameter is 100, multiply each array element by the first parameter, otherwise divide each array element by the first parameter. (3) Method displaySpeed. This displays all the array elements. class ToolBox (1) Objects T1 and T2 of type Tools. (2) Method toolsInfo. This method contains two (2) parameters that are the same with setSpeed. If the value of the second parameter is 100, set first the new speeds for T1 and then display the new speeds, otherwise set first the new speeds for T2 and then display the new speeds. class try (1) one object of type ToolBox (2) object.toolsInfo(1.2, 100); object.toolsInfo(3.5, 2); object.toolsInfo(4.2, 17);
Write a
class Tools
(1) A array of five(5) doubles with the initial values 7000.55, 5017.34, 9789.23, 6912.45, 345.12. This represents the initial varying speeds of the tools.
(2) Method setSpeed. This contains two parameters. The first parameter is of type double and the second is of type int. If the value of the second parameter is 100, multiply each array element by the first parameter, otherwise divide each array element by the first parameter.
(3) Method displaySpeed. This displays all the array elements.
class ToolBox
(1) Objects T1 and T2 of type Tools.
(2) Method toolsInfo. This method contains two (2) parameters that are the same with setSpeed. If the value of the second parameter is 100, set first the new speeds for T1 and then display the new speeds, otherwise set first the new speeds for T2 and then display the new speeds.
class try
(1) one object of type ToolBox
(2) object.toolsInfo(1.2, 100); object.toolsInfo(3.5, 2); object.toolsInfo(4.2, 17);
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)