12 ch 5 warm up: people's weights (java) (1) prompt the user to enter five numbers, being five people's weights. store the numbers in an array of doubles. output the array's numbers on one line, each number followed by one space. (2 pts) ex: enter weight 1: 236.0 enter weight 2: 89.5 enter weight 3: 142.0 enter weight 4:

Answers

Answer 1

Final answer:

The code provided guides the user through entering five weights using a Scanner object, stores them in a double array, and then prints them all on one line separated by spaces.

Explanation:

To address the question of prompting the user to enter five people's weights and storing them in an array of doubles in Java, we need to provide a short piece of code executing this task.

The code will look something like this:

import java.util.Scanner;
class Main {
 public static void main(String[] args) {
   Scanner scanner = new Scanner(System.in);
   double[] weights = new double[5];

   for(int i = 0; i < weights.length; i++) {
     System.out.println("Enter weight " + (i+1) + ": ");
     weights[i] = scanner.nextDouble();
   }

   System.out.println("The entered weights are:");
   for(double weight : weights) {
     System.out.print(weight + " ");
   }
 }
}

This code initializes a Scanner to take user input, creates an array of doubles to store the weights, and uses a for loop to iterate over the array, prompting the user to enter a weight for each element. It then prints out each weight followed by a space.


Related Questions

Please help asap! I do not understand questions 9-12

https://my.hrw.com/content/hmof/math/hsm/na/gr10/diff_resources_aga_9780544398887_/NA_Practice_U2M04L05_C.pdf

Answers

The link does not work


solve xsquared + 5x-24=0

Answers

x^2 + 5x - 24 = 0
(x + 8)(x - 3) = 0
x + 8 = 0; x = -8
x - 3 = 0; x = 3

answer
x = -8, x = 3
x^2 + 5x - 24
x                8
x              -3

(x+8)(x-3) = 0


x = -8, 3

hope this helps

Maryam had to sail 4 2⁄3 miles to reach her destination. At the end of the day, she had sailed 3 1⁄3 miles. How far was she from her destination?

Answers

This question is kind of tricky. To make sure, she has to sail 4 2/3 miles but she sailed 3 1/3, how far is she from her destination? Is that what you are saying? If that's what you are saying, then you have to convert both mixed fractions to improper fractions. 4 2/3 will convert to 14/3 (you multiply the whole number times the denominator (the bottom number of the fraction) plus the numerator (the number on the top)) and for 3 1/3 is going to be equal to 10/3. Now that you have both numbers in improper fractions, you can subtract. So 14/3-10/3 is going to give you an equal of 4/3, which would be 1 1/3 in a mixed fraction. YOU'RE WELCOME :D

subtract the distance she traveled from the total distance she has to go

4 2/3 - 3 1/3 = 1 1/3 miles to go 

What radius of a circle is required to inscribe an equilateral triangle with an area of 35.074 in2 and an altitude of 7.794 in? (round to nearest tenth)

Answers

check the picture below.

Answer:

[tex]r[/tex]≈[tex]5.2 in[/tex]

Step-by-step explanation:

It is given that a circle is required to inscribe an equilateral triangle with an area of [tex]35.074 in^2[/tex] and an altitude of [tex]7.794 in[/tex],

Also, we know that the centroid divides the altitude into 2:1 form, thus

[tex]r=\frac{2}{3}(h)[/tex]

Substituting the value of an altitude, we have

[tex]r=\frac{2}{3}(7.794)[/tex]

[tex]r=5.196 in[/tex]

[tex]r[/tex]≈[tex]5.2 in[/tex]

Therefore, the radius of the circle is [tex]5.2 inches[/tex].

what percent of 25 is 30? (round to nearest hundredth if necessary) please help.

Answers

25 * x/100 = 30 

x= 120 

120% of 25 is 30

Sandy is observing the velocity of a runner at different times. After one hour, the velocity of the runner is 4 km/h. After two hours, the velocity of the runner is 2 km/h.

Part A: Write an equation in two variables in the standard form that can be used to describe the velocity of the runner at different times. Show your work and define the variables used. (5 points)

Part B: How can you graph the equations obtained in Part A for the first 4 hours? (5 points)

Answers

just make sure to plot the in part B

Answer:

As per the statement: Sandy is observing the velocity of a runner at different times.

Also, after one hour, the velocity of the runner is 4 km/h. and after two hours, the velocity of the runner is 2 km/h..

(A)

Let x represents the time in hours and y represents the velocity of the runner(in km/hr)

Then, we have two points from the given statement:

(1, 4) and (2, 2)

