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]
3 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]3 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
Which of the following is a possible unit of ultimate tensile strength?
levacccp [35]

Answer:

Newton per square meter (N/m2)

Explanation:

Required

Unit of ultimate tensile strength

Ultimate tensile strength (U) is calculated using:

U = \frac{Ultimate\ Force}{Area}

The units of force is N (Newton) and the unit of Area is m^2

So, we have:

U = \frac{N}{m^2}

or

U = N/m^2

<em>Hence: (c) is correct</em>

4 0
3 years ago
Hãy trình bày sự hiểu biết của bạn về đo dòng điện
Sidana [21]

Answer:

-Khái niệm:

Đo dòng điện là sử dụng các dụng cụ như ôm kê, vôn kế, ampe kế, tần số kế… để xác định các đại lượng vật lý của dòng điện

-Đo lường điện để làm gì?

Phát hiện hư hỏng sự cố trong mạch điện và các thiết bị vi mạch

Xác định các giá trị cần đo

Đánh giá chất lượng của các thiết bị sau sản xuất

Xác định thông số kỹ thuật của thiết bị

-Phân loại dụng cụ đo điện: Hiên nay có 2 phương pháp phân loại chính

a. Theo nguyên lý làm việc

Dụng cụ đo kiểu điện từ

Dụng cụ đo kiểu điện động

Dụng cụ đo kiểu cảm ứng

Dụng cụ đo kiểu từ điện

b. Theo đai lượng, giá trị cần đo

+Đo điện năng: Ví dụ công tơ điện

+Đo điện áp: Ví dụ: Vôn kế

+Đo dòng điện: Ví dụ: Ampe kế

+Đo công suất: Oát kế

+Đo điện trở: Ôm kế

Sai số khi đo: Khi đo lường luôn xảy ra các sai số

Sai số tương đối: Là tỷ lệ % của sự chênh lệch giữa giá trị đo được và giá trị thự

8 0
3 years ago
The primary difference between LEED Certification for Buildings and LEED Professional Certifications is that professionals can c
TEA [102]

Answer:false

Explanation:

8 0
3 years ago
Determine linear atomic density along [001] direction of a FCC unit cell with lattice constant a (cube edge length).
SIZIF [17.4K]

Answer:

LD=\dfrac{0.5}{ a}

Explanation:

Given that

Unit cell is in FCC

Here given direction is not clear visible so we take direction [001].

We know that linear density(LD) given as

LD=\dfrac{Number\ of\ atoms\ in\ the\ direction\ vector}{d_{[001]}}

So the number of atom will be 1/2 in direction  [001]

In FCC

a=2\sqrt2 \ r

LD=\dfrac{0.5}{ a}

LD=\dfrac{1}{2\sqrt2 \ r}

6 0
3 years ago
The acrylic plastic rod is 200 mm long and 15 mm in diameter. If an axial load of 300 N is applied to it, determine the change i
ehidna [41]

Answer:

Change in length = 0.1257 mm

Change in diameter= -0.03771mm

Explanation:

Given

Diameter, d = 15 mm

Length of rod, L = 200mm

F = Force= 300N

d = 0.015m

Ep=2.70 GPa, np=0.4.

First, we have to calculate the normal stress using

σ = F/A where F = Force acting on the Cross-sectional area

A = Area

Area is calculated as πd²/4 where d = 0.015m

A = 22/7 * 0.015²/4

A = 0.000176785714285m²

A = 1.768E-4m²

So, stress. σ = 300N/1.768E-4m²

σ = 1696832.579185520Pa

σ = 1.697MPa

Calculating E(long)

E(long) = σ /Ep

E(long) = 1.697E-3/2.70

E(long) = 0.0006285

At this point, we fan now calculate the change in length of the element;

∆L = E(long) * L

∆L = 0.0006285 * 200mm

∆L = 0.1257mm

Calculating E(lat)

E(lat) = -np * E(long)

E(lat) = -4 * 0.0006285

E(lat) = -0.002514

At this point, we can now calculate the change in diameter of the element;

∆D = E(lat) * D

∆L = -0.002514 * 15mm

∆L = -0.03771mm

8 0
3 years ago
Other questions:
  • Lawn maintenance is an alternative energy source<br> -true<br> -false
    15·1 answer
  • A refrigerator uses refrigerant-134a as the working fluid and operates on the ideal vapor-compression refrigeration cycle except
    12·1 answer
  • What is the function of filters in communication system ?​
    11·1 answer
  • F1 or MotoGP which one do u guys prefer.
    9·1 answer
  • Steel balls 10 mm in diameter are annealed by heating to 1150 k and then slowly cooling to 450 k in an air environment for which
    15·1 answer
  • Which geometric curved solids are most commonly used by engineers?
    8·2 answers
  • what do you expect the future trends of an operating system in terms of (a) cost (b) size (c) multitasking (d) portability (e) s
    12·1 answer
  • For a small company it's usually best to keep the corporate and brand image as___ as possible​
    9·1 answer
  • 1) Plastics that soften when heated,harden when cooled, and then can be heated and softened many times
    6·1 answer
  • Hia how yall doin, someone somehow revived me thro a screen--
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!