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
swat32
3 years ago
9

What is the smallest variable type I can use to represent the number 27?

Engineering
1 answer:
oksano4ka [1.4K]3 years ago
3 0

Answer:3

Explanation:

Cuz

You might be interested in
The mathematical model for finite element method in structural mechanics is the
zysi [14]

Explanation:

Conservation of velocity equation

3 0
3 years ago
Read 2 more answers
A specific internal combustion engine has a displacement volume VD of 5.6 liters. The processes within each cylinder of the engi
Kisachek [45]

Answer:

Check the explanation

Explanation:

Kindly check the attached image below to see the step by step explanation to the question above.

6 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
Consider the following statement concerned with the collection of data, and determine the best selection of terms to complete th
snow_lady [41]

Answer:

a. population, units, sample

Explanation:

In a survey or in a research, population is defined as the total number of people or total number of items in the group that we want to study in a research. It is the entire pool from where a sample is drawn.

An unit is defined as the individual members for which the information or data is collected.

A sample is defined is defined as the group or part of the selection from where the information or data is to be obtained.

8 0
3 years ago
The time to failure for a gasket follows the Weibull distribution with ß = 2.0 and a characteristic life of 300 days. What is th
Aleks04 [339]

Answer:

64.11% for 200 days.

t=67.74 days for R=95%.

t=97.2 days for R=90%.

Explanation:

Given that

β=2

Characteristics life(scale parameter α)=300 days

We know that Reliability function for Weibull distribution is given as follows

R(t)=e^{-\left(\dfrac{t}{\alpha}\right)^\beta}

Given that t= 200 days

R(200)=e^{-\left(\dfrac{200}{300}\right)^2}

R(200)=0.6411

So the reliability at 200 days 64.11%.

When R=95 %

0.95=e^{-\left(\dfrac{t}{300}\right)^2}

by solving above equation t=67.74 days

When R=90 %

0.90=e^{-\left(\dfrac{t}{300}\right)^2}

by solving above equation t=97.2 days

7 0
3 years ago
Other questions:
  • Three return steam lines in a chemical processing plan enter a collection tank operating at a steady state at 1 bar. Steam enter
    11·1 answer
  • How many grams of water at 5.00 °C would we need to mix with 140.0 g of water at 85.0 °C to obtain a final temperature of 43.0 °
    6·1 answer
  • Two balanced Y-connected loads in parallel, one drawing 15kW at 0.6 power factor lagging and the other drawing 10kVA at 0.8 powe
    13·1 answer
  • The slope of a moment diagram is the load. a)-True b)-False
    8·1 answer
  • When you see a street with white markings only, what kind of street is it?
    7·1 answer
  • As shown, a load of mass 10 kg is situated on a piston of diameter D1 = 140 mm. The piston rides on a reservoir of oil of depth
    9·1 answer
  • All welding processes that take place without melting of the work pieces. a)- True b)-False
    15·1 answer
  • An alloy is evaluated for potential creep deformation in a short-term laboratory experiment. The creep rate (ϵ˙) is found to be
    8·1 answer
  • In the long run, if the firm decides to keep output at its initial level, what will it likely do? Stay on SRATC3 but decrease to
    15·1 answer
  • What is another term for the notes that a reader can add to text in a word-processing document?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!