1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Julli [10]
3 years ago
5

We want to make a row of bricks that is goal inches long. We have a number of small bricks (1 inch each) and big bricks (5 inche

s each). Return true if it is possible to make the goal by choosing from the given bricks. This is a little harder than it looks and can be done without any loops.
Computers and Technology
1 answer:
Lunna [17]3 years ago
3 0

Answer and Explanation:

This is little harder than it looks and can be done without using loops. Lets take Bricks method to make a program.

Bricks ( 3 ,1 , 8)

Bricks ( 3 , 1 , 9 )

Bricks ( 3, 2 , 10 )

public  boolean Bricks ( int small , int big , int goal ) {

if (goal > big * 5 + small)

return false;

if ( goal % 5 > small)

return false:

}

OR

public  make_bricks( int small, int big, int goal):

  if (goal % 5) < =  big:  

      if (goal % 5) <= small:  

        return True

      else:  

        return False

  if (goal % 5) > = big:

      if (goal - (big*5)) <= small:

        return True

      else:

        return False

You might be interested in
Which option is used in order to configure switchboards for a complex database?
Ostrovityanka [42]

Answer:

switch board manager

Explanation:

8 0
3 years ago
Read 2 more answers
Aubrey uses the following formula to calculate a required value. Which elements of the formula use mixed cell referencing?
iris [78.8K]

Answer:

$1A

brainiest plz

Explanation:

The elements of a formula only can have the following format:

1) Letter Number as C1

2) Letter $ Number as A$1

3) $ Letter Number as $A1

4) $ Letter $ Number as $A$1

The element $1A is not in the format

5 0
3 years ago
Read 2 more answers
What is the best information to include in the template name to differentiate it from other templates? Check all that apply.
KengaRu [80]

Answer:

2. version number

Explanation:

It is the version number of the template that explains how old or new it is. Also. if we want to differentiate between the two versions, then we probably have the best option as a version number to find out a template. and you just need to find the version number for it. You can have four versions in a year, and hence the year is not an option either. Also, the author's name can be the same for two software, and hence the author's name cannot be counted. The file size of the two versions can be the same as well. Hence, the file size cannot be used as well.

8 0
3 years ago
what ribbon command on the Home tab can you use to change a cell's fit color automatically, based on the value of the cell
Lerok [7]

The ribbon command on the Home Tab that can be used to change a cell's font color automatically based on the value of the cell is by using the Ctrl+Shift+F (Font Color Command).

<h3>What is Font Color Command? </h3>

The font color command is used in the formatting of the font colors of cells on an Excel Sheet. The ribbon command Ctrl+Shift+F can be used or follow the process below.

To use the Font Color Command, simply follow the process:

  • Identify and select the text that you need to change.

Now, On the Home tab, select:

  • Font group,
  • In the arrow next to Font Color, click on the color to change the cell's font color.

Learn more about the Font Color command here:

brainly.com/question/5605472

<h3></h3>
6 0
2 years ago
Does the game best fiends use data?
Margaret [11]
<span>The game Best Fiends does not need wifi when playing therefore it will not consume your data. This app is about little animals of Minutia lived in peace and concordance, until the night the meteor crushed into Mount Boom! An interesting power changed the vile Slugs who lived there into a group of greenery-eating goons – and now, the Slugs caught the Best Fiends' families!</span>
6 0
3 years ago
Other questions:
  • Basically, if for every row, the absolute value of the entry along the main diagonal is larger than the sum of the absolute valu
    10·1 answer
  • A is the smallest unit of application data recognized bysystem software.
    12·1 answer
  • If needed, you can pull over on the shoulder of the freeway to take a break if you are tired. true or false (drivers ed) need as
    11·1 answer
  • Scientific models can be used for a variety of different purposes. Which of the following statements about scientific models is
    7·2 answers
  • What is a help desk
    15·1 answer
  • Which of the following would be an appropriate use of a check box control?
    15·1 answer
  • Pressing the _____ key when entering title text in a placeholder creates a new paragraph. BACKSPACE SHIFT DELETE ENTER
    5·1 answer
  • A program execution is called ​
    15·1 answer
  • HELP PLSS‼️ Which are the following are considered peripherals? Mark all that are correct
    11·1 answer
  • What is a cell? how is it referred?​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!