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
One kilogram of water fills a 150-L rigid container at an initial pressure of 2 MPa. The container is then cooled to 40∘C. Deter
lukranit [14]

The pressure of water is 7.3851 kPa

<u>Explanation:</u>

Given data,

V = 150×10^{-3} m^{3}

m = 1 Kg

P_{1} = 2 MPa

T_{2}  = 40°C

The waters specific volume is calculated:

v_{1} = V/m

Here, the waters specific volume at initial condition is v_{1}, the containers volume is V, waters mass is m.

v_{1} = 150×10^{-3} m^{3}/1

v_{1} = 0.15 m^{3}/ Kg

The temperature from super heated water tables used in interpolation method between the lower and upper limit for the specific volume corresponds 0.15 m^{3}/ Kg and 0.13 m^{3}/ Kg.

T_{1}= 350+(400-350) \frac{0.15-0.13}{0.1522-0.1386}

T_{1} = 395.17°C

Hence, the initial temperature is 395.17°C.

The volume is constant in the rigid container.

v_{2} = v_{1}= 0.15 m^{3}/ Kg

In saturated water labels for T_{2}  = 40°C.

v_{f} = 0.001008 m^{3}/ Kg

v_{g} = 19.515 m^{3}/ Kg

The final state is two phase region v_{f} < v_{2} < v_{g}.

In saturated water labels for T_{2}  = 40°C.

P_{2} = P_{Sat} = 7.3851 kPa

P_{2} = 7.3851 kPa

7 0
3 years ago
Define the coefficient of determination and discuss the impact you would expect it to have on your engineering decision-making b
scoundrel [369]

Answer and Explanation:

The coefficient of determination also called "goodness of fit" or R-squared(R²) is used in statistical measurements to understand the relationship between two variables such that changes in one variable affects the other. The level of relationship or the degree to which one affects the other is measured by 0 to 1 whereby 0 means no relationship at all and 1 means one totally affects the other while figures in between such 0.40 would mean one variable affects 40% of the other variable.

In making a decision as an engineer while using the coefficient of determination, one would try to understand the relationship between variables under consideration and make decisions based on figures obtained from calculating coefficient of determination. In other words when there is a 0 coefficient then there is no relationship between variables and an engineer would make his decisions with this in mind and vice versa.

7 0
3 years ago
Today I meant to look for my missing watch, but I could never find the time.
xxMikexx [17]

Answer:

haha i get it

Explanation:

5 0
3 years ago
Read 2 more answers
What is a ton of refrigeration?
AURORKA [14]

Explanation:

The unit refrigeration is generally is given in terms of tons.In refrigeration compressor consume some amount of work to produce the cooling effect  with the help of evaporator and condenser.

In the simple words ton is the cooling load of refrigeration system.

So  

1 ton = 3.5 KW

1 ton = 12,000 BTU/hr

 

6 0
3 years ago
Jodie bought some shirts for 6$ each marge brought some shirts for 8$ each
Alex_Xolod [135]

Answer:

you need more details but if you have to find the difference, its $2.00

Explanation:

8-6=2

3 0
3 years ago
Other questions:
  • A computer maintenance company wants to 'capture' the knowledge that employees carry around in their heads by creating a databas
    5·1 answer
  • Determine the Thevenin/Norton Equivalent Circuit with respect to the terminalsa,bas shown in the figure. (Here 1A is an independ
    11·1 answer
  • Matthew wants to manufacture a large quantity of products with standardized products having less variety. Which type of producti
    5·1 answer
  • From the information generated in Prob. 6.4 (from your previous Aero HW#1), calculate the maximum rate of climb for the single-e
    13·1 answer
  • The coefficient of performance of a reversible refrigeration cycle is always (a) greater than, (b) less than, (c) equal to the c
    12·1 answer
  • What competitive strategy was used by Regal Marine?
    5·1 answer
  • What does this words in the sentence mean giardia duodenalis
    13·1 answer
  • Identify renewable energy sources you will propose. Explain the key elements to your solution and the basic technical principles
    5·1 answer
  • Does anyone know how to fix this? It's a chromebook and project where I have to try to fix it​
    9·1 answer
  • The forklift exiting an aisle in a warehouse has the right of way?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!