Write a function called count characters that counts the number of times each character appears in a user-supplied string s

Answers

Answer 1

This output shows the counts of each character in the string "hello world". The letter 'l' appears 3 times, the letter 'o' appears 2 times, and so on.

Here's an example Python function called count_characters that counts the number of times each character appears in a user-supplied string s:

def count_characters(s):

Given a string s, returns a dictionary containing the count of each character in the string.

char_count = {}

for char in s:

if char in char_count:

char_count[char] += 1

else

char_count[char] = 1

return char_count

This function creates an empty dictionary called char_count to store the counts of each character. It then loops through each character in the string s and checks if it's already in the char_count dictionary. If it is, it increments the count for that character. If it's not, it adds the character to the dictionary with a count of 1. Finally, the function returns the char_count dictionary.

You can call this function like this:

string = "hello world"

char_count = count_characters(string)

print(char_count)

Output:

python

{'h': 1, 'e': 1, 'l': 3, 'o': 2, ' ': 1, 'w': 1, 'r': 1, 'd': 1}

This output shows the counts of each character in the string "hello world". The letter 'l' appears 3 times, the letter 'o' appears 2 times, and so on.

for such more question on count characters

https://brainly.com/question/21891513

#SPJ4


Related Questions

square root of 2w + 9 + square root of 4 - 3w = 0

Answers

As a result, the equation ((2w + 9) + ((4 - 3w) = 0) has no answer.

What in mathematics is the square root?

The term "radical" is used to represent the square root or nth elements. Expression with a square base is referred to as a radical expression. Radicand: A value or phrase contained within the radical sign. Equation with radical formulas and factors as radicands is referred to as a radical equation.

√(2w + 9) + √(4 - 3w) = 0

We need to isolate the variable w.

First, we can move the second term to the other side of the equation by subtracting it from both sides:

√(2w + 9) = -√(4 - 3w)

Next, we can square both sides of the equation to eliminate the square roots:

(√(2w + 9))^2 = (-√(4 - 3w))^2

2w + 9 = 4 - 3w

Now, we can simplify and solve for w:

5w = -5

w = -1

In this case, when w = -1, both square roots are defined, and we can substitute this value back into the original equation to verify:

√(2(-1) + 9) + √(4 - 3(-1)) = √7 + √7 = 2√7

Since 2√7 is not equal to 0, our solution is not valid.

Therefore, there is no solution to the equation √(2w + 9) + √(4 - 3w) = 0.

To know more about Square root visit:

https://brainly.com/question/428672

#SPJ1

Determine whether if it is possible to form a triangle with the given side lenghts. AB = 2cm, BC = 8cm, AC = 5cm

Answers

Answer:

no because if one of the side is 2, if we calculate semi perimeter it will be 7.5 which is greater

A quarterback completes of passes during the first three quarters of a football game. He completes e pass in the fourth quarter and of his passes for the entire game. How many passes does the quarterback throw in the fourth quarter?

Answers

Rounding up to the nearest whole number, the quarterback throws 3 passes in the fourth quarter to complete all of them.

Let's first find out how many passes the quarterback completed in the first three quarters:

18 passes completed out of 33 attempts in the first three quarters

= 18/33 = 0.545 (rounded to three decimal places)

We can then find the total number of passes attempted in the first three quarters by using the fact that the completion rate is the number of completions divided by the number of attempts:

0.545 = 18/x, where x is the total number of attempts in the first three quarters

Solving for x, we get:

x = 18/0.545 = 33

So the quarterback attempted 33 passes in the first three quarters.

Next, we can find the total number of passes attempted in the game by using the completion rate for the entire game:

0.625 = (18 + passes completed in the fourth quarter) / (33 + passes attempted in the fourth quarter)

Multiplying both sides by the denominator:

0.625 × (33 + passes attempted in the fourth quarter) = 18 + passes completed in the fourth quarter

20.625 + 0.625 × passes attempted in the fourth quarter = 18 + passes completed in the fourth quarter

Subtracting 18 and 0.625 × passes attempted in the fourth quarter from both sides, we get:

2.625 = passes completed in the fourth quarter - 0.625 × passes attempted in the fourth quarter

Adding 0.625 × passes attempted in the fourth quarter to both sides, we get:

passes completed in the fourth quarter = 2.625 + 0.625 × passes attempted in the fourth quarter

We don't know the exact number of passes attempted in the fourth quarter, but we can see that for every 1 pass attempted, the quarterback completes 0.625 - 0.545 = 0.08 more passes than in the first three quarters. So to complete all of his passes in the fourth quarter, he needs to attempt:

0.08 × x = 0.08 × 33 = 2.64

Question - A quarterback completes 18 of 33 passes during first three quarters of a football game. He completes every pass in the fourth quarter and 62.5% of his passes for the entire game. How many passes does the quarterback throw in fourth quarter?

Learn more about quarterback here: brainly.com/question/759084

#SPJ4

ok so write about the chapter 1- 12 travellers question and answer

Answers

where's the question tho

Answer:

without question how am i suppsed to answer..............

Tyler takes his friends out for pizza and wings. He pays the whole bill of $71.46. He wants to leave an 18% tip. How much does the bill and tip cost Tyler?

Answers

The total cost of the bill and tip for Tyler is $71.46. This means that Tyler paid $58.6 for the food and drinks, and an additional $12.86 as a tip for the service.

To calculate how much the bill and tip cost Tyler, we first need to calculate the amount of the tip. We can do this by multiplying the total bill by the percentage of the tip, which is 18% or 0.18 as a decimal.

Tip amount = $71.46 x 0.18 = $12.86

Once we know the tip amount, we can add it to the total bill to find the final cost.

Bill and tip cost = $71.46 - $12.86 = $58.6

Therefore, total bill is $84.32 with tip as $12.86 and bill as $58.6

To learn more about bill click on,

https://brainly.com/question/12076523

#SPJ4

Caleb took 18 photos at the zoo. One sixth of his photos are of giraffes. How many of Caleb's photos are of giraffes?

Answers

The amount of photos that are giraffes is 3

1.) Caleb has 18 photos from going to the zoo.

