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
Mekhanik [1.2K]
3 years ago
6

When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This can be

done by normalizing to values between 0 and 1, or throwing away outliers. For this program, adjust the values by subtracting the smallest value from all the values. The input begins with an integer indicating the number of integers that follow. Assume that the list will always contain less than 20 integers.Ex: If the input is 5 30 50 10 70 65, the output is:20 40 0 60 55For coding simplicity, follow every output value by a space, including the last one.
Engineering
1 answer:
Sonja [21]3 years ago
6 0

Answer:

class TestCode {

   public static void main(String args[]) {

       Scanner scanner = new Scanner(System.in);

       int n = scanner.nextInt();

       int arr[] = new int[n];

       int min = Integer.MAX_VALUE;

       for(int i = 0;i<n;i++){

           arr[i] = scanner.nextInt();

           if(min > arr[i]){

               min = arr[i];

           }

       }

 for(int i = 0;i<n;i++){

           System.out.print((arr[i]-min) + " ");

       }

   }

}

You might be interested in
Drivers education - Unit 3
melamori03 [73]

The following scenarios are pertinent to driving conditions that one may encounter. See the following rules of driving.

<h3>What do you do when the car is forced into the guardrail?</h3>

Best response:

  • I'll keep my hands on the wheel and slow down gradually.
  • The reason I keep my hands on the steering wheel is to avoid losing control.
  • This will allow me to slowly back away from the guard rail.
  • The next phase is to gradually return to the fast lane.
  • Slamming on the brakes at this moment would result in a collision with the car behind.

Scenario 2: When driving on a wet road and the car begins to slide

Best response:

  • It is not advised to accelerate.
  • Pumping the brakes is not recommended.
  • Even lightly depressing and holding down the brake pedal is not recommended.
  • The best thing to do is take one foot off the gas pedal.
  • There should be no severe twists at this time.

Scenario 3: When you are in slow traffic and you hear the siren of an ambulance behind

Best response:

  • The best thing to do at this moment is to go to the right side of the lane and come to a complete stop.
  • This helps to keep the patient in the ambulance alive.
  • It also provide a clear path for the ambulance.
  • Moving to the left is NOT recommended.
  • This will exacerbate the situation. If there is no place to park on the right shoulder of the road, it is preferable to stay in the lane.

Learn more about rules of driving. at;

brainly.com/question/8384066

#SPJ1

4 0
2 years ago
Calculate the gear ratio below if the blue gear is the driver
alexandr402 [8]

Answer:

The correct option is;

1

Explanation:

The number of teeth on the blue, driver, gear = 20 T

The number of teeth on the yellow, driven, gear = 20 T

In order to find the gear ratio of a gear train, the ratio of the number of teeth on the driven gear to the number of teeth on the driver gear gives the gear ratio

Therefore, the gear ratio = 20 T/(20 T) = 1

7 0
3 years ago
Which of the following statements is not necessarily true for a well-arranged floor plan?
lorasvet [3.4K]

A well arranged floor plan is one that optimises the given floor area. Floor plans are useful to help design furniture layout, wiring systems, and much more. Option B is the answer, since it does not meet the standard of a plan

<h3>What is a Floor Plan?</h3>

A floor plan is a scaled diagram of a room or building viewed from above. The floor plan may depict an entire building, one floor of a building, or a single room. It may also include measurements, furniture, appliances, or anything else necessary to the purpose of the plan.

<h3>Other properties of a floor plan are:</h3>
  1. Maximize the property
  2. Utilize space effectively
  3. Accessibility
  4. Flexibility
  5. Functionality
  6. Maximize the use of light
  7. Attention to size
  8. Fitting to your lifestyle

Learn more:

brainly.com/question/25057316

4 0
3 years ago
A turbojet aircraft is flying with a velocity of 280 m/s at an altitude of 9150 m, where the ambient conditions are 32 kPa and -
artcher [175]

Answer:

(a) The velocity of the exhaust gases. is 832.7 m/s

(b) The rate of fuel consumption is 0.6243 kg/s

Explanation:

For the given turbojet engine operating on an ideal cycle, the pressure ,temperature, velocity, and specific enthalpy of air at i^{th} state are P_i , T_i , V_i , and h_i , respectively.

Use "ideal-gas specific heats of various common gases" to find the properties of air at room temperature.

Specific heat at constant pressure, c_p = 1.005 kJ/kg.K

Specific heat ratio, k = 1.4

3 0
4 years ago
The Double.parseDouble() method requires a String argument, but it fails if the String cannot be converted to a floating-point n
LuckyWell [14K]

Answer:

  1. import java.util.Scanner;
  2. public class TryToParseDouble {
  3.    public static void main(String[] args) {
  4.        Scanner input = new Scanner(System.in);
  5.        double num;
  6.        try{
  7.            System.out.print("Input a number: ");
  8.            num = Double.parseDouble(input.nextLine());
  9.        }catch(NumberFormatException e){
  10.            num = 0;
  11.            System.out.println("Invalid input! It should be a number in double type");
  12.        }
  13.        System.out.println(num);
  14.    }
  15. }

Explanation:

Firstly, create a Scanner object to get user input (Line 5).

Next, create a try block and prompt user to input a number and use Double.parseDouble() method to convert the input to double type in the block (Line 8-10).

Next, create a catch block to catch a NumberFormatException. In the Catch block, set the num to zero and then print out a message to inform user about the invalid input (Line 12-14).

Lastly, display the number (Line 16).

5 0
3 years ago
Other questions:
  • A strain gauge with a nominal resistance of 116 ohms is subjected to an axial strain of 4.8 millistrain. (1 millistrain= 1E-3 in
    12·1 answer
  • Consider the problem of oxygen transfer from the interior lung cavity, across the lung tissue, to the network of blood vessels o
    9·1 answer
  • Write a loop that sets each array element to the sum of itself and the next element, except for the last element which stays the
    8·2 answers
  • Bob and Alice are solving practice problems for CSE 2320. They look at this code: for(i = 1; i &lt;= N; i = (i*2)+17 ) for(k = i
    6·2 answers
  • The cylindrical aluminum air tank below is to be rated for 300 psi and it must comply with the ASME Boiler Code which requires a
    5·2 answers
  • Problem 1 (10 points) In the first homework you were instructed to design the mechanical components of an oscillating compact di
    5·1 answer
  • Which examples demonstrate tasks commonly performed in Maintenance/Operations jobs? Check all that apply.
    11·2 answers
  • What is your favorite RPG game? ( Role Play Game)
    5·2 answers
  • What is the function of a gillotine​
    5·2 answers
  • What are the three primary factors on which encryption is based?.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!