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
The period of a pendulum T is assumed to depend only on the mass m, the length of the pendulum `, the acceleration due to gravit
zzz [600]

Answer:

The expression is shown in the explanation below:

Explanation:

Thinking process:

Let the time period of a simple pendulum be given by the expression:

T = \pi \sqrt{\frac{l}{g} }

Let the fundamental units be mass= M, time = t, length = L

Then the equation will be in the form

T = M^{a}l^{b}g^{c}

T = KM^{a}l^{b}g^{c}

where k is the constant of proportionality.

Now putting the dimensional formula:

T = KM^{a}L^{b}  [LT^{-} ^{2}]^{c}

M^{0}L^{0}T^{1} = KM^{a}L^{b+c}

Equating the powers gives:

a = 0

b + c = 0

2c = 1, c = -1/2

b = 1/2

so;

a = 0 , b = 1/2 , c = -1/2

Therefore:

T = KM^{0}l^{\frac{1}{2} } g^{\frac{1}{2} }

T = 2\pi \sqrt{\frac{l}{g} }

where k = 2\pi

8 0
3 years ago
A biotechnology company produced 225 doses of somatropin, including 11 which were defective. Quality control test 15 samples at
Radda [10]

Answer:

  • <u>0.59</u>

Explanation:

The <em>batch</em> is <em>rejected</em> if any of the <em>random samples are found defective</em>, or, what is the same, it will be accepted only if all 15 samples are good.

The probability that none be defective is the same probability that all the samples are good. Thus, start to calculate the probability that the batch is accepted.

The probability that the first sample is good is 214 /225, because there are 225 - 11 = 214 good samples in 225 doses.

The probability that the second samples is good too is 213/224, because there is 1 less good sample, in the 224 remaining samples.

By the same process, you conclude that the consecutive probabilities of selecting a good sample are: 212/223, 211/222, 210/221, . . . up to 199/211.

The joint probability of all the samples are good is the product of each probability:

\frac{214}{225}\cdot\frac{213}{224}\cdot\frac{212}{223}\cdot\frac{211}{222}\cdot\frac{210}{221}\cdot\frac{209}{220}\cdot\frac{208}{219}\cdot\frac{207}{218}\cdot\frac{206}{217}\cdot\frac{205}{216}\cdot\frac{204}{215}\cdot\frac{203}{214}\cdot\frac{202}{213}\cdot\frac{201}{212}\cdot\frac{200}{211}\cdot\frac{199}{210}

The result is: 0.41278 ≈ 0.41

The conclusion is that the probability that all the samples are good and the batch is accepted is 0.41.

Therefore, <em>the probability that the batch is rejected</em> is 1 - 0.41 = 0.59.

4 0
3 years ago
A brake caliper is considered a suspension item.<br> True<br> False
user100 [1]
True


Suspension is the system of tires, tire air, springs, shock absorbers and linkages that connects a vehicle to its wheels and allows relative motion between the two.[1] Suspension systems must support both road holding/handling and ride quality
5 0
2 years ago
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
FAST PLLZZ!! Ideally, the backrest is tilted back slightly, so when you turn the wheel your shoulders are _______ the seat.
exis [7]

Answer:

touching

Explanation:

The backrest of the seat should be tilted back ever so slightly, and when turning the steering wheel your shoulders should remain in contact with the seat – rather than hunched forward.

8 0
2 years ago
Other questions:
  • (a) Determine the dose (in mg/kg-day) for a bioaccumulative chemical with BCF = 103 that is found in water at a concentration of
    11·1 answer
  • The driveshaft of an automobile is being designed to transmit 238 hp at 3710 rpm. Determine the minimum diameter d required for
    8·1 answer
  • The Danish scientist Niels Bohr proposed a model of the atom that is not totally accurate today but still contains components th
    12·1 answer
  • A piston–cylinder assembly contains air, initially at 2 bar, 300 K, and a volume of 2 m3. The air undergoes a process to a state
    12·1 answer
  • Why does an aeroplane smoke in the air​
    14·1 answer
  • According to the video, what are some tasks that Construction Managers perform? Check all that apply.
    9·2 answers
  • You have a 12 volt power source running through a circuit that has 3kΩ of resistance, how many amps (in mA) can flow through the
    15·1 answer
  • A series of end-milling cuts is currently used to produce an aluminum part that is an aircraft component. The purpose of the mac
    14·1 answer
  • A remote village on an island was devastated by a typhoon. Farmland was flooded and the crops
    9·1 answer
  • This test should be performed on all cord sets, receptacles that aren't part of a building or structure's permanent wiring, and
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!