2.) One sixth of them are giraffe pictures.

So basically, what you want to do is divide 18 by 6 = 3

The answer is : There are 3 giraffe photos out of the total 18 photos.

Help me pls I don’t understand I am in need of assistance pls

Answers

Answer:  16 miles per week

Work Shown:

a = change in distance = 492-300 = 192 miles

b = change in time = 12 weeks

c = a/b = rate of change of distance over time = speed of growth

c = (192 miles)/(12 weeks)

c = (192/12) miles per week

c = 16 miles per week

In other words, each time a week goes by, Ryan has walked another 16 miles.

For a related math concept, check out the slope formula. The slope represents the rate of change. It's useful for graphing linear equations.

I Need help PLSSSSSSS

Answers

a. The value of angle y = 36°

b. The value of angle x = 57°

c. The relationship used to solve for y is sum of angles on a straight line

d. The relationship used to solve for x is sum of angles in a triangle

What are triangles?

Triangles are polygons with 3 sides.

a. How to solve for y?

In ΔQPS and ΔQSR, ∠QSP + ∠QSR = 180° (sum of angles on a straight line)

Since ∠QSP = 2y and ∠QSR = 4y - 36°, we have that

2y + 4y - 36° = 180°

so, adding, we have

6y - 36° = 180°

Adding 36° to both sides, we have

6y = 180° + 36°

6y = 216°

y = 216°/6

y = 36°

b. How to find the value of x?

In ΔQPS and ΔQSR, ∠PQS + ∠QPS +  ∠QSP = 180° (sum of angles in a triangle)

Since ∠QSP = 2y, ∠PQS = x and ∠QPS = 51°, we have that

2y + x + 51° = 180°

So, making x subject of the formula, we have that

x = 180° - 51° - 2y

x = 129° - 2y

Substituting y = 36° into the equation, we have that

x = 129° - 2y

x = 129° - 2(36°)

x = 129° - 72°

x = 57°

c. What relationship did you use to solve for y?

The relationship used to solve for y is sum of angles on a straight line

d. What relationship did you use to solve for x?

The relationship used to solve for x is sum of angles in a triangle

Learn more about angles in a triangle here:

https://brainly.com/question/29403272

#SPJ1

need help asap

Which ordered pair (from the table in part A) represents the initial value? What does the initial value represent in this problem? (1-2
sentences)
Part D:
What is the rate of change in this equation? What does the rate of change represent in this problem? (1-2 sentences)

Table from part A:
The table of values for y = -128x + 3840 is:
xy
0 3840
5 3200
8 2816
10 2560
30 0​

