The program is an illustration of loops.
Loops are used to perform iterative and repetitive operations.
The program where comments are used to explain each line is as follows:
public class MyProgram extends ConsoleProgram {
public void run() {
//This prompts the user for the number of times to repeat the message
echo("Anybody home?", readInt("Times to repeat: "));
}
private void echo(String lineOne, String lineTwo, int numTimes) {
//The following iteration is repeated numTimes times
for (int i = 0; i < numTimes; i++){
//This prints lineOne
System.out.println(lineOne);
//This prints lineTwo
System.out.println(lineTwo);
}
}
}
Read more about similar programs at:
https://brainly.com/question/17972093
Han rides his bike for 50 miles over 4 hours.How long will it take him to ride 75 miles?
Answer:
6 hours.
Step-by-step explanation:
This is directly proportional, meaning if you multiply one side by a number, you multiply the other side by the same number. For the ratio 50:4, you would have to multiply 1.5 to 50 to get 75 miles, so you would also have to multiply 4 by 1.5. This would get you 6 hours.
Body surface area is calculated a) in m2 from weight and height. b) from height. c) from weight. d) in meters from weight and height.
Answer:
Body surface area is calculated a) in m2 from weight and height.
Step-by-step explanation:
Basically the surface has to be in m2, because you have two dimensions when you multiply: e.g. when you have a lawn 10m x 10m, then you multiply 10 times 10, and meters times meters, so
[tex]10m * 10m = 100m^2[/tex]
Pls i need an answer now
Answer:
Step-by-step explanation:
1. 5, 3.5, [tex]\sqrt{9\\}[/tex], [tex]-\frac{12}{5}[/tex], -7
2. 10, π ,3.1415, 0, -10
3. 1[tex]\frac{1}{2}[/tex], 1.44, 1.4(3), 1.(43), [tex]\frac{7}{5}[/tex]
Witch is a correct name of the angle shown?
Answer:
CBA
Step-by-step explanation:
B is the middle n angles should be btn two lines ie AB and BC. so they had a common point B hence the joining occured at B
e/kaid_274404147475337871026587/assig!
Khan Academy
Percent word problems
Of the 50 U.S. states, 4 have names that start with the letter W.
What percentage of U.S. states have names that start with the letter W?
0
Stuck? Review related articles/videos or use a hint.
Answer:
Step-by-step explanation:
4/50 = 0.08
0.08(100) = 8%
Repost
A group of tourists are on a three-day hiking trip. They hike ⅛ of the trail on the first day. On the second day, they hike 4/7 of the remaining distance. On the third day, they hike 1/3 of the remaining distance, plus the final 8 km. How many kilometers long is the trail?
Answer:
you told me to resolve this problem
Step-by-step explanation:
Answer:
9
Step-by-step explanation:
you add the thing then multipy it then do math!
How much force is required to accelerate a 4 kg mass at 6 m/s2
Answer:
is it 24 N?
as we know ....
force=mass * acceleration
force=4kg*6m/s2
hence force is 24N
The required Force = 24 N
What is Force?The push or pull on an object with mass causes it to change its velocity.
Given that a body of 4 kg mass is accelerated at 6 m/s²
Force = ma
where m = mass and a = acceleration
F = 6*4 = 24 N
Hence, the Force required = 24 N
For more references on Force, click;
https://brainly.com/question/13191643
#SPJ2
In February Lana got a puppy that weighed 13 kilograms. By October the puppy weighed 16.9 kilogram. What was the puppy’s weight increase?.
Answer:
3.9
Step-by-step explanation:
16.9 take away 13 and you get 3.9 kilograms
Logan is a great babysitter. He makes $9 an hour. Jeanette is an even better babysitter. She makes $16 an hour. Jeanette works 18 hours each week. How many
hours does Logan need to work in order to earn as much money as Jeanette earns in a week?
Answer:
18hx16money=288 dollars
Step-by-step explanation:
to ez and np
Answer:
32 hours a week
Step-by-step explanation:
First you have to find out how much Jeanette makes. You can do this by multiplying 16 x 18 since she makes $16 18 times a week. This gives you $288 that she makes each week.
Now to find how much Logan would have to work you take 288 and divide it by 9. You do this because you need to see how many times 9 goes into 288 to give you the amount of hours. When you divide you get 32.
(9x+3)5 i really need help with this pleaseeee
Answer:
1/15
Step-by-step explanation:
Thats my guess I think its that though.
Answer: 3
Step-by-step explanation:
PEMDAS
1.Amulya is x years now. Write expressions for her age 5 years ago?
Take Sarita’s Age to be y years
a) What will be her age 5 years from now?
b) What was her age 3 years now?
c) Sarita’s grandfather is 6 times her age. What is the age of her grandfather?
d)Grandmother is 2 years younger than grandfather. What is his grandmother ’s age?
e) Sarita’s father’s is age is 5 years more than 3 times Sarita’s age. What is her father’s age?
Answer:
Step-by-step explanation:
1) a = x - 5
a) z = y + 5
b) z = y - 3
c) z = 6y
d) z = 6y - 2
e) z = 3y + 5
Are the ratios 6:1 and 19:3 equivalent?
Answer: no<3
Step-by-step explanation:
leave a thanks if helped plz
if 9/24 equals 3/x , then x is ____
[tex]\\ \sf\longmapsto \dfrac{9}{24}=\dfrac{3}{x}[/tex]
[tex]\\ \sf\longmapsto \dfrac{3}{8}=\dfrac{3}{x}[/tex]
[tex]\\ \sf\longmapsto 3x=24[/tex]
[tex]\\ \sf\longmapsto x=24/3[/tex]
[tex]\\ \sf\longmapsto x=8[/tex]
when a company produces 5,000 units, variable costs are $35 per unit and total cost in $200,000. What is the total cost when the company produces 8,000 units? (both 8000 and 5000 units produced are within the relevant range.)
Is ( - 1, 2) a solution of the system y > x and x + y > 0?
O No, because ( - 1, 2) is a solution to only one of these inequalities.
O Yes, because ( – 1, 2) is a solution to both inequalities.
O Yes, because ( - 1, 2) is the point of intersection of the two boundary lines of this system.
No, because ( – 1, 2) is not a solution to either inequality.
Answer:
Yes, because (-1,2) is a solution to both inequalities
Step-by-step explanation:
2>-1 so the first inequality is correct
-1+2>0 so the second inequality is correct
5. Use the point-slope formula to determine the equation of a line that passes through the points (1, 2) and (-2, 1).
Answer:
In point-slope form the equation is:
[tex]y - 2 = \binom{1}{3} \times (x - 1)[/tex]
Sociologists studying social mobility in the U.S. find that the probability that someone who began their career in the bottom 10% of earnings remains in the bottom 10% fifteen years later is 0.59. What is the probability that such a person moves to one of the higher income classes fifteen years later? (Use decimal notation. Give your answer as an exact number.)
probability:
Using probability of complementary events, it is found that there is a 0.41 probability that such a person moves to one of the higher income classes fifteen years later.
When two events are complementary, the sum of their probabilities are 1.
In this problem, either a person moves to a higher income class or they do not, hence, the events are complementary.
0.59 probability that a person does not move to a higher class.Hence, 1 - 0.59 = 0.41 probability that such a person moves to one of the higher income classes fifteen years later.A similar problem is given at https://brainly.com/question/24084986
Snow fell from 6:30 am to 11:00 am, accumulating at a constant rate. At 8:00 am, the snow was 8 inches deep. By 11:00 am, it was 20 inches deep. How much snow fell each hour? (Part one)
The answer to the first box would be 4
Answer:
4 for the first box
Step-by-step explanation:
What is 4% of 4% of 40,000? Show the working please.
Answer:
64
Step-by-step explanation:
4% of 40,000= 1,600
4% of 1600= 64
Answer:
64
Step-by-step explanation:
4% = 4/100=0.04
[tex](\frac{4}{100} )(\frac{4}{100} )(40000)=(0.04)(0.04)(40000)=64[/tex]
Hope this helps
help me due today it is mathematics
Answer:
Miranda is correct because the value 7 makes the equation equal
I am not sure what goes in the blanks, those are my best guesses.
Step-by-step explanation:
34 = 27 + p
7 = p
Hopefully this helps!
Brainliest please?
Mort and George are 18 miles apart on a path when they start moving toward each other. Mort runs at a constant speed of 7 miles per hour, and George walks at a constant speed of 5 miles per hour. How long does it take until Mort and George meet?
Answer:
1 1/2 hours
Step-by-step explanation:
In one hour, the distance between them is reduced by 7+5 = 12 miles. At that rate, the 18 mile distance between them will be reduced to zero in ...
time = distance/speed
time = (18 mi)/(12 mi/h) = 3/2 h
It will take 1 1/2 hours until Mort and George meet.
If you see such unnecessary question like this, please report it. This person always asks others for bad things. Please report him. That's your responsibility as a polite Brainly User. Thank You !
Answer:
You are right
Step-by-step explanation:
Have a nice day
What determines whether a relationship
is proportional or not?
Answer:
When two ratios exhibit the same connection, they are said to be proportionate. Two ratios may be tested for proportionality by writing them as fractions and then reducing them to the smallest possible number. In this case, your ratios are proportionate since the reduced fractions are the same.
Step-by-step explanation:
Hope it helps:)
5/12+2/3=37 I need help
Answer:
13/12=37
Step-by-step explanation:
Can someone please help me
Answer:
Answer for question 16 $24.64
Answer:
$3.36
17. 31%
18 $ 24.50
Step-by-step explanation:
28 x 0.12 = $3.36
17. 484 - 333.96 = 150.04
What percentage is 150.04 of 484
X/100 = 150.04/484 (% / 100 = is/of)
= 31%
8. 35 x 0.30 = 10.50
$35 - $10.50 = $24.50
13. A stack of lumber contains the following: three 1" x 6" X 8' pieces of yellow pine. six 2" x 10" x 12' pieces of redwood. six 1" x 8" 10' pieces of fir. How many total board feet of lumber are in this stack? *
180 board ft
162 board ft
192 board ft
172 board ft
Answer:
Step-by-step explanation:
A board foot is 1 inch thick by 1 ft by 1 ft
(3) 1 x 6 8' are already 1 inch thick ½ ft wide and 8 ft long
3 x 1 x (6/12) x 8 = 12 board ft.
(6) 2" x 10" x 12' are 2 thick x 10/12 ft wide by 12 ft long
6 x 2 x (10/12) x 12 = 120 board ft.
(6) 1" x 8" x 10'
6 x 1 x (8/12) x 10 = 40 board ft
12 + 120 + 40 = 172 board ft
Question 5 of 10
Which of the following rational functions is graphed below?
10 H
10
10
O A. F(x) =
FIX) *-*
X5
X1
B. Fx) = 6-14-5
(x - 1)(x-5)
c. F(X) = 1
D. F(X) = x+5
-
x + 1
We want to find the equation for the graphed rational function. Notice that the options are not given, so I will try to find the function only from the graph.
The function is:
[tex]f(x) = \frac{(x - 5)}{x - 1}[/tex]
How to analyze the graph of a rational function?The first thing that we can see in the graph is that we have vertical asymptotes at x = 1.
The one in the positive side (of the x range) goes to negative infinity, while the other goes to positive infinity, then the equation will be something like:
[tex]f(x) = \frac{something}{x - 1}[/tex]
Such that the asymptotes are caused when the denominator is equal to zero.
We can see that we also have a horizontal asymptote at y = 1.
This means that, as x tends to infinity, our function will tend to 1, so we have something like:
[tex]f(x) = \frac{(x + b)}{x - 1}[/tex]
The horizontal asymptote is equal to the ratio of the leading coefficients when both polynomials have the same degree, like here, so we can take the two leading coefficients equal to 1, such that:
y = 1/1 = 1
To find the value of b, we evaluate the function in 0:
[tex]f(0) = \frac{b}{-1} = -b[/tex]
And if you look at the graph, you can see that at x = 0 we have:
f(0) = 5
then b = -5
So the function is:
[tex]f(x) = \frac{(x - 5)}{x - 1}[/tex]
If you want to learn more about rational functions, you can read:
https://brainly.com/question/1851758
Ella needs to buy 43 party favors that cost $2.75 each. Estimate the total cost by rounding the number of favors to the nearest ten and cost of each favor to the nearest dollar
A. $118.25
B. $120
C.$129
D.$135
Answer:
b.$120
Step-by-step explanation:
Party Favors rounded= 40
Dollars rounded= 3
40x3= 120
Solve for B -(12 x 2) x (-6) = -12 x (2 x b)
A. -6
B. 6
C. -12
D. 12
Answer:
Option A
Step-by-step explanation:
-(12 x 2) x (-6) = -12 x (2 x b)
=> -24 x -6 = -12 x 2b
=> 144 = -24b
=> b = -6
Hoped this helped.
regal furniture company allocates its indirect salaries of $22,500 on the basis of sales. Determine the indirect salaries allocated to Departments 1 and 2 using the following information.
Answer:
$15750 and $6750Step-by-step explanation:
Revenue share of Dept. 1:
182000/260000*100% = 70%Revenue share of Dept. 2:
100% - 70% = 30%Allocate the indirect salary with same ratio.
Dept. 1:
22500*70/100 = 15750Dept. 2:
22500 - 15750 = 6750