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
kenny6666 [7]
3 years ago
8

I dont undertand this coding problem (Java):

Engineering
1 answer:
chubhunter [2.5K]3 years ago
6 0

Check The Attachment.

Download java
You might be interested in
The steam requirements of a manufacturing facility are being met by a boiler whose rated heat input is 5.5 x 106 Btu/h. The comb
Veronika [31]

Answer:

Explanation:uhhhhhh all?

7 0
3 years ago
In Process Costing, the journal entry to record the cost of goods transferred out from the WIP shaping department to the WIP pac
ddd [48]

Answer:

Journal entry :

Date Account and explanation Debit credit

                WIP-Packing department XXX  

                WIP-Shaping department            XXX

(To record cost of goods transferred out from the WIP shaping department to the WIP packaging department )  

So above statement is False

Explanation:

4 0
3 years ago
What’s the number of gold atoms in a nanogram? a picogram?
zvonat [6]

Answer :

The number of gold atoms in nanogram is, 3.057\times 10^{12}

The number of gold atoms in picogram is, 3.057\times 10^{9}

Explanation :

As we know that the molar mass of gold is, 196.97 g/mole. That means, 1 mole of gold has 196.97 grams of mass of gold.

As we know that,

1 mole contains 6.022\times 10^{23} number of atoms.

First we have to determine the number of gold atoms in a nanogram.

As, 196.97 grams of gold contains 6.022\times 10^{23} number of gold atoms

And, 1 grams of gold contains \frac{1g}{196.97g}\times (6.022\times 10^{23}) number of gold atoms

So, 10^{-9} nanograms of gold contains \frac{1g}{196.97g}\times (10^{-9})\times (6.022\times 10^{23})=3.057\times 10^{12} number of gold atoms

The number of gold atoms in nanogram is, 3.057\times 10^{12}

Now we have to determine the number of gold atoms in a picogram.

As, 196.97 grams of gold contains 6.022\times 10^{23} number of gold atoms

And, 1 grams of gold contains \frac{1g}{196.97g}\times (6.022\times 10^{23}) number of gold atoms

So, 10^{-12} picograms of gold contains \frac{1g}{196.97g}\times (10^{-12})\times (6.022\times 10^{23})=3.057\times 10^{9} number of gold atoms

The number of gold atoms in picogram is, 3.057\times 10^{9}

8 0
3 years ago
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
A long, horizontal, pressurized hot water pipe of 15cm diameter passes through a room where the air temperature is 24degree C. T
solmaris [256]

Answer:

Rate of heat transfer to the room air per meter of pipe length equals 521.99 W/m

Explanation:

Since it is given that the radiation losses from the pipe are negligible thus the only mode of heat transfer will be by convection.

We know that heat transfer by convection is given by

\dot{Q}=hA(T-T_{\infty })

where,

h = heat transfer coefficient = 10.45 W/m^{2}K (free convection in air)

A = Surface Area of the pipe

Applying the given values in the above formula we get

\dot{Q}=10.45\times \pi DL\times (130+273-(24+273))\\\\\frac{\dot{Q}}{L}=10.45\times 0.15\times \pi \times (130-24)\\\\\frac{\dot{Q}}{L}=521.99W/m

5 0
3 years ago
Other questions:
  • Your task is to fill in the missing parts of the C code to get a program equivalent to the generated assembly code. Recall that
    5·1 answer
  • Explain about Absolute viscosity, kinematic viscosity and SUS?
    11·1 answer
  • Students are expected to respond to one of the two questions described below. Students should provide examples to clarify their
    12·1 answer
  • Two advantages of deforming steel at room temperature rather than at elevated temperatures are: (select 2 answers from the optio
    13·1 answer
  • What's the best way to find the load capacity of a crane? Select the best option. Call the manufacturer Ask co-workers Look at t
    8·1 answer
  • You can change lanes during a turn long as there’s no traffic and you driving slowly
    5·1 answer
  • What is a beam on a bridge? what does it do?
    6·1 answer
  • T
    11·1 answer
  • Pipelines are a useful means of transporting oil because they: Multiple select question. are fast never fail to deliver are chea
    12·1 answer
  • ____ grinders are used to grind diameters, shoulders, and faces much like the lathe is used for turning, facing, and boring oper
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!