Answers

C) The ordered pair that represents the initial value of the function is of (0,3840), meaning that the graph of the function crosses the y-axis at the value of y = 3840.

D) The rate of change of the equation is of -128, meaning that when x increases by one, y is decreased by 128.

How to define a linear function?

The following is the definition of a linear function's slope and intercept:

y = mx + b.

In which:

m is the slope, representing the rate of change, that is, by how much y changes when x is increased by one.

The value of y at x=0 is represented by the intercept, b. Hence the ordered pair is of (0,b).

The function is defined as follows for this problem:

y = -128x + 3840.

The slope and intercept are therefore given as follow:

m = -128, b = 3840.

More can be learned about linear functions at brainly.com/question/24808124

#SPJ1

The graph below represents the prices, in dollars, of different numbers of pounds of regular bananas. The table below represents the prices, in dollars, of different numbers of pounds of organic bananas.

Which statement correctly compares the prices of regular bananas and organic bananas?

A. Organic bananas cost $0.50 more per pound.
B. Organic bananas cost $0.05 more per pound.
C. Regular bananas cost $0.08 more per pound.
D. Regular bananas cost $0.53 more per pound.

Answers

D. Regular bananas cost more

Solve.
x−2/5=1/5
Responses
13
12
2
3

Answers

3/5 if there are no parentheses anywhere. However, (3-2)/5=1/5

Answer:

Step-by-step explanation:

To solve for x in the equation:

x - 2/5 = 1/5

We can start by isolating x on one side of the equation. We can do this by adding 2/5 to both sides:

x - 2/5 + 2/5 = 1/5 + 2/5

Simplifying, we get:

x = 3/5

Therefore, the solution is:

x = 3/5

What is the conversion of 3/4 to decimal ?

Answers

Answer: 0.75

Step-by-step explanation: .

What is a measurable part of a line?

Answers

Like segment a measurable part of the line with two points called endpoints and points between them.

PLEASE HELP WILL GIVE BRAINLIEST IF AT LEAST 3 ARE RIGHT

Answers

Answer:1. a+b/a-b

2. 8/x-y

3. 2q+p/pq^2

Don’t know how to do the last two sorry

Step-by-step explanation:

6) a (m-2)-m+2=

(7) bc (x-y)+x-y =

Answers

Answer:

6) am - 2a - m + 2

7) bcx - bcy + x - y

Step-by-step explanation:

6) a(m - 2) - m + 2

am - 2a - m + 2

7) bc(x - y) + x - y

bcx - bcy + x - y

the irreducible factorisation of 3a^3 + 6a is?
i) 3a(a^2 + 2)
ii) 3(a^3 + 2)
iii) a (3^2 + 6)
iv) 3 x a x a x a + 2 x 3 x a

Answers

your answer is the first one

Alex constructs a scatter plot. He realizes that he needs to add one more point, which will be an outlier. Which of the ordered pairs does he still need to plot? Responses (2,12) left parenthesis 2 comma 12 right parenthesis (18,10) left parenthesis 18 comma 10 right parenthesis (10,6) left parenthesis 10 comma 6 right parenthesis (14,2)

Answers

Any of the given ordered pairs could be the outlier depending on the overall distribution of the data.

Why is it known as a "ordered pair"?

A pair of items that have a specific significance for the order of their placements is called an ordered pair, as the name suggests.

A point that deviates significantly from the general trend of the other data points is referred to as an outlier. The outlier point would be one that does not fit the pattern, if we assume that the other plotted points constitute a general pattern or trend.

We cannot identify with certainty which point would be the outlier without knowing the other plotted points or the context of the scatter plot. Depending on the overall distribution of the data, any of the ordered pairings that are presented could be an outlier.

To know more about Ordered Pair visit:

https://brainly.com/question/30113488

#SPJ1

how to convert 250 grams to pounds?

Answers

250 grams is approximately equal to 0.5511 pounds  ( rounded to four decimal places )

The conversion factor to convert grams to pounds is 0.00220462

1 gram = 0.00220462 pounds

The conversion is the process of changing the unit of one quantity to another units  

The conversion factor is defined as the number that is used to change one unit to another units by multiplying or dividing

The mass in pounds = The mass in grams × conversion factor

Substitute the values in the equation

1 gram = 0.00220462 pounds