An equation of line for two points [tex](x_1, y_1)[/tex] and [tex](x_2, y_2)[/tex] is given by;

[tex]y-y_1 = \frac{y_2-y_1}{x_2-x_1}(x-x_1)[/tex]

For the given two points (1, 4) and (2, 2) we have an equation:

[tex]y-4 = \frac{2-4}{2-1}(x-1)[/tex]

[tex]y-4 = \frac{-2}{1}(x-1)[/tex]

or

[tex]y-4 = -2(x-1)[/tex]

Using distributive property: [tex]a\cdot(b+c) = a\cdot b+ a\cdot c[/tex]

[tex]y-4 = -2x + 2[/tex]

Add 4 on both sides we get;

[tex]y-4 +4= -2x + 2+4[/tex]

Simplify:

[tex]y= -2x + 6[/tex]

Add 2x on both sides we get;

[tex]y + 2x=-2x+6+ 2x[/tex]

Simplify:

[tex]y + 2x = 6[/tex]

[Since, standard form for linear equations in two variables is Ax+By=C]

Therefore, an equation in two variables in the standard form that can be used to describe the velocity of the runner at different times is:

[tex]2x+y= 6[/tex] ; where x represents the time in hours and y represents the velocity of the runner.

(B)

Equation in part A

It is given as;  [tex]2x+y= 6[/tex]          .....[1]

To graph this equation; for the first 4 hours.

x                  y = -2x+6

1                  4

2                 2

3                 0

4                 -2

Now, using these points (1, 4) , (2, 2) , (3, 0) and (4, -2) plot the graph as shown below in the attachment.

Write two numbers so that
The first number is less than the second number, and

The absolute value of the first number is greater than the absolute value of the second number

Answers

-5 and 2 would work.

Consider the equation below. f(x) = x5 ln x (a) what is the domain of the function?

Answers

The given function is
f(x) = x⁵ ln(x)

Note that ln(x) is undefined as a real function for x ≤ 0.
Therefore the domain of the function is
0 < x <∞, or x = (0,∞).

Answer: x = (0, ∞)  or 0 < x < ∞

Final answer:

The domain of the function f(x) = x5 ln x consists of all positive real numbers since the natural logarithm is undefined for zero and negative numbers.

Explanation:

The domain of a function consists of all possible input values (x-values) where the function is defined. In the case of the function f(x) = x5 ln x, we need to consider where this function is defined.

The domain for a function that involves a natural logarithm (ln), like this one, is always x > 0. This is because the natural logarithm, or ln, is undefined for values of x <= 0. In other words, we can't take a natural logarithm of zero or a negative number.

Therefore, the domain of the function f(x) = x5 ln x is x > 0. All positive real numbers are included in the domain, while zero and negative numbers are excluded.

Learn more about the Domain of Function here:

https://brainly.com/question/28599653

#SPJ11

A plane is traveling at a speed of 400 miles per hour.How far will the plane travel in 5 hours?

Answers

5x4 which will travel 2,000 miles.

Answer:

Step-by-step explanation:

Draw or write two ways to use a doubles fact to find 6+7

Answers

Here are a few doubles facts:

5+5=10
2+2=4
3+3=6

A double is simply a pair of identical numbers added together. There's a pair of doubles you can subtract 1 from to get 6+7, and there's a pair you can add 1 to get the same answer. What are those pairs?

Hint: If you take the example 3+4, you can either subtract 1 from the double 4+4 or add 1 to the double 3+3 to obtain your answer.

If 40% is equal to the fraction x/30, what is the value of X?

Answers

The correct answer is D.12

The value of x is 12 and this can be determined by using the arithmetic operations and the given data.

Given :

40% is equal to the fraction x/30.

The following steps can be used in order to determine the value of 'x':

Step 1 - The arithmetic operations can be used in order to determine the value of 'x'.

Step 2 - According to the given data, the 40% is equal to the fraction x/30.

Step 3 - So, the value of X is calculated as:

[tex]\dfrac{40}{100}=\dfrac{x}{30}[/tex]

Step 4 - Simplify the above expression.

x = 12

For more information, refer to the link given below:

https://brainly.com/question/25834626

Solve the system by elimination
2x+6y= -12
5x-5y= -10

Answers

First thing you should do is reduce coefficients.

1st equation has all multiples of '2'. Divide by 2
---> x +3y = -6

2nd equation has multiples of 5. Divide by 5.
---> x - y = 2

Now elimination part is easier. 
Eliminate 'x' variable by subtracting 2nd equation from 1st.

   x + 3y = -6
-(x  - y = 2)
----------------------
       4y  = -8

Solve for 'y'
4y = -8

y = (-8)/4 = -2


