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
alexgriva [62]
2 years ago
11

import java.util.Scanner; public class FindSpecialValue { public static void main (String [] args) { Scanner scnr = new Scanner(

System.in); int specialNum; specialNum = scnr.nextInt(); if (specialNum ) { System.out.println("Special number"); } else { System.out.println("Not special number"); } }
Engineering
1 answer:
Hitman42 [59]2 years ago
7 0

Answer:

Java program explained below

Explanation:

FindSpecialNumber.java

import java.util.Scanner;

public class FindSpecialNumber {

public static void main(String[] args) {

//Declaring variable

int number;

/*

* Creating an Scanner class object which is used to get the inputs

* entered by the user

*/

Scanner sc = new Scanner(System.in);

//getting the input entered by the user

System.out.print("Enter a number :");

number = sc.nextInt();

/* Based on user entered number

* check whether it is special number or not

*/

if (number == -99 || number == 0 || number == 44) {

System.out.println("Special Number");

} else {

System.out.println("Not Special Number");

}

}

}

_______________

Output#1:

Enter a number :-99

Special Number

Output#2:

Enter a number :49

Not Special Number

You might be interested in
Chapter 15 – Fasteners: Determine the tensile load capacity of a 5/16 – 18 UNC thread and a 5/16 – 24 UNF thread made of the sam
Roman55 [17]

Answer:

The 5/16 – 24 UNF is stronger because it has more tensile load capacity.

Tensile load capacity for M8 -1.25 = 5670 lb

Tensile load capacity for M8 -1 = 6067 lb

Explanation:

For 5/16 - 18 UNC thread:

D = 0.3125

n = 18

Therefore the tensile load capacity is = 100000 X (0.7854 X (0.3125 - 0.9743/ 18) ^2

= 5243 lb.

Similarly for 5/16 - 24 UNF , only the n value changes to 24

we get the tensile load capacity = 5806.6 lb

Hence the 5/16 – 24 UNF is stronger because it has more tensile load capacity.

For metric Bolts:

We have to consider all values in SI units

Strength = 689 MPa

We get for M8 -1.25:

Tensile load capacity as = 689 X 36.6 = 25223 N = 5670 lb

For M8 -1:

Tensile load capacity as = 689 X 39.167 = 26986 N = 6067lb

7 0
3 years ago
Read 2 more answers
True or False; If I was trying to find the Voltage of my computer, and I was given the Watts and Amps it uses, I would use Watt'
defon

Answer:

true

Explanation:

8 0
2 years ago
Consider a plane composite wall that is composed of two materials of thermal conductivities kA = 0.1 W/m*K and kB = 0.04 W/m*K a
nadya68 [22]

Answer:

q=39.15 W/m²

Explanation:

We know that

Thermal resistance due to conductivity given as

R=L/KA

Thermal resistance due to heat transfer coefficient given as

R=1/hA

Total thermal resistance

R_{th}=\dfrac{L_A}{AK_A}+\dfrac{L_B}{AK_B}+\dfrac{1}{Ah_1}+\dfrac{1}{Ah_2}+\dfrac{1}{Ah_3}

Now by putting the values

R_{th}=\dfrac{0.01}{0.1A}+\dfrac{0.02}{0.04A}+\dfrac{1}{10A}+\dfrac{1}{20A}+\dfrac{1}{0.3A}

R_{th}=4.083/A\ K/W

We know that

Q=ΔT/R

Q=\dfrac{\Delta T}{R_{th}}

Q=A\times \dfrac{200-40}{4.086}

So heat transfer per unit volume is 39.15 W/m²

q=39.15 W/m²

4 0
3 years ago
We can process oil into a lot of useful fuels to run our cars, trucks, and even airplanes. Oil is used for making lots of other
Ostrovityanka [42]

Answer:

Explanation:

Products of oil in our everyday life:

(1) Petro-Chemical Feedstock: These are by product of Refining of Oil which it is used extensively to make PET bottles, Paints, Polyester Shirts, Pocket combs e.t.c

(2) Asphalt : Used extensively to make Motor Road, highways

(3) Plastics : we use plastics in our everyday life, this is also a product of Refining of crude oil e.g PVC, Telephone casing, Tapes e.t.c

(4) Lubricating Oil/Grease : This is another product from crude oil Fractional Distillation.

(5) Propane/ Cooking Gas: This is also a product from oil which is used in our everyday life for cooking, grilling etc.

4 0
3 years ago
In javaWrite a program that simulates flipping a coin to make decisions. The input is how many decisions are needed, and the out
Pavel [41]

Answer:

// Program is written in Java Programming Language

// Comments are used for explanatory purpose

import java.util.*;

public class FlipCoin

{

public static void main(String[] args)

{

// Declare Scanner

Scanner input = new Scanner (System.in);

int flips;

// Prompt to enter number of toss or flips

System.out.print("Number of Flips: ");

flips = input.nextInt();

if (flips > 0)

{

HeadsOrTails();

}

}

}

public static String HeadsOrTails(Random rand)

{

// Simulate the coin tosses.

for (int count = 0; count < flips; count++)

{

rand = new Random();

if (rand.nextInt(2) == 0) {

System.out.println("Tails"); }

else {

System.out.println("Heads"); }

rand = 0;

}

}

7 0
3 years ago
Other questions:
  • 4. A 1 m3 rigid tank has propane at 100 kPa, 300 K and connected by a valve to another tank of 0.5 M3 with propane at 250 kPa, 4
    11·1 answer
  • Sketch the velocity profile for laminar and turbulent flow.
    15·1 answer
  • What is the temperature dependency of the electrical conductivity for metals and semiconductors??
    6·1 answer
  • A structural component in the form of a wide plate is to be fabricated from a steel alloy that has a plane-strain fracture tough
    10·1 answer
  • A mass of air occupying a volume of 0.15m^3 at 3.5 bar and 150 °C is allowed [13] to expand isentropically to 1.05 bar. Its enth
    11·1 answer
  • Water at 20◦C is pumped through 1000 ft of 0.425 ft diameter pipe at a volumetric flowrate of 1 ft3/s through a cast iron pipe t
    14·1 answer
  • The removed soil at an excavation site is also called spoil?​
    14·1 answer
  • PLS HURRY!!!
    10·2 answers
  • Thoughts on Anime?<br> Whats your fav
    10·2 answers
  • Is it permissible to install recessed fixture directly against wood ceiling joists? Explain why or why not.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!