250 grams =  250 × 0.00220462

Multiply the numbers

= 0.5511 pounds  ( rounded to four decimal places )

Therefore, 250 grams is 0.5511 pounds

Learn more about conversion factor here

brainly.com/question/23718955

#SPJ4

select the graph of y=2sin(pi/2x)-1

Answers

Answer:

The correct graph is D

Find the value of x
73°
109°

Answers

Answer:

x = 88

Step-by-step explanation:

To find the value of x, we know that the sum of a quadrilateral's exterior angles are 360. We can use this information to create an algebraic expression and solve for x.

[tex]x+73+90+109=360[/tex]

Add like terms

[tex]x+272=360\\[/tex]

Subtract 272 on both sides

[tex]x=88[/tex]

To prove our work, we can add up all the angle measures and see if they add up to 360.

[tex]88+73+90+109=360[/tex]

So, our work is correct.

what is left skewed histogram?

Answers

A left-skewed histogram is a frequency distribution in which the data is concentrated towards the right side of the histogram, with a tail stretching towards the left.

A left-skewed histogram is a kind of frequency distribution where the data is concentrated towards the right side of the histogram, with a tail extending towards the left. It is otherwise called a negatively skewed histogram or a left-tailed histogram. In a left-skewed histogram, the mean is not exactly in the middle, demonstrating that the information is slanted toward the lower end of the conveyance. This can happen when the information has a lower bound or a base worth, which makes the tail of the dispersion be pulled towards the left. Left-skewed histograms can be helpful in examining information that has a characteristic lower cutoff or floor, for example, response times, reaction rates, or pay levels.

Learn more about histograms:

https://brainly.com/question/30664111

#SPJ4

Alex and his father took a taxi cab that charges $2.60 per mile plus $3.00 for the two passengers, and they paid a total of $18.60. Alex wrote the equation 18.60=2.60b+3.00 for this situation and found b=6, where b represents the number of miles the taxi traveled. How could Alex correctly solve this problem without using the equation?

Answers

Answer:

Answer is explained Below

Step-by-step explanation:

He could subtract 3 from both sides of the equation first. Then he could divide both sides to get D alone. When you do the D=

on a car trip, jane ate some pretzels. after spilling and losing half of the pretzels, she at 14. her sister then ate on more than half the remaining pretzels, after which there was 3

Answers

The number of pretzels in the beginning was 44 pretzels solving the equation.

What is an Equation?

An equation is a mathematical statement containing two expressions on either sides which are connected with an equal to sign.

Either sides of an equation is called as left hand side and right hand side.

Let the total number of pretzels = x

Pretzels has been spilled and lost half of the pretzels.

Remaining pretzels = x - x/2

Jane ate 14 pretzels.

Remaining pretzels = x - x/2 - 14

Her sister then ate one more than half the remaining pretzels.

Remaining pretzels = x - x/2 - 14 - [1/2 (x - x/2 - 14) + 1]

Remaining pretzels is 3.

So we get an equation,

x - x/2 - 14 - [1/2 (x - x/2 - 14) + 1] = 3

Solve for x.

x - x/2 - 14 - (x/2 - x/4 - 7 + 1) = 3

x - x/2 - x/2 + x/4 - 14 + 7 - 1 = 3

x/4 - 7 - 1 = 3

x/4 - 8 = 3

x/4 = 11

x = 44

Hence the total number of pretzels was 44.

Learn more about Solving Equations here :

https://brainly.com/question/18067015

#SPJ9

Your question is incomplete. The complete question is as follows.

On a car trip, Jane ate some pretzels. After spilling and losing half of the pretzels, she ate 14. Her sister then ate one more than half the remaining pretzels, after which there was 3 pretzels.

How many pretzels was there?

Two pools are being filled with water. To start, the first pool contains 915 Liters of water and the second pool is empty. Water is being added to the first pool at a rate of 15.25 liters per minute. Water is being added to the second pool at a rate of 45.75 Liters per minute. After how many minutes will the two pools have the same amount of water? How much water will be in each pool when they have the same amount?

Answers

a) 30 minutes are taken to have the same amount of water.

b) Both pools have an amount of 1372.5 liters when 30 minutes have passed.

What is Linear Function?

A linear function is one that produces a straight line when plotted. Generally, it is a polynomial function with a maximum degree of 1 or 0. 

Now in the given question ,

