Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. Write a Java class that implements the following. We want to make a row of bricks that is goal feet long. The goal is

. Write a Java class that implements the following. We want to make a row of bricks that is goal feet long. The goal is provided by the user at run time. The instructions to the user must be clear and concise. We have a number of small bricks (3 inches each) and large bricks (8 inches each). The numbers are also provided by the user at run time. The input values must be positive Set a boolean variable to true if it is possible to make the goal by choosing from the given bricks. If it's not possible, set the variable to false. Display a short message informing the user about the purpose of this class. Provide appropriate instructions to the user for input values Display the result as a descriptive sentence. Note: the bricks cannot be broken up into fractional parts Example execution: You are building a section of the wall. Length of the section of the wall in feet: 2 Input the number of small bricks: 7 Input the number of large bricks: 2 It is not possible to construct the section of the wall with the available bricks. You are building a section of the wall. Length of the section of the wall in feet: 3 Input the number of small bricks: 8 Input the number of large bricks: 3 It is possible to construct the section of the wall with the available bricks.

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

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions

Question

23 Negotiation skills and techniques.

Answered: 1 week ago