Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Task: Build an application, attain 100% test coverage, and then create a uml class diagram for the application. This task builds on the snowblower

JAVA

Task: Build an application, attain 100% test coverage, and then create a uml class diagram for the application.

This task builds on the snowblower application we previously built. Here are the requirements:

Earth has an array of humans. Earth has a main method. The user, using Earth, will determine how much cash each human has. Earth can produce snow. The user, using Earth, will determine how much snow gets produced. A snowblower has an engine. An engine has a sparkplug. A snowblower uses a driveway. A snowblower can be started by a human. It can only start if it has gas. A snowblower has a gas tank of a certain capacity. The gas tank has a certain amount of gas in the tank. Plowing the driveway uses .25 cups of gasoline per square foot of driveway it plows. A snowblower can plow driveways. It must be passed a driveway to plow. It does not have a driveway. It can only plow the driveway if it has enough gas and it is started. A human has a snowblower and a driveway. A human can plow the driveway using the snowblower. The human can put gas in the snowblowers gas tank. It cost 3 dollars per gallon. The human can only put gas in the tank if the human has enough money. The human can start the snowblower. The snowblower will only start if it has some gas in its tank. In order for a snowblower to start, its sparkplug must fire. A sparkplug can only fire a hundred times (sparks while it is running do not count. One spark to start) before it breaks. Broken startplugs cannot successfully start snowblowers. A driveway has a certain amount of snow and is a certain length, measured in square feet.

A human can either go to work or stay home. If the human is able to plow the driveway, the human will go to work, otherwise the human will stay home.

Unit tests should be created as each piece is built. The corresponding piece of the uml class diagram should be designed for each piece. Note that this is in reverse. Normally it would be created before building the application. However, the purpose of this is to attain knowledge and experience of UML class diagrams.

It can be neither confirmed nor denied that aliens will exist in this applicationok ok

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

Step: 3

blur-text-image

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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

__________ It represents the value of an organizations brand.

Answered: 1 week ago