a) Physically speaking, the capacity (Q) of each pool, in liters, is equal to the product of flow rate , in liters per minute, and time (t), in minutes. Hence, we derive the following functions :

First pool,

[tex]Q_1=915+15.25t\\[/tex]           ...... (1)

Second pool,

[tex]Q_2=45.75t[/tex]                   ....... (2)

The following expression can be used to calculate how long it will take to find two pools with the same amount of water:

[tex]Q_1=Q_2[/tex]                       ........ (3)

By putting value of (1) and (2) in (3),

915 + 15.25 t = 45.75 t

30.5 t = 915

t = 915 ÷ 30.5

t = 30 minutes

30 minutes are taken to have the same amount of water.

b) By (2) and knowing that t = 30 , then we have the corresponding amount:

[tex]Q_2=45.75t\\\\Q_2=45.75*30\\\\Q_2=1372.5L[/tex]

Both pools have an amount of 1372.5 liters when 30 minutes have passed.

To learn more on linear functions, visit:

brainly.com/question/14165558

#SPJ1

Witch is bigger 1/2 Tons or 1000 lb

Answers

Answer:

1/2 ton

Step-by-step explanation:

1/2 ton is 1102 pounds

What is a 8-sided shape called?

Answers

Answer:

Octagon.

Octa comes from the Greek word "okto", which means eight.

the options are

(- 3, 2)

(- 2, - 3)

(2, - 3)

(2, 3)

(-2,3)

(3, - 2)

(- 3, - 2)

Answers

Answer: the third and 5th option but I'm not sure if its right

I really need help with this question

Answers

Volume of a cone

1/4π ft³

To find the volume of the cone, we use the formula

volume = (1/3) × π × r² × h

From the question, we are given its height and radius

we substitute for these in the equation above. these will give us the answer. (note in terms of pi)

To know more about volume, you can read more here https://brainly.com/question/16013074

#SPJ1

There are 3 roles and they are assigned randomly to 3 people ( Alice, Bob and Charlie ): Truth teller ( Always tells the truth ) Liar ( Always lies ) Spy ( Can tell truths and lies ) - Alice says she is not the truth teller - Bob says he is not the spy - Charlie says he is not a liar Deduce who has what role?

Answers

In conclusion, it is not possible to determine with certainty who has what role.

Given by the solution:

Let's consider each statement one by one:

Alice says she is not the truth teller.

If Alice is the truth teller, then she is telling the truth, which means she can't be the truth teller, leading to a contradiction. So, Alice can't be the truth teller.

If Alice is the liar, then she is lying, which means she is the truth teller, leading to a contradiction. So, Alice can't be the liar.

If Alice is the spy, then she can either tell the truth or lie. If she tells the truth, then she can't be the truth teller, leading to a contradiction. If she lies, then she can't be the liar, leading to a contradiction. So, Alice can't be the spy.

Therefore, Alice can't have any of the roles.

Bob says he is not the spy.

If Bob is the truth teller, then he is telling the truth, which means he can't be the spy, leading to a contradiction. So, Bob can't be the truth teller.

If Bob is the liar, then he is lying, which means he could be the spy. Therefore, Bob can be the liar or the spy.

Charlie says he is not a liar.

If Charlie is the truth teller, then he is telling the truth, which means he can't be the liar, leading to a contradiction. So, Charlie can't be the truth teller.

If Charlie is the liar, then he is lying, which means he could be the truth teller or the spy. Therefore, Charlie can be the liar, the truth teller or the spy.

Combining the results from the above statements, we get the following possibilities:

Alice is the spy, Bob is the liar, and Charlie is the truth teller.Alice is the spy, Bob is the liar, and Charlie is the spy.Alice is the spy, Bob is the spy, and Charlie is the liar.

In conclusion, it is not possible to determine with certainty who has what role.

To know more about Contradiction visit:
https://brainly.com/question/445700
#SPJ1

Jessica has $50 to buy a jacket and a hat in the store.A jacket cost 39.08 and a hat costs 12.55.Jessica says she stays with her budget.is she correct?Explain

Answers

To determine whether Jessica's budget of $50 is sufficient to buy a jacket and a hat, we need to add the cost of the jacket and the cost of the hat and compare the sum with her budget.

The cost of the jacket is $39.08 and the cost of the hat is $12.55, so the total cost of the two items is:

$39.08 + $12.55 = $51.63

The total cost of the jacket and the hat is $51.63, which is greater than Jessica's budget of $50. Therefore, Jessica does not have enough money to buy both the jacket and the hat while staying within her budget.

In order to stay within her budget of $50, Jessica would need to choose one item or the other, or look for items that cost less than the ones she has chosen.
Other Questions
Simply expressionPlease show steps If a buyer is evaluating a sales offering on a salesperson's eagerness to satisfy, the buyer is assessing the sales offering on the basis of a _____. how is the rule of nines used by a clinician? how is the rule of nines used by a clinician? to determine whether the patient can survive the burns to diagnose the type of skin cancer to estimate fluid lost by the body by determining the extent of burns to identify whether a burn is first-, second-, or third-degree Verify the following identity. Must show all work for full credit.[tex]csc^{2} (x) cos^{2}(x)=csc^{2}(x)-1[/tex] Camila solves n+17=39 for n by subtraction. Her solution is n=22. Which expression checks her solution? There are two ways in which organisms can obtain energy: oxidize reduced chemicals obtained from the environment, while harvest light energy. True or false? what is temperature in albuquerque? The volcanoes in the Ring of Fire are generally described as A. having violent eruptions, as most of these volcanoes are composite cones which eject basaltic lava. B. having quiescent eruptions, as most of these volcanoes are composite cones which eject andesitic lava. C. having violent eruptions, as most of these volcanoes are composite cones which eject andesitic lava. D. having quiescent eruptions, as most of these volcanoes are shield volcanoes which eject basaltic lava. A flask at room temperature contains exactly equal amounts (in moles) of nitrogen and xenon. Sort the conditions based on the gas described. Gas for which the molecules or atoms have the greatest average velocity. What is the main purpose of this excerpt from the Federalist No 51? When buying component parts, risk does not include: A. loss of control B. vendor viability C. interest rate fluctuations D. need to disclose proprietary information E. all are risk factors Which infusion had the most bacteria? Briefly explain why? Extend the grammar of Figure 2.25 to include if statements and while loops, along the lines suggested by the following examples: abs := n if n < 0 then abs := 0 - abs fi sum := 0 read count while count > 0 do read n sum != sum + n count := count - 1 od write sum Your grammar should support the six standard comparison operations in conditions, with arbitrary expressions as operands. It should also allow an arbitrary number of statements in the body of an if or while statement. -> 7. expr 8. expr 1. program stmt_list $$ 2. stmt_list - stmt_list stmt 3. stmt list simt 4. stmt - id :- expr 5. stmt - read id 6. stmt - write expr term expr add.op term 9. term factor 10. term term mult op factor 11. factor (expr ) 12. factor - id 13. factor - number 14. add.op 15. add op 16. mult_op 17. mult op Figure 2.25 LR(I) grammar for the calculator language. Productions have been numbered for reference in future figures. a cannery claims that its sardine cans have a net weight of 8 oz. you take a simple random sample of 30 cans and encounter a sample mean of 7.85 oz, with a standard deviation of 0.1 oz. what is the probability of seeing a sample mean of less than or equal to 7.85 oz if the true mean is 8 oz? report your answer with no more than two decimal places if needed. Guys help!!!What is the answer to AC? Which is the correct order of evolutionary steps of person-centered theory and therapy (PCT)?a. Nondirective counseling, client-centered therapy, becoming a person, worldwide issues.b. Becoming a person, becoming a therapist, nondirective counseling, client-centered therapy.c. Client-centered therapy, nondirective counseling, becoming a person, worldwide issues.d. There was no specific order of evolution.e. Rogers never changed in his approach or titling of his brand of therapy. Paul Walker, the former lead actor in the Fast and Furious series, once said, ""On theCalifornia Motor Speedway I was coming into the rst turn and I was doing just over 180miles an hour. Suddenly, there was a serious vibration in the front right tire and it blewout. I almost went into the wall. That would've been bad."Which subdivision of the nervous system would have been activated as the tire blew outand his car drifted towards the wall and why? Find the solution to the system of equations represented by the matrix shown below. A 10 kg block is raised vertically 3 m. What us most nearly the change in potential energy?(A) 30 J(B) 98 J(C) 290 J(D) 880 J In the previous problem, how does the angle of depression from the top of the taller building relate to the angle of elevation from the top of the shorter building?