Substitute value for 'y' back into 2nd equation:
x - (-2) = 2
x + 2 = 2
x = 0

Solution to system is:
x=0, y =-2

Nola hiked down a trail at a steady rate for 10 minutes. Her change in elevation was -200 feet. Then she continued to hike down for another 20 minutes at a different rate. Her change in elevation for this part of the hike was -300 feet. During which portion of the hike did she walk down at a faster rate ? Explain your reasoning

Answers

Her speed is minutes per foot or feet per minutes, so we have 10 minutes/-200 feet=-1/20 feet. Since it doesn't matter that it's negative (we care about the speed, and you can't have negative speed), we get the absolute value (1/20). For the next 20 minutes, we have |20 minutes/-300 feet|=1 minute/15 feet. Since 1/20=0.05 and 1/15 is 0.0666667, 1/15 is clearly higher and the 20 minute portion was at a faster rate

help asap need answer

Answers

In this graph, the y is half of the x. Therefore, the correct answer is C, (9, 4.5). Hope this helps!
(9, 4.5) could potentially be added to the graph at it's current rate

HELPPPPPPPPP STATTTSSSSS

Answers

which one do you need an answer to?
14. 17-6 =11
15. 17+6=23
16.10-6=4 and 17 -6=11, 11+4=15.

Convert this improper fraction to a mixed number. 56/5

11 r 1

11 1/5

11.2

5/56

Answers

Attached a solution and showed work.
The answer is:  [B]:  " 11 ⅕ " .
___________________________
This answer choice is the only "mixed number" option provided!

A recipe uses 6 cups of cheese to serve 30 people. How much cheese is needed for 50 people

Answers

[tex]\bf \begin{array}{ccll} \stackrel{cheese}{cups}&people\\ \text{\textemdash\textemdash\textemdash}&\text{\textemdash\textemdash\textemdash}\\ 6&30\\ c&50 \end{array}\implies \cfrac{6}{c}=\cfrac{30}{50}\implies \cfrac{6\cdot 50}{30}=c[/tex]

A chicken soup recipe calls for
9
cups of chicken stock. How much is this in quarts?

Answers

It should be 2.25 of quarts from 9 cups of chicken stock.
that will be 2.25 quarts 

9 / 4 = 2.25

Jason decides to invest in a new two-piece suit which will cost him $200. He estimates he will wear it five time per month for two years. Dry cleaning will cost about $15. Jason estimates he will have the suit cleaned four times per year. What is the total investment for the suit? What is the cost per wear?

Answers

His cost per wear

He will have 240 wears in 5 years

$180 in dry cleaning and $200 for cost of the suit.

$380 total investment

$1.58/per wear




The total investment for the suit is $380 and the cost per wear is $1.58.

What is Unitary Method?

The unitary technique involves first determining the value of a single unit, followed by the value of the necessary number of units.

For example, Let's say Ram spends 36 Rs. for a dozen (12) bananas.

12 bananas will set you back 36 Rs. 1 banana costs 36 x 12 = 3 Rupees.

As a result, one banana costs three rupees. Let's say we need to calculate the price of 15 bananas.

This may be done as follows: 15 bananas cost 3 rupees each; 15 units cost 45 rupees.

We have,

Jason decides to invest in a new two-piece suit which will cost him $200.

So, the total amount he invested

= $180 in dry cleaning + $200 for cost of the suit.

= $380

and, the cost per wear is

= 380/ 240

= $1.58

Learn more about Unitary Method here:

https://brainly.com/question/22056199

#SPJ7

1. Helene’s credit card has an APR of 16.8%. She never pays her balance in full, so she always pays a finance charge. Her next billing cycle starts today. The billing period is 30 days. Today’s balance is $712.04. She is only going to use the credit card this month to make a $5,000 down payment on a new car

Answers

Answer:

a. 5712.04

b. 5712.04

c. 79.97

d. 878.71

e. 12.30

f. 67.67

Step-by-step explanation:

B- 17136.12 /30= 5712.04  

C- 5712.0r x 0.014 =79.97  

D- 712.04 x 29= 20,649.16  

   5723.04 x 1 = 5712.04  

                         = 26,361.20/ 30  

                               =878.71  

E- 878.71(0.014)= 12.30  

F- 79.97 -12.30 = 67.67

Final answer:

Helene will accrue a finance charge on her credit card due to not fully repaying her balance. With her APR, the monthly interest is 1.4%, which is then applied to her $5,712.04 balance after making the car down payment. This example illustrates how credit card interest is calculated and applied.

Explanation:

Given Helene's credit card's Annual Percentage Rate (APR) of 16.8%, the total credit card balance after making the $5,000 down payment on a car will be $5,712.04. The APR is divided into 12 months to get the monthly interest rate. Therefore, the monthly interest rate is 16.8 / 12 = 1.4%. The finance charge for the next billing cycle will be 1.4% of  $5,712.04.

Additionally, considering that Helene does not fully repay her balance, she is always subject to a finance charge, which is the cost of borrowing money. The interest cost is calculated by applying the interest rate to the balance left over at the end of the billing cycle.

This scenario is a real-world example of credit card finance and illustrates how credit card interest is computed and applied each billing cycle.

Learn more about Credit Card Finance here:

https://brainly.com/question/34723269

#SPJ3

find x when y= 14, if y=7 when x=8

Answers

Answer:  The required value of x is 16.

Step-by-step explanation:  Given that the value of y is 7 when the value of x is 8.

We are to find the value of x when y is 14.

The ratio of y to x is given by

[tex]y:x=7:8.[/tex]

Therefore, when y = 14, we must have

[tex]14:x=7:8\\\\\\\Rightarrow \dfrac{14}{x}=\dfrac{7}{8}\\\\\\\Rightarrow x=\dfrac{14\times8}{7}\\\\\Rightarrow x=16.[/tex]

Thus, the required value of x is 16.

An aircraft travels with the wind for 120 miles in 0.75 of an hour. The return trip is flown against the wind and takes exactly 1 hour.

Which system of linear equations represents x, the speed of the plane in miles per hour, and y, the speed of the wind in miles per hour? Recall the formula d = rt.

Answers

Answer:

its  A

Step-by-step explanation:

Use the three steps to solve the problem. Joe is 10 years older than James. In 8 years, twice Joe's age will equal three times James's age. How old is each now? {James is 78 a0yrs., Joe is 88 a1yrs.}

Answers

x+8: James' age in 8 years
x+10+8: Joe's age in 8 years
2(x+10+8)=3(x+8)
2x+36=3x+24
x=12
James=12 years old
Joe=22 years old

Answer:

James is 12 years old

Joe is 22 years old

Step-by-step explanation:

Joe is 10 years older than James. In 8 years, twice Joe's age will equal three times James's age.

LEt x be the age of James

x+10 be the age of Joe

In 8 years,  James age becomes x+8

In 8 years, Joe's age becomes x+10+8 = x+18

Twice Joe's age is equal to 3 times of James's age

2(x+18)= 3(x+8)

2x+ 36=3x+24

Subtract 2x from both sides and subtract 24 from both sides

x=12

James is 12 years old

Joe is x+10 = 22 years old

What is the probability that two people have a birthday on the same day of the same month?

Answers

The chance that the second person has the same birthday is 1/365.

adding fractions 4/9 + 1/3=

Answers

4/9 + 1/3

find the least common denominator (LCD) which is 9.

4/9 + 1 × 3/ 3 × 3     makes the denominators the same as the LCD.

4/9 + 3/9       simplify and both denominators are the same.

7/9

hope this helps, God bless!

what is equivalent to the square root of -27

Answers

For the square root of a negative number, you would have to get into imaginary numbers. If you haven't learned about it yet, then the answer would be no real solutions. But if you have, here's how to solve it:

First, identify that 9 x 3 = 27. To after taking the square root, you will get 3√3 (Since the square root of 9 is 3 and there's no square root of 3, so leave it in the √)

However, since it is a negative number, you will have to include the letter i in the answer. i represents the imaginary part of it since you can't have a negative number in the square root.

So your answer will look like 3i√3.

Ronald is saving money to buy a bicycle. He has $37.80 in his savings account and saves 20% of his paper route

Answers


[tex]37.80 \times \frac{1}{5} = \frac{37.80 \times 1}{5} = \frac{37.80}{5} = 7.56[/tex]

what is the square root of 658

Answers

Using a calculator or long division, the square root of 658 is approximately 25.66.

To find the square root of 658, we can use a calculator or the long division method.

Using the long division method:

Step 1: Guess a number whose square is close to 658. Let's start with 25, since [tex]\(25^2 = 625\)[/tex], which is close to 658.

Step 2: Divide 658 by 25. [tex]\(658 \div 25 = 26.32\)[/tex]

Step 3: Take the average of the quotient and the divisor: [tex]\((25 + 26.32) \div 2 = 25.66\)[/tex]

Step 4: Repeat steps 2 and 3 using the new guess until the desired level of accuracy is achieved.

By repeating these steps, we'll get closer to the square root of 658. However, using a calculator will give a more accurate result.

If f(x) = 9 cos2(x), compute its differential df. df = (−18cos(x)sin(x))dx correct: your answer is correct. approximate the change in f when x changes from x = π 6 to x = π 6 + 0.1. (round your answer to three decimal places.) δf = .738 incorrect: your answer is incorrect. approximate the relative change in f as x undergoes this change. (round your answer to three decimal places.)

Answers

Given: f(x) = 9 cos (2x)

The differential equation is df = - 18 sin(2x) dx

When x contrasts from π/6 to π/6 + 01, then dx = 0.1.
The variation in f is δf = - 18 sin(π/3) *(0.1) = -1.5588 ≈ -1.559

The computation in the change in f directly:

f(π/6) = 9 cos(π/3) = 4.5
f(π/6 + 0.1) = 9 cos(π/3 + 0.2) = 2.6818
δf = 2.6818- 4.5 = -1.6382 ≈ -1.638

Direct computation of δf is near to the real value but in error. 
The two outcomes will be closer as dx gets smaller.

Answer would be:
δf = -1.559  (correct answer)
δf = -1.638 (approximate answer)

Answer:

a

Step-by-step explanation:

When a person reaches the age of 35 for how many seconds has that person lived?

Answers

60 sec = 1 minute
60 min = 1 hour
24 hr = 1 day
365 days = 1 year

So, a 35-year old person is roughly 365(35) days old, or 12775 days.
Continuing applying conversion factors until you've calculated how many seconds that is.  The next calculation is 12775 days times (24 hours) / (1 day)
Final answer:

A person who has reached the age of 35 has lived approximately 1,103,760,000 seconds. This is calculated by multiplying the number of seconds in a year by 35.

Explanation:

To calculate how many seconds a person has lived by the age of 35, we need to calculate the number of seconds in a year and multiply that by 35. There are 60 seconds in a minute, 60 minutes in an hour, 24 hours in a day, and 365 days in a year. Therefore, there are approximately 31,536,000 seconds in a year. If we multiply that by 35, we find that a 35-year-old person has lived approximately 1,103,760,000 seconds.

Learn more about Calculating Time here:

https://brainly.com/question/40268130

#SPJ12

Other Questions
Why was americas victory at yorktown among rhe most significant battles of the american revolutiin Plz help Im giving brainlist Indicate which strategy is likely to lead to optimal muscle glycogen replenishment. meal size Ravon was born deaf, so he is diagnosed with ________ deafness. How could this idea be expressed with personification? A.The clock ticked on, and minutes lasted long B. The minutes were as slow as melting snow C. As I stared, the clock was an irritating blister D. As time refused to budge, my patience strained Whenever possible, the nurse who is treating the pain of older adults should avoid the use of which drug(s)? What is a predicate adjectives Joanna has a flat wooden triangular piece as part of a wind chime. the piece is suspended by a wire anchored at a point equidistant from the sides of the triangle. where is the anchor point located? one of the major steps in Napoleon climb to power A person on another planet shines a flashlight at you. The planet and the earth are both in the same reference frame and are not moving relative to each other. At the same instant that the person shined the flashlight at you, a person on a spaceship passing that planet and moving toward you at 0.5 c also shined a flashlight at you. Which light pulse will reach you first?A. the light from the person on the planetB. the light from the flashlight on the spaceship C. the two light pulses will reach you at the same time. order the set of numbers from least to greatest11/20, 1/2, 0.51a. 0.51, 11/20, 1/2b. 1/2, 0.51/, 11/20c. 1/2, 11/20, 0.51d. 0.51, 1/2, 11/20 The key characteristic used to identify a group as a "biological species" is: Societal regulations and laws may be developed or changed in response to scientific findings. Which type of scientific research has resulted in the passing of many laws? Bryan is buying notebooks and pens at an office supply store. Notebooks cost $3.59 and pens cost $1.49. He can spend up to $13 on these items. Let x represent the number of notebooks. Let y represent the number of pens. Enter an inequality that represents the situation. Please help!! :) Which handheld device combines the features of a personal digital assistant (PDA) and a cell phone? Which three of the following choices are examples of commons? A. Wild animals B. Local restaurants C. Dark skies D. Private companies E. Natural areas Select the factor pairs for the number 28. Choose ALL that apply.A 20 and 8B 7 and 4C 14 and 2D 28 and 1 What is the value of 2x4+5x when x =6? Write the expression as the sine, cosine, or tangent of an angle. cos 8x cos 2x - sin 8x sin 2x The number of chickens to the the number of ducks on a farm was 6:5. after 63 ducks were sold, there were three times as many chickens as ducks left. how many chickens were there on the farm Steam Workshop Downloader