Answer:
x = 4
Step-by-step explanation:
If a line is parallel to a side of the triangle and intersects the other 2 sides then it divides those sides proportionally, that is
\(\frac{2}{4}\) = \(\frac{x-1}{6}\) ( cross- multiply )
4(x - 1) = 12 ( divide both sides by 4 )
x - 1 = 3 ( add 1 to both sides )
x = 4
Luis bought stock at $69.90. The next day, the price increased $11.65. This new price changed by −3
3
4
% the following day. What was the final stock price, rounded to the nearest cent? Is your answer reasonable? Complete the explanation.
Answer:The original stock price was $83.60 and it went up by 15.35 so it became $98.95 and then 4.75% of this was then $4.70 so $98.95-4.70=$94.25 so even with the drop in value the stock price still went up by $10.65 so gained significantly in value.
Step-by-step explanation:
The amount in Ebony's bank account B(d) is a function of the number of days d since she opened the account.
The graph segments representing her day-by-day bank balance. Although there are no labeled tick marks on the graph, you can answer the questions by using the additional given information as well as your general knowledge of graphs of functions.
a) Domain of the function 0 ≤ d ≤ 21 (0,21)
Range of the function 0 ≤ B ≤ 400 (0,400)
b) Estimate to the nearest hundreds for B(0) is 200
c) Ebony's bank balance first reached $0 on day 12 can be shown as functional notation as - we can add the number 12 below the first point reaching the horizontal axis.
d) Ebony's bank balance remained $0 from day 12 through day 15. The segment which represents the information is - segment 4.
(a) Domain: the collection of values used as input or arguments for the function.
Range: Either the codomain or the function's image is mentioned.
For three weeks, Ebony's bank account was active (21 days). then the domain is 0 ≤ d ≤ 21 (here 'd' refers to day)
Her highest balance was $400 and her lowest was zero, so the range is 0 ≤ B ≤ 400. (Here, 'B' refers to Balance)
(b) When d = 0, the graph's highest point, which represents her highest balance of $400, is displayed. This means that on the first day, the point will probably only be half as high as the highest point. Therefore, we may calculate the nearest hundred for B(0) is about equal to 0.5 * 400 = 200.
(c) In other words, the line of the function first touches the horizontal axis at d = 12; the balance first reached $0 on day 12. Below the first point that reaches the horizontal axis, we can add the number 12.
(d) From day 12 through day 15, the bank balance stayed at zero dollars; this is shown by the vertical axis of segment 4 of graph 4.
COMPLETE QUESTION:
The amount in Ebony's bank account B(d) is a function of the number of days(d) since she opened the account. The graph shows segments representing her day-by-day bank balance. Although there are no labeled tick marks on the graph, you can answer the questions by using the additional given information as well as your general knowledge of graphs of functions. (Score for Question 1;_ of 4 points) 1. Ebony kept her bank account open for only 3 weeks, and the graph shows the entire 3 weeks. During that time, her greatest balance was $400.
(a) Give the domain and range of the function. 0 ≤ d ≤ 21 domain; 0 ≤ B ≤ 400
(b) Give an estimate to the nearest hundreds for B(0). Explain how you determined your estimate and tell what B(0) means in the context of the situation.
(c) Ebony's bank balance first reached $0 on Day 12. How would you show that information in function notation? B(12) = 0
(d) Ebony's bank balance remained at $0 from Day 12 through Day 15. As you count segments from the left, which segment on the graph1, 2, 3, 4, 5, or 6 represents that information? Explain how you know. 4th segment
To know more about the domain and range, refer to this link:
https://brainly.com/question/28743538
#SPJ1
what is the slope of the line ?
Answer:
-3/4
Step-by-step explanation:
To find the slope of a line, you need to see how much it "rises" over a certain amount of "run". In other words, for a given amount of distance traveled along the x axis, how much it traveled vertically along the y axis. In this line, for every 4 units moved to the right, the line goes up by -3 units. Therefore, the slope of the line is -3/4. Hope this helps!
Answer:
m = -4/5
Step-by-step explanation:
Slope is the difference in y-values/difference in x-values.
Since the graph goes 4 units down and 5 units right, the slope is -4/5.
PLEASE HELP!!! I NEED A ANSWER ASAP!!
Answer:
B. y=1/2x + 3
Step-by-step explanation:
The starting point on the graph is 3. That's how we get + 3, and the slope is 1/2 because the line is going to the right making it positive, and rise over run can determine the slope to be 1/2x.
Find the distance between points P(8, 2) and Q(3, 8) to the nearest tenth.
\(~~~~~~~~~~~~\textit{distance between 2 points} \\\\ P(\stackrel{x_1}{8}~,~\stackrel{y_1}{2})\qquad Q(\stackrel{x_2}{3}~,~\stackrel{y_2}{8})\qquad \qquad d = \sqrt{( x_2- x_1)^2 + ( y_2- y_1)^2} \\\\\\ PQ=\sqrt{(~~3 - 8~~)^2 + (~~8 - 2~~)^2} \implies PQ=\sqrt{( -5 )^2 + ( 6 )^2} \\\\\\ PQ=\sqrt{ 25 + 36 } \implies PQ=\sqrt{ 61 }\implies PQ\approx 7.8\)
A coin is tossed 116 times. Heads appears 29 times. What is the experimental probability of getting heads?
Btw 40 pts for this :NOT A SCAM
Answer: 29/116
Step-by-step explanation:
PLS ANS THIS QUESTION PLS
Answer:
6x^2 + 2xy -9y^2 +3y +10
Step-by-step explanation:
yes
Someone please help am kind of stuck 10 points awarded and brainless please help and thank you
Answer:
157.92 + d = ?
Step-by-step explanation: Since you don't the amount of what his grandmother gave him you substitute the "number" for a letter. Example A or D.
I hope this helps.
(financial math) If you want to work in finance, it helps to have experience in Accounting.
True
False
True, as Accounting and finance are closely related fields.
What is finance and accounting?Accounting and finance are separate but connected professions. Accounting is the process of documenting, categorizing, and summarizing financial transactions in order to provide data that may be used to guide company decisions. The correct reporting of financial data and historical data are its main concerns.
Accounting and finance are professions that are intimately tied to one another, and many financial jobs need for a thorough knowledge of accounting concepts. Accounting is the practice of logging, categorizing, and compiling financial transactions to provide data that aids in company decision-making.
Hence, true. If you want to work in finance, it helps to have experience in Accounting.
Learn more about finance here:
https://brainly.com/question/10024737
#SPJ1
answer this question
 Find the perimeter of the composite shape, round to two decimal places. please help
16 + 7.86 = 23.86cm
The perimeter of an object is the distance around the object or figure.
we are given all the sides so we have to find the perimeter of the semi circle which is 7.86cm
To learn more about perimeter read it here https://brainly.com/question/12898450
#SPJ1
SLOPE TOPIC!! . Determine a possible second point with a y-coordinate of 8.
Please help!!! I will give brainliest
A possible second point which has a y-coordinate of 8 is 5.
How to calculate the slope of a line?In Mathematics, the slope of any straight line can be determined by using this mathematical equation;
Slope (m) = (Change in y-axis, Δy)/(Change in x-axis, Δx)
Slope (m) = (y₂ - y₁)/(x₂ - x₁)
Based on the information provided, we can logically deduce the following slope and data points on the line:
Points on x-axis = (1, 2).Points on y-axis = (_, 8).Slope (m) = 3/2Substituting the given points into the slope formula, we have the following;
Slope, m = (y₂ - y₁)/(x₂ - x₁)
3/2 = (8 - 2)/(x₂ - 1)
3/2 = 6/(x₂ - 1)
Cross-multiplying, we have:
3(x₂ - 1) = 12
x₂ - 1 = 12/3
x₂ - 1 = 4
x₂ = 4 + 1
x₂ = 5
In conclusion, the required second point (x₂) is equal to 5.
Read more on slope here: brainly.com/question/3493733
#SPJ1
Help please ...A square field has an area of 479 ft2. What is the approximate length of a side of the field? Give your answer to the nearest foot. Explain your response.
you do 479 x 2 = 958 there is your answer your welcome
7. Josh takes a twenty-question multiple-choice exam where each question has five possible answers. Some of the answers he knows, while others he gets right just by making lucky guesses. Suppose that the conditional probability of his knowing the answer to a randomly selected question given that he got it right is 0. 92. How many of the twenty questions was he prepared for
The total number of twenty questions prepared by Josh can be find by using the expression k = 20 * P(getting a question right) / (1 + 20 * 0.08 / 0.92), where, k = total question prepared by Josh
Let's call the number of questions Josh was prepared for as "k".
The probability of Josh getting a question right given that he knew the answer is 0.92,
So the probability of him getting a question right by guessing is
1 - 0.92 = 0.08.
The overall probability of Josh getting a question right is the sum of the probability of him getting it right given that he was prepared and the probability of him getting it right by guessing:
P(getting a question right) = P(getting a question right | prepared) * P(prepared) + P(getting a question right | guessed) * P(guessed)
Since each question is either prepared or guessed, the sum of P(prepared) and P(guessed) is 1:
P(getting a question right) = 0.92 * P(prepared) + 0.08 * (1 - P(prepared))
Simplifying the expression:
P(getting a question right) = 0.92 * P(prepared) + 0.08
Since the overall probability of Josh getting a question right is the same for every question,
it must be the same for all twenty questions:
So, we can write it as:
0.92 * P(prepared) + 0.08
= 0.92 * k/20 + 0.08 * (20-k)/20
Dividing both sides by 0.92:
P(prepared) = k/20 = (0.92 * k + 0.08 * 20 - 0.08) / 0.92
Isolating k:
k = 20 * P(prepared) / (1 + 20 * 0.08 / 0.92)
Plugging in the overall probability of Josh getting a question right, we have:
k = 20 * P(getting a question right) / (1 + 20 * 0.08 / 0.92)
For more questions on conditional probability
https://brainly.com/question/28339868
#SPJ4
A new car loses 18% of its value in a year. At a year old, it is worth
£12,505. How much was it worth when new?
Hint: Losing 18% means the new value is 82% of the original value.
Answer:
11,155
Step-by-step explanation:
aining these 6 tickets: 2, 9, 5, 6, 4, 4 a. what is the smallest possible value the sum of the 81 draws could be?
The smallest possible value for the sum of the 81 draws is 411.
To find the smallest possible value of the sum of the 81 draws, we need to minimize the value of each individual ticket. Since we have six tickets with values of 2, 9, 5, 6, 4, and 4, we can assume that each ticket will be drawn 13 or 14 times (since 13 x 6 = 78 and 14 x 6 = 84).
To minimize the sum of the draws, we want to have as many tickets with a value of 2 and 4 as possible. Let's assume that we have 14 draws for each ticket except for the 9 (which we will assume is drawn 13 times).
So, our calculation would be:
(2 x 14) + (9 x 13) + (5 x 14) + (6 x 14) + (4 x 14) + (4 x 14) = 28 + 117 + 70 + 84 + 56 + 56 = 411
Know more about sum here:
https://brainly.com/question/5982761
#SPJ11
the tree diagram below shows the probabilities for the simple events combining weather patterns and seasons of the year
The tree diagram illustrates the probabilities associated with different combinations of weather patterns and seasons of the year. The tree diagram is a visual representation that presents the probabilities of various outcomes resulting from the combination of weather patterns and seasons of the year.
It is a useful tool for understanding the likelihood of specific events occurring based on different factors.
The diagram is structured hierarchically, with the weather patterns forming the first level and the seasons of the year forming the second level. Each branch represents a specific combination, and the probability associated with that combination is indicated on the branch.
By analyzing the diagram, one can observe how the probabilities change depending on the weather patterns and seasons. For instance, certain weather patterns may be more prevalent during specific seasons, resulting in higher probabilities for certain combinations.
Overall, the tree diagram serves as a visual aid to comprehend the probabilities associated with simple events combining weather patterns and seasons of the year, enabling a better understanding of the likelihood of different outcomes based on these factors.
Learn more about probability here: https://brainly.com/question/31828911
#SPJ11
If the two figures are congruent, which statement is true?
A. BCDA ≅ FEHG
B. ABCD ≅ EFGH
C. BADC ≅ EFGH
D. ADCB ≅ HGFE
Answer:
A
Step-by-step explanation:
the order of letter should resemble the same shape
for the function g on [0, /2], find the average value gave. g(x) = esin(x) cos(x),
The average value of g on [0, /2] is approximately 0.721.
To find the average value of g on [0, /2], we need to use the formula:
Avg(g) = (1/(/2 - 0)) ∫[0, /2] g(x) dx
First, let's simplify g(x) by using the identity cos(2x) = 1 - 2sin²(x) to get:
g(x) = esin(x) cos(x) = esin(x)(1 - 2sin²\((x))^{(1/2)}\)
Now we can substitute u = sin(x) and du = cos(x) dx to get:
Avg(g) = (1/(/2 - 0)) ∫[0, /2] esin(x)\((1 - 2sin^2(x))^{(1/2)}\) dx
= (1/2) ∫[0, 1] \(e^u(1 - 2u^2)^{(1/2)}\) du (using the substitution u = sin(x))
Unfortunately, this integral does not have an elementary antiderivative, so we have to use numerical methods to approximate the value of the integral. One possible method is to use Simpson's rule, which gives:
Avg(g) ≈ (1/6) \([e^0(1 - 2(0)^2)^{(1/2)} + 4e^{(1/4)}(1 - 2(1/4)^2)^{(1/2)} + 2e^{(1/2)}(1 - 2(1/2)^2)^{(1/2)} + 4e^{(3/4)}(1 - 2(3/4)^2)^{(1/2)} + e^1(1 - 2(1)^2)^{(1/2)}]\)
Evaluating this expression numerically gives:
Avg(g) ≈ 0.721
Therefore, the average value of g on [0, /2] is approximately 0.721.
Learn more about average value here:
https://brainly.com/question/29150654
#SPJ11
Real Analysis Intermediate Value Theorem
Use the IVT to prove one of the following statements: If f : [1, 2] + R is a continuous function with f(1) < 1 and f(2) > 8 then there is a ce (1,2) so that f(c) = c.
Given the function f : [1, 2] + R is continuous function with f(1) < 1 and f(2) > 8, we have to show that there is a c in (1, 2) so that f(c) = c. This can be proved by using the intermediate value theorem (IVT).
Assume that the function f : [1, 2] + R is continuous on the interval [1, 2] and f(1) < 1 and f(2) > 8. Then, by the IVT, for any number M between f(1) and f(2), there exists a point c in the open interval (1, 2) such that f(c) = M. Since f(1) < 1 < 8 < f(2), we can choose M = c.
Hence, there exists a point c in (1, 2) such that f(c) = c. This completes the proof.Explanation:In mathematics, the intermediate value theorem (IVT) states that for a continuous function f(x) on a closed interval [a, b], if a value y is between f(a) and f(b), then there exists at least one c in the open interval (a, b) such that f(c) = y.
The IVT is used to show the existence of a root of a function or to prove the existence of a solution to an equation. In this problem, we are given a continuous function f(x) on the closed interval [1, 2] with f(1) < 1 and f(2) > 8.
We want to show that there exists a point c in the open interval (1, 2) such that f(c) = c. To do this, we can use the IVT by choosing M = c.
Since f(1) < 1 < 8 < f(2), we know that there exists a point c in (1, 2) such that f(c) = c, which completes the proof.
To know more about intermediate value theorem click on below link:
https://brainly.com/question/30403106#
#SPJ11
8. Set up the artificial variable LP (Phase I LP) and specify the EBV and the LBV. DO not perform a complete pivot (complete with the exchange of basic variables). ( 16pts ) MaxZ=4x
1
+7x
2
+x
3
s.t.
2x
1
+3x
2
+x
3
=20
3x
1
+4x
2
+x
3
≤40
8x
1
+5x
2
+2x
3
≥70
x
1
,x
2
≥0
To set up the artificial variable LP (Phase I LP) for the given problem, we introduce an artificial variable, LP, to the objective function with a coefficient of 1. The artificial variable is used to identify infeasible solutions.
To set up the artificial variable LP (Phase I LP), we modify the objective function as follows:
Maximize Z = 4x1 + 7x2 + x3 + LP
The artificial variable LP is introduced to the objective function with a coefficient of 1. This allows us to track its value during the iterations.
The initial constraints remain the same:
2x1 + 3x2 + x3 = 20
3x1 + 4x2 + x3 + x4 = 40
8x1 + 5x2 + 2x3 - x5 = 70
The initial basic variables (BV) are the slack variables corresponding to the equality and inequality constraints, namely, x3 and x4. The artificial variable LP is initially a non-basic variable.
The initial artificial variables' basic variable (BVB) values are set to the right-hand side values of the constraints:
x3 = 20
x4 = 40
The initial artificial variable LP's value is set to 0.
Next, the artificial variable LP is selected as the entering variable, as it has a positive coefficient in the objective function. To determine the leaving variable, we perform the ratio test using the ratios of the right-hand side values and the entering column values (coefficients of LP) for the respective constraints.
The leaving variable is determined based on the minimum ratio, ensuring that the corresponding row represents a valid pivot element. If no valid pivot element is found, the problem is infeasible.
This completes the setup of the artificial variable LP (Phase I LP) without performing a complete pivot. Further steps would involve applying the simplex method and iteratively pivoting to find the optimal solution or identify infeasibility.
Learn more about coefficient here: brainly.com/question/13431100
#SPJ11
According to the National Institute of Literacy (2017). Staggering Illiteracy Statistics. nearly 44 million adults in the United States cannot read a simple story to their children. How does PLAIN language bridge the staggering illiteracy statistics in the United States?
PLAIN language helps bridge the staggering illiteracy statistics in the United States by making information and communication more accessible, understandable, and inclusive for individuals with low literacy skills. It simplifies complex language, uses plain and straightforward terms, and employs clear formatting to enhance comprehension and promote literacy.
PLAIN language is a communication approach that focuses on making written and spoken information easier to understand. It involves using clear and concise language, avoiding jargon, simplifying complex concepts, and organizing content in a logical manner. By employing PLAIN language principles, organizations and institutions can create materials, such as instructional guides, educational resources, and public information, that are more accessible to individuals with low literacy skills.
In the context of staggering illiteracy statistics, PLAIN language plays a crucial role in breaking down barriers to literacy. By using plain and simple language, individuals with limited reading abilities can better comprehend information, instructions, and stories. This enables them to actively participate in activities such as reading to their children, promoting early literacy development and fostering a love for reading. PLAIN language also empowers individuals with low literacy to navigate important documents, understand health information, engage in civic participation, and access essential services. Overall, PLAIN language helps bridge the gap caused by illiteracy, making information more inclusive and promoting literacy for all.
Learn more about statistics here:
https://brainly.com/question/15525560
#SPJ11
The table below shows the linear relationship between the number of people at a picnic and the total cost of the picnic.
The line represented by the table is:
y = 2x + 40
How to find the linear relationship?A general linear relationship is written as:
y = ax + b
Where a is the slope and b is the y-intercept.
If the line passes through (x₁, y₁) and (x₂, y₂) then the slope is:
a = (y₂ - y₁)/(x₂ - x₁)
We can use the first two pairs:
(6, 52) and (9, 58)
Then we will get:
a = (58 - 52)/(9 - 6)
a = 6/3 = 2
y = 2x + b
To find the value of b, we replace the values of one of the points, if we use the first one (6, 52), then we will get:
52 = 2*6 + b
52 = 12 + b
52 - 12 = b
40 = b
The line is:
y = 2x + 40
Learn more about linear equations at:
https://brainly.com/question/1884491
#SPJ1
In a sale, the price of a book is reduced by 25%.
The price of the book in the sale is £12
Work out the original price of the book
Question: In a sale, the price of a book is reduced by 25%. The price of the book in the sale is £12. Work out the original price of the book
Answer: £16
Step-by-step explanation:
To determine the original price of the book, we can use the fact that the sale price is 75% (100% - 25%) of the original price. Let's denote the original price as x.
75% of x = £12
To solve for x, we can set up the equation:
0.75x = £12
To isolate x, we divide both sides of the equation by 0.75:
x = £12 / 0.75
x = £16
Therefore, the original price of the book was £16.
1. Evaluate fi F.Nds where - F(x,y) (3x – 2y)i + (x^ 4 + y)j and C is the circle (x - 1)2 + (y - 3)2 = 4 oriented counterclockwise. -
The value of the line integral is -12π.
To evaluate the line integral ∫F.dr over the given circle C, we need to parameterize the curve and express F in terms of the parameters. Let's first parameterize the circle:
x = 1 + 2cos(t)
y = 3 + 2sin(t)
where 0 ≤ t ≤ 2π.
Next, we evaluate F at (x,y) and substitute the parameterization:
F(x,y) = (3x - 2y)i + (x^4 + y)j
= [3(1 + 2cos(t)) - 2(3 + 2sin(t))]i + [(1 + 2cos(t))^4 + (3 + 2sin(t))]j
Now we can write dr as dx i + dy j, and substitute the expressions for x and y in terms of t:
dr = dx i + dy j
= [-2sin(t)]i + [2cos(t)]j
The integral becomes:
∫F.dr = ∫3(1 + 2cos(t)) - 2(3 + 2sin(t))dt + ∫(1 + 2cos(t))^4 + (3 + 2sin(t))dt
= -2∫[6sin(t) + 4cos(t) - 4sin(t)cos(t)]dt + 2∫[(1 + 2cos(t))^4 + (3 + 2sin(t))]cos(t)dt
= -12π
Therefore, the value of the line integral is -12π.
Learn more about line integral here:
https://brainly.com/question/29850528
#SPJ11
How many units are in the sum of the lengths of the two longest altitudes in a triangle with sides 8, 12, and 14
The sum of the lengths of the two longest altitudes in a triangle with sides 8, 12, and 14 would be \(12 + 14 = 26\) units.
In a triangle, the lengths of the two longest altitudes are equal to the lengths of the corresponding sides.
The sides in two different forms or polygons that are in the same position are said to have corresponding sides.
The two polygons have the same size and shape if they are congruent.
Congruence exists between the corresponding sides and angles.
So, the sum of the lengths of the two longest altitudes in a triangle with sides 8, 12, and 14 would be \(12 + 14 = 26\) units.
Know more about altitudes here:
https://brainly.com/question/1159693
#SPJ11
The sum of the lengths of the two longest altitudes in the triangle with sides 8, 12, and 14 is 17 units.
The sum of the lengths of the two longest altitudes in a triangle can be found using the formula:
Sum of altitudes = (a + b + c) / 2
In this case, the sides of the triangle are given as 8, 12, and 14 units.
The longest altitude in a triangle is the altitude drawn from the longest side. So, we need to find the longest side in the given triangle.
To do that, we can arrange the sides in descending order: 14, 12, 8.
Now, we can use the formula to find the sum of the lengths of the two longest altitudes:
Sum of altitudes = (14 + 12 + 8) / 2 = 34 / 2 = 17 units
Learn more about triangle :
https://brainly.com/question/2773823
#SPJ11
2(x-1)(x+2)\(2(x-1)(x+2)\)
\(\boxed{\underline{\bf \: ANSWER}}\)
I assume the following equation is the question you asked.
\( \rightarrow \sf \: 2(x - 1)(x + 2)\)
If yes, these are the following are the steps to reach your answer :-
\(\sf \: 2(x - 1)(x + 2)\)
Use the distributive property to multiply 2 by x - 1.
\( \sf \: \left(2x-2\right)\left(x+2\right) \)
Apply the distributive property by multiplying each term of 2x - 2 by each term of x + 2.
\( \sf \: 2x^{2}+4x-2x-4 \)
Combine 4x and - 2x to get 2x.
\( \boxed{ \bf \: 2x^{2}+2x-4 }\)
=> The answer will be 2x² + 2x - 4.
_________
Hope it helps.
▄▀▄▀▄ RainbowSalt2222 ▄▀▄▀▄
there is a 5 person round table. 5 different people sit down at the table. what are the odds that sue will sit next to bob?
The probability that Sue will sit next to Bob is 96/24 = 4. So, the odds are 4:1.
We need to find out the odds that Sue will sit next to Bob. There is a round table with five different people. Therefore, the total number of ways that five different people can be seated at a round table is (5 - 1)! = 4!.
Thus, there are 24 ways that these five different people can be seated around the table. Now, let's say Sue and Bob are sitting next to each other. Thus, there are 4! = 24 ways in which they can be seated around the table. Now, Sue and Bob can be treated as a single unit since they are sitting together. So, there are a total of 48 + 48 = 96 possible ways that Sue will sit next to Bob in a 5 person round table. There are 24 possible ways that 5 people can be seated around the table.
To learn more about probability, visit:
https://brainly.com/question/32117953
#SPJ11
Tom is running for president of the chess club, and he received 60 votes. There are 80 members in the club. What percentage of the club members voted for Tom?
Answer:
75%
Step-by-step explanation:
\(\frac{60}{80}\) = .75
To change a decimal to a percentage move the decimal 2 places to the right.
75%
Helping in the name of Jesus.
Creates a histogram in kotlin that allows you to inspect the frequency visually.
Kotlin code has had nine or fewer lines.
The program should generate 200 random integers in the range 1 through 100 inclusive and store these into an array. Loop through the array and sort the ranges so that you can then print out the report.
Produce a chart like the one indicated at the bottom. How many values fell in the range 1 to 10, 11 to 20, and so on. Print one asterisk for each value entered.
Range # Found Chart
-------- ---------- -------------------------------------------
1 - 10 | 28 | ****************************
11 - 20 | 18 | ******************
21 - 30 | 21 | *********************
31 - 40 | 26 | **************************
41 - 50 | 23 | ***********************
51 - 60 | 7 | *******
61 - 70 | 18 | ******************
71 - 80 | 24 | ************************
81 - 90 | 14 | **************
91 - 100 | 22 | *********************
The complete code to create a histogram in Kotlin that allows you to inspect the frequency visually with nine or fewer lines is shown below:import kotlin.random.
Randomfun main() {val array = Array(200) { Random.nextInt(1, 101) }array.sort()var i = 1while (i < 100) {val count = array.count { it < i + 10 && it >= i }println("${i} - ${i + 9} | ${count} | " + "*".repeat(count))i += 10}}
The program above first generates an array of 200 random integers between 1 and 100 inclusive. It then sorts the array in ascending order. Next, the program loops through the ranges from 1 to 100 in steps of 10.
Within the loop, the program counts the number of elements in the array that fall within the current range and prints out the corresponding row of the histogram chart.
Finally, the program increments the loop variable by 10 to move to the next range and continues the loop.
To know more about histogram visit:
brainly.com/question/30200246
#SPJ11