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
skelet666 [1.2K]
2 years ago
13

below is an attempt at implementing a circle class. the class should feature a constructor that takes a starting radius, a float

, and methods to calculate and return the area and circumference of the shape. can you fix the code below to implement these behaviors correctly?
Engineering
1 answer:
Julli [10]2 years ago
4 0

monkey  I'm not a dictionary so don't ask

You might be interested in
Joe Bruin has a big lawn in front of his house that is 30 meters wide and 20 meters long. Josephine makes him go out and mow the
zysi [14]

<u>Explanation:</u>

5 Horsepower for 30 mins,

(5)(745.7) = 3.7285 KW power delivered

General Efficiency of IC engine = 20%

Power required = \frac{3 \cdot 7285}{0 \cdot 2}=18 \cdot 6425 kw

Energy required per week,

=P × Time = 18.64 × 60 × 30 = 33.5565 MJ

Lawn area = (30) (20) = 600m^{2}

let sunlight hours be 8 hours

Hence, solar power input on lawn,

=5.62×3600 = 20232 kJ/m^{2}/day

energy input in lawn = (600) (20232) (7)

                                  = 84974.4 mJ/week

Chemical efficiency by photosynthesis = 4%

Chemical content in grass = (84974.4) (0.04)

                                            = 3398.97 mJ

Mass of the clippers  \(=(30)(20)(1 \cdot 096)^{2}(667)\)

                                  \(=478632 \cdot 33\) pounds

Removing water content,

dried grass clippings \(=95726.46\) pound

                                    = 11533.25 gallons

Trash cans repaired  

                                     =\frac{11533}{50} =230.66\\=231 cans

By burning the gas, total energy input = 3398.97 MJ × 0.2

                                                                = 679.794 MJ

Efficiency of steeling engine  =  20%

Energy output by engine = 679.794 ×0.2

                                          = 135.96 mJ

Energy required by mover = 33.5565 mJ

Hence, Energy (output) ⇒ energy required

5 0
3 years ago
A section of a two-lane highway has 12-ft lanes and a design speed of 75 mi/h. The section contains a vertical curve and a horiz
spayn [35]

Answer:

Explanation: see attachment below

6 0
3 years ago
Please help i am give brainliest i really need help guys no links please ???
devlian [24]

Explanation:

The wind is an actual form of solar energy. winds are caused by the heating of the atmosphere by the sun, the rotation of the earth, and the earth's surface irregularities. The wind is capture in a wind turbine which provides a renewable energy source, the wind makes the rotor spin, as the rotor spins the movement of the blades drives a generator that creates energy, also known as wind power. The average wind efficiency of turbines is between 35-45%.

Advantages of wind power

- Wind power is cost-effective

- wind creates jobs

- wind enables US industry growth and US competitiveness

-it's a clean fuel source

   

4 0
3 years ago
Heres a question that needs to be answered fast im running out of time
earnstyle [38]

Answer:

9

Explanation:

6 0
3 years ago
Read 2 more answers
Write a GUI-based program that plays a guess-the-number game in which the roles of the computer and the user are the reverse of
AURORKA [14]

Answer:

import javax.swing.*;

import java.awt.*;

import java.util.Random;

import java.awt.event.*;

public class Guess extends JFrame

{

   private static final long serialVersionUID = 1L;

   private JButton newGame;

   private JButton enter;

   private JButton exit;

   private JTextField guess;

   private JLabel initialTextLabel;

   private JLabel enterLabel;

   private JLabel userMessageLabel;

   private int randNum;

   private int userInput;

   private int maxtries = 0;

   public Guess()

   {

       super("Guessing Game");

       newGame = new JButton("New Game");

       exit = new JButton("Exit Game");

       enter = new JButton("Enter");

       guess = new JTextField(4);

       initialTextLabel = new JLabel("I'm thinking of a number between 1 and 100. Guess it!");

       enterLabel = new JLabel("Enter your guess.");

       userMessageLabel = new JLabel("");

       randNum = new Random().nextInt(100) + 1;

       setLayout(new FlowLayout());

       add(initialTextLabel);

       add(enterLabel);

       add(guess);

       add(newGame);

       add(enter);

       add(exit);

       add(userMessageLabel);

   

       setSize(500, 300);

       addWindowListener(new WindowAdapter()

       {

           public void windowClosing(WindowEvent e)

           {

               System.exit(0);

           }

       });

       newGameButtonHandler nghandler = new newGameButtonHandler();

       newGame.addActionListener(nghandler);

       ExitButtonHandler exithandler = new ExitButtonHandler();

       exit.addActionListener(exithandler);

       enterButtonHandler enterhandler = new enterButtonHandler();

       enter.addActionListener(enterhandler);

   }

   class newGameButtonHandler implements ActionListener

   {

       public void actionPerformed(ActionEvent e)

       {

           setBackground(Color.ORANGE);

           guess.setEnabled(true);

           guess.setText("");

           enter.setEnabled(true);

           maxtries = 0;

           userMessageLabel.setText("");

           randNum = new Random().nextInt(100) + 1;

       }

   }

   class ExitButtonHandler implements ActionListener

   {

       public void actionPerformed(ActionEvent e)

       {

           System.exit(0);

       }

   }

   class enterButtonHandler implements ActionListener

   {

       public void actionPerformed(ActionEvent e)

       {

           userInput = Integer.parseInt(guess.getText());

           checkGuess(randNum);

      if(userInput > 100 )

          {

                               userMessageLabel.setText("invalid entry");

          }

       }

   }

   public void checkGuess(int randomNumber)

   {

       maxtries++;

     if(maxtries==10){

           userMessageLabel.setText("You Lose!!");

           guess.setEnabled(false);

           enter.setEnabled(false);

         

       }else if (userInput == randomNumber)

           {

               userMessageLabel.setText("Correct !");

           }

       else if (userInput > randomNumber)

           {

               userMessageLabel.setText("Too high");

           }

       else if (userInput < randomNumber)

           {

               userMessageLabel.setText("Too Low");

           }

   }

   public static void main(String[] args)

   {

       Guess game = new Guess();

       game.setVisible(true);

   }

}

8 0
3 years ago
Other questions:
  • Capitol Brewing Inc.'s management is very concerned with declining sales of their major product, a dark ale, and has asked for h
    14·1 answer
  • What is something that a robot or computer program might do that requires a decision, or conditional statement?
    9·1 answer
  • A 3-phase, 50 Hz, 110 KV overhead line has conductors placed in a horizontal plane 3 m apart. Conductor diameter is 2.5 cm. If t
    6·1 answer
  • Please help me in this assignment.
    13·1 answer
  • How do you connect several springs to increase the equivalent stiffness? What is one example from industry or other real-life si
    7·1 answer
  • How can we calculate the speed of the output gear in a simple gear train? Explain with the help of an example.
    7·1 answer
  • What Number Am I?
    13·1 answer
  • Three bars each made of different materials are connected together and placed between two walls when the temperature is 12 oC. D
    9·1 answer
  • A dual-fluid heat exchanger has 10 lbm/s water entering at 100 F, 20 psia and leaving at 50 F, 20 psia. The other fluid is glyco
    13·1 answer
  • You need to lift a 2012 toyota highlander and haven't done so in a while. which of these are reliable sources for checking the c
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!