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
Agata [3.3K]
3 years ago
13

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

ent can be done by normalizing to values between 0 and 1, or throwing away outliers.
For this program, adjust the values by dividing all values by the largest value. The input begins with an integer indicating the number of floating-point values that follow.
Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
print('{:.2f}'.format(your_value))
Ex: If the input is:
5 30.0 50.0 10.0 100.0 65.0
the output is:
0.30 0.50 0.10 1.00 0.65
The 5 indicates that there are five floating-point values in the list, namely 30.0, 50.0, 10.0, 100.0, and 65.0. 100.0 is the largest value in the list, so each value is divided by 100.0.
For coding simplicity, follow every output value by a space, including the last one
1 #include
2 #include
3 #include
4 using namespace std;
5
6 int main() {
7
8 /* Type your code here. */
9
10 return 0;
11 }
12
Computers and Technology
1 answer:
Ksivusya [100]3 years ago
7 0

Answer:

5.23 LAB: Adjust values in a list by normalizing 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.

Explanation:

You might be interested in
Write the definition of a void function that takes as input an integer and outputs two times the number if it is even; otherwise
KatRina [158]

Answer:

Written in C++

void number(int n){

if(n%2 == 0)

cout<<2 * n;

else

cout<<5 * n;

}

Explanation:

The programming language is not stated.

However, I answered using C++

This line defines the function as void

void number(int n){

This line checks if the number is even

if(n%2 == 0)

If yes, it doubles the number and prints the output

cout<<2 * n;

If otherwise,

else

It multiplies the number by 5 and prints the output

cout<<5 * n;

}

To call the function from main, use:

number(n);

Note than n must be declared as integer

See attachment

Download cpp
6 0
3 years ago
In best practice, should you use all lowercase, all uppercase or a mixture of cases in HTML tag names?
mixas84 [53]
B considering it’s proper english, we went through this about a week ago
7 0
2 years ago
Davis wants to attach a scanner to his computer. How will he do this?
Aleksandr [31]
It would often connect via a universal serial bus (USB) cable, so answer [B].
8 0
3 years ago
Read 2 more answers
Simplify to obtain a sum of products: (A+B)(C+B)(D?+B)(ACD?+E)
lilavasa [31]

Answer:

(ACD'+BE)

Explanation:

(A+B)(C+B)(D'+B)(ACD'+E)

Product of (A+B)(C+B)

(A+B)(C+B)=AC+AB+BC+B^2 = AC+B(A+C+B)=AC+B

Product of (D'+B)(ACD'+E) with AC+B

(AC+B)(D'+B)(ACD'+E)

(AC+B)(D'+B)=ACD' + ACB +BD +B = ACD'+B(AC+D+1)=ACD'+B

Then we get:

(ACD'+B)(ACD'+E) = ACD'+ACD'E+ACD'B+BE

ACD'(1+E+B)+BE =ACD'+BE

7 0
3 years ago
Why is it important to use a high sample rate when recording sound?
damaskus [11]

Answer:

jt baby

Explanation:

yup

3 0
2 years ago
Other questions:
  • Which troubleshooting tool enables you to connect to a user's remote computer, view and interact with the user's screen, and cha
    8·1 answer
  • Data is: a. Information endowed with relevance and purpose b. Set of specific objective facts or observations c. Some informatio
    10·1 answer
  • What command would you run from a windows command line to test a computer's network stack?
    7·1 answer
  • A computer is a multipurpose device that accepts input processes data and produces output all according to a series of stored
    8·1 answer
  • You want to join your computer to a homegroup but you don't see any homegroups on your home network
    11·1 answer
  • _____ is when a person connects their location to photos that are posted online.
    5·2 answers
  • Most operating systems today primarily use a ____.
    12·1 answer
  • What does 69 mean?<br> Whenever I watch memes they always talk about the number 69
    8·2 answers
  • Question # 2 Multiple Choice The _____ method returns an integer between the two provided numbers. It can take the value of eith
    10·2 answers
  • Hãy mô tả mô hình xử lý của hệ thống thông <br> tin kế toán tài chính trong một doanh nghiệp
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!