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
Contrast moral and immoral creativity and innovation<br>​
Archy [21]

Moral creativity and innovation are based on original discoveries,  whereas immoral innovation is based on unscrupulous actions.

<h3>What is innovation?</h3>

Innovation refers to the practices aimed at developing new products and services for the well-being of society.

Moral innovation is an expression generally used to describe technological advancements based on intellectual property rights.

In conclusion, moral creativity and innovation are based on original discoveries,  whereas immoral innovation is based on unscrupulous actions.

Learn more about innovation here:

brainly.com/question/19969274

#SPJ1

7 0
3 years ago
Tech A says that in some cases, the electronic brake control module can be programmed with a new tire size to restore proper ele
Vlad [161]

Answer:

Both Techs A and B

Explanation:

Electronic braking systems are controlled by the electronic brake control module. It is a microprocessor that processes information from wheel-speed sensors and the hydraulic brake system to determine when to release braking pressure at a wheel that's about to lock up and start skidding  and activates the anti lock braking system or traction system when it detects it is necessary.

Some electronic brake control modules can be programmed to the size of the vehicle's new tires to restore proper electronic brake control performance. While others may require replacing the module to match the module's programming to the installed tire size. So, both technicians A and B are correct.

3 0
3 years ago
A power plant operates on a regenerative vapor power cycle with one open feedwater heater. Steam enters the first turbine stage
faltersainse [42]

Answer:

a) 0.489

b) 54.42 kg/s

c) 247.36 kW/s

Explanation:

Note that all the initial enthalpy and entropy values were gotten from the tables.

See the attachment for calculations

4 0
4 years ago
Write a C++ program to display yearly calendar. You need to use the array defined below in your program. // the first number is
ddd [48]

Answer:

//Annual calendar

#include <iostream>

#include <string>

#include <iomanip>

void month(int numDays, int day)

{

int i;

string weekDays[] = {"Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"};

// Header print

      cout << "\n----------------------\n";

      for(i=0; i<7; i++)

{

cout << left << setw(1) << weekDays[i];

cout << left << setw(1) << "|";

}

cout << left << setw(1) << "|";

      cout << "\n----------------------\n";

      int firstDay = day-1;

      //Space print

      for(int i=1; i< firstDay; i++)

          cout << left << setw(1) << "|" << setw(2) << " ";

      int cellCnt = 0;

      // Iteration of days

      for(int i=1; i<=numDays; i++)

      {

          //Output days

          cout << left << setw(1) << "|" << setw(2) << i;

          cellCnt += 1;

          // New line

          if ((i + firstDay-1) % 7 == 0)

          {

              cout << left << setw(1) << "|";

              cout << "\n----------------------\n";

              cellCnt = 0;

          }

      }

      // Empty cell print

      if (cellCnt != 0)

      {

          // For printing spaces

          for(int i=1; i<7-cellCnt+2; i++)

              cout << left << setw(1) << "|" << setw(2) << " ";

          cout << "\n----------------------\n";

      }

}

int main()

{

int i, day=1;

int yearly[12][2] = {{1,31},{2,28},{3,31},{4,30},{5,31},{6,30},{7,31},{8,31},{9,30},{10,31},{11,30},{12,31}};

string months[] = {"January",

"February",

"March",

"April",

"May",

"June",

"July",

"August",

"September",

"October",

"November",

"December"};

for(i=0; i<12; i++)

{

//Monthly printing

cout << "\n Month: " << months[i] << "\n";

month(yearly[i][1], day);

if(day==7)

{

day = 1;

}

else

{

day = day + 1;

}

cout << "\n";

}

return 0;

}

//end

3 0
4 years ago
A gear train has two gears. The driver gear has 8 teeth and a diametral pitch of 6 teeth/inch. the follower gear has 24 teeth. W
Sliva [168]

Answer:

18 teeth/inch

Explanation:

Given that: i. driver gear has 8 teeth and diametral pitch of 6 teeth/inch.

                  ii. follower gear has 24 teeth.

Let the followers diametral pitch be represented by x.

Then,

8 teeth ⇒  6 teeth/inch

24 teeth ⇒ x teeth/inch

So that;

x = \frac{24 x 6}{8}

   = \frac{144}{8}

   = 18 teeth/inch

The diametral is 18 teeth/inch

3 0
3 years ago
Other questions:
  • Write a complete C++ program that is made of functions main() and rShift(). The rShift() function must be a function without ret
    7·1 answer
  • 12. Dies are turned using a special tool called a/an
    10·1 answer
  • What is the IMA of a fixed pulley ​
    7·2 answers
  • Write what you already know about college majors. What are they? Can you think of any examples? When do you have to pick one? Ca
    10·2 answers
  • Cup-sveg-aph<br><br>I m finding gf<br><br>if anyone interested pls come​
    11·2 answers
  • (CO 3) A nonrecursive filter may best be described as _____. Group of answer choices a filter whose current output depends on pa
    13·1 answer
  • Determine the maximum height (in inches) that a lift pump can raise water (0.9971 g/ml) from a well at normal atmospheric pressu
    10·1 answer
  • In a wheatstone bridge three out of four resistors have of 1K ohm each ,and the fourth resistor equals 1010 ohm. If the battery
    5·1 answer
  • Which type of system is being researched to deliver power to several motors to drive multiple systems in vehicles?
    10·1 answer
  • The locations and type of electrical device required on an architectural<br> plan are referred to as
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!