Write a function 'lstsr(lst)' that receives a non-empty list of numbers and returns one of the following three integer values.
Zero (0), when the list is sorted in ascending order
One (1), when the list is sorted in descending order
Two (2), when the list is not sorted
Here are the rules:
You may assume that the list will always have length at least two.
You should only use a single loop (for or while).
In addition to the code, provide a documentation that clearly describes your algorithm (description should not be too general or ambiguous).
A sequence of same numbers is considered to be in ascending order.
Here are some example input/outputs:
Input: [5, 2, 1, 0], Output: 1
Input: [2, 3, 4, 19], Output: 0
Input: [0, 0, 0, 0], Output: 0
Input: [4, 3, 6, 2], Output: 2

Answers

Answer 1

The lstsr function takes a non-empty list lst as input and uses a single loop to iterate through the list. It compares each pair of adjacent elements using the index i and i + 1.

If the current element lst[i] is greater than the next element lst[i + 1], it means that the list is not sorted in ascending order.

def lstsr(lst):

   """

   Determines the sorting order of a non-empty list of numbers.

   Args:

       lst (list): A non-empty list of numbers.

   Returns:

       int: Zero (0) if the list is sorted in ascending order,

            One (1) if the list is sorted in descending order,

            Two (2) if the list is not sorted.

   Description:

       The function takes a non-empty list of numbers as input and determines

       its sorting order. It iterates through the list once using a single loop,

       comparing adjacent elements. If all adjacent elements are in non-decreasing

       order (including the case of equal numbers), the list is considered sorted

       in ascending order and the function returns 0. If all adjacent elements are

       in non-increasing order, the list is considered sorted in descending order

       and the function returns 1. If neither condition is met, the function returns 2,

       indicating that the list is not sorted.

   """

   for i in range(len(lst) - 1):

       if lst[i] > lst[i + 1]:

           return 2

   return 0 if lst[0] <= lst[-1] else 1

If the loop completes without encountering any such pair, it means that all adjacent elements are in non-decreasing order (including the case of equal numbers), indicating that the list is sorted in ascending order. In this case, the function returns 0.

However, if the loop encounters a pair where the current element is greater than the next element, it means that the list is not sorted in ascending order. In this case, the function immediately returns 2, indicating that the list is not sorted.

To determine if the list is sorted in descending order, we compare the first element lst[0] with the last element lst[-1]. If lst[0] is less than or equal to lst[-1], it means that the list is not sorted in descending order. In this case, the function returns 0. Otherwise, if lst[0] is greater than lst[-1], it means that the list is sorted in descending order, and the function returns 1.

To learn more about loop visit;

https://brainly.com/question/14390367

#SPJ11


Related Questions

De que se dio cuenta el sol al participar de la limpieza de playas?

Answers

La respuesta correcta para esta pregunta abierta es ls siguiente.

A pesar de que no se anexan opciones o incisos para responder, ni tampoco anexas algún contexto, lectura, libro artículo para poder responder, tratando de ayudarte hicimos una profunda investigación y podemos comentarte lo siguiente.

¿De que se dio cuenta el sol al participar de la limpieza de playas?

El Sol se dio cuenta de que desafortunadamente, los humanos no cuidan los océanos ya que tiran mucha basura y desperdicios al mar. Por lo tanto, lo contaminan.

Por esa razón, el Sol hizo una reflexión. La reflexión fu en el sentido del grado de daño que estamos provocando al mar y al medio ambiente en general. Lo estamos dañando.

Esto nos afecta a todos en mayor o menor grado porque el humano depende totalmente del medio ambiente y de la naturaleza. Aquí es donde la conciencia social debe hacer un alto para reflexionar y preguntarse hasta cuándo resistirá el medio ambiente tanta daño que se le ha provocado. La conciencia social debe crear un comportamiento social que actúo inmediatamente para proteger a la naturaleza, los mares, los ríos, los lagos, las selvas, los bosques, los desiertos, las tundras, los animales.

El ser humano depende de esos ecosistemas, y si los seguimos contaminando, estaremos acelerando nuestra destrucción. Debemos proteger el medio ambiente y crear una mayor conciencia en la importancia de la responsabilidad social.

Sean wants to build a robot. What part of the robot will he need to include that enables the robot to process sensory information?

Answers

To enable a robot to process sensory information, Sean will need to include a sensor system as part of the robot. The sensor system will provide input to the robot's central processing unit (CPU) or microcontroller, allowing it to perceive and respond to its environment. The specific sensors needed will depend on the robot's intended function and the type of sensory information it needs to process. Common sensors used in robots include cameras, microphones, touch sensors, and proximity sensors.

#SPJ1

Hello
Goodbye
You created the above table but you decided that you don't want the text in the middle
of the cell, instead you would rather it be centered but at the top of the cell. What
setting in Table Properties would allow you to do this?
O Cell vertical alignment
O Cell padding
O Cell phone
Cell horizontal alignment on

HelloGoodbyeYou created the above table but you decided that you don't want the text in the middleof

Answers

Answer:

#Cell Horizontal Alignment

write down the output of the following program by showing dry down

write down the output of the following program by showing dry down

Answers

The output of the given program will be:

"CPE"

What is the explanation for the above?

This is because the program defines a subroutine named RESULT which takes a string parameter A$. The RESULT subroutine first calculates the length of the string A$ using the LEN() function and stores it in variable B. It then initializes a counter C to 1 and enters a loop that runs as long as C is less than or equal to B.

In each iteration of the loop, the program takes the character at the position specified by C in the string A$ using the MID$() function and appends it to a new string B$. The program then increments the counter C by 2 and continues with the next iteration of the loop.

Once the loop has been completed, the program prints the final value of B$, which will contain every other character of the input string A$. In this case, since the input string is "COMPUTER", the output will be "CPE".

Learn more about program at:

https://brainly.com/question/11023419

#SPJ1

What is the meaning of the to term in this objective function for a goal programming problem?

Answers

The term "to" in the objective function of a goal programming problem generally indicates the direction of optimization.

It signifies whether the problem is of maximization or minimization type, showing the ultimate goal of the optimization process.

To elaborate, goal programming is a branch of multi-objective optimization, which involves optimization of multiple conflicting objectives. An objective function is a mathematical expression that describes the problem's objective, either to be minimized or maximized. The term "to" typically appears in a statement of the form "Minimize/Maximize Objective Function Subject to Constraints." For instance, "Minimize total costs" or "Maximize total profit." Thus, the term "to" is not an operation or element with a mathematical interpretation; it's part of the linguistic structure that forms the statement of the problem.

Learn more about goal programming here:

https://brainly.com/question/32149160

#SPJ11

3.Troubleshooting Methodology: Given a scenario, you should be able to know how to troubleshoot.

Answers

Troubleshooting methodology is a systematic approach to identify, analyze, and resolve problems or issues that arise in various scenarios. While the specific troubleshooting steps may vary depending on the situation, there are some common principles and techniques that can be applied.

If a scenario is given, here are some general steps to follow when troubleshooting:

Define the problem:

Clearly identify the problem so that you know what to look for and how to fix it. Check whether the issue is related to hardware, software, or a mixture of both. Check if there is any error message appearing and try to decode the message. Identify the root cause of the problem.

Understand the system or network:

Identify the system or network components that could be affected by the problem. Check whether the system or network is operational. If it is operational, perform a status check to identify any obvious problems.

Identify the possible causes:

Identify the potential causes of the issue. Consider what changes may have been made to the system recently, as this can often help in identifying the problem.

Implement a solution:

Depending on the issue, this might involve reconfiguring software settings, replacing a hardware component, or reinstalling a program.

Verify the solution:

Verify the solution by testing the system or network. Check if the solution has solved the issue completely or partially. If the issue is partially resolved, repeat the above process. If the issue is resolved completely, then the solution is good to go!

Document the issue and the solution:

Write down the issue and the solution for future reference. If the problem was complex, document the process followed to solve the problem. This documentation will be useful for future reference and might help other people who might encounter a similar problem.

To learn more about troubleshooting: https://brainly.com/question/28508198

#SPJ11

which of the following describes the result of executing the program? responses the program displays the sum of the even integers from 2 to 10. the program displays the sum of the even integers from 2 to 10. the program displays the sum of the even integers from 2 to 20. the program displays the sum of the even integers from 2 to 20. the program displays the sum of the odd integers from 1 to 9. the program displays the sum of the odd integers from 1 to 9. the program displays the sum of the odd integers from 1 to 19.

Answers

Without specific program or code details, it is not possible to determine the result or accurately describe the displayed sum of integers.

What is the result of executing the program and which option accurately describes the displayed sum of integers?

The question mentions that there are multiple statements, but it is unclear which program or code is being referred to.

Therefore, without the specific program or code, it is not possible to determine the exact result of executing the program or which option correctly describes the result.

To provide an explanation, it would be helpful to have the program or code in question to analyze and provide the expected outcome based on the given instructions or logic.

Learn more about program

brainly.com/question/30613605

#SPJ11


Pauline is a manager of a team in a large website design firm. Her team members come from diverse cultural backgrounds. The performance of
her team sometimes suffers due to internal conflicts. As a manager, how can Pauline resolve these conflicts?

Answers

Answer: Pauline is a manager of a team in a large website design firm. Her team members come from diverse cultural backgrounds. The performance of her  team sometimes suffers due to internal conflicts. As a manager, how can Pauline resolve these conflicts?

Explanation: Pauline can resolve the conflicts by changing the subject by talking about something else when that happens they tend to forget what they were arguing about.

code-switching decreases the chances of achieving your communication goals

Answers

The statement "Code-switching decreases the chances of achieving your communication goals" is false.

What is Code-switching?

Code-switching is the use of more than one language or linguistic style in a conversation or interaction. Code-switching can be between different languages, dialects, registers, or speech styles.In various multilingual and multicultural societies, code-switching is a frequent and natural phenomenon.

People code-switch for a variety of reasons, such as to express identity, cultural allegiance, social distance, and so on.However, code-switching has been found to improve communication by allowing speakers to express themselves more accurately and fluently, as well as to communicate with a more diverse group of people

Learn more about code-switching at

https://brainly.com/question/31452528

#SPJ11

PLEASE HELP Due Today

Match the term with one of its characteristics.

1. Automation software that enables servers to be provisioned automatically or with a few clicks of a mouse.

2. Log managers read your system logs and look for patterns and make reports.

3. Created an elastic infrastructure that expanded and contracted as demand changed.

cloud

maintain security

data center​

Answers

The matchup are:

1. Created an elastic infrastructure that expanded and contracted as demand changed -cloud2. Log managers read your system logs and look for patterns and make reports.- Maintain security 3. Automation software that enables servers to be provisioned automatically or with a few clicks of a mouse-data center​

What is the software  about?

The  Cloud computing is one that gives a form of elastic infrastructure that gives room for on-demand allocation as well as deallocation of resources.

Lastly  Log managers are known to be computer tools that tends to read system logs as well as look for patterns in the data to see security threats.

Learn more about software   from

https://brainly.com/question/28224061

#SPJ1

you're getting a duplicate ip address error on your computer and need to figure out what other device on your network is using the ip address 192.168.1.56. what command will show you which mac address is mapped to that ip address?

Answers

The command that will show you which mac address is mapped to that IP address is the netstat command.

What is a Netstat Command?

A networking utility for configuration and troubleshooting that may also be used to keep track of network connections is the network statistics (netstat) command. This command is frequently used with routing tables, port listening, incoming connections, and use statistics.

Hence, in order to solve the duplicate IP address error on your computer, you need to use the netstat command.

Read more about networks here:

https://brainly.com/question/8118353

#SPJ1

GIVING BRAINLIEST!

1. The Monte Carlo method uses ___________ for computer simulations

2. The Monte Carlo method was first developed during World War II to test __________

Answers

In 1993, Gordon et al. published the first use of a Monte Carlo resampling procedure in Bayesian statistical inference in their important work.

What Monte Carlo method uses for computer?

In forecasting and decision-making, the Monte Carlo approach is a computerized mathematical tool that enables humans to statistically account for risk.

A mathematical method called Monte Carlo Simulation creates random variables to model the risk or uncertainty of a particular system.

Therefore, The Monte Carlo method uses mathematics for computer simulations. The Monte Carlo method was first developed during World War II to test decision improve making.

Learn more about Monte Carlo here:

https://brainly.com/question/15350591

#SPJ1

i need a idea of a origami for my coding class and it needs to be easy to make
BRAINLIEST BRAINLIEST BRAINLIEST BRAINLIEST BRAINLIEST

Answers

Answer:

A crane maybe?

Heart?

Shirt?

Explanation:

Answer:

bunny?

turtle?

Or maybe a shark?

What is wrong with the following code? publicstatic char grade(int score) { if (score >= 9) { return 'A'; } else if (score >= 8) { return 'B'; } else if (score >= 6) { return 'C'; } else if (score > 4) { return 'D'; } else if (score < 4) { return 'F'; } }

Answers

Answer:

c) No return statement for all possible logic paths

you've lost communications within your infrastructure to crucial intranet sites. users can't connect. you get on the servers, and the websites work flawlessly. what could be the problem?

Answers

When the communications within an infrastructure to crucial intranet sites are lost, and users are unable to connect, the problem could be a firewall rule

. A firewall rule can block traffic between the servers and the end-users. If the servers and websites work flawlessly, the problem is not within the infrastructure but most likely a firewall rule. For instance, if the firewall rule blocks traffic from a certain IP address or port, it will prevent users from accessing the intranet sites.When a firewall rule blocks traffic between users and intranet sites, the firewall rule needs to be reviewed to verify that it allows traffic between the two. The review will help to identify whether there are any discrepancies within the firewall rule that are blocking traffic. When the firewall rule is adjusted accordingly, it should resolve the communication loss and allow users to connect to the intranet sites.For example, let's say that you have a web server that has been assigned an IP address of 192.168.1.5. You've also got an intranet site that's running on that web server and can be accessed through a browser. However, when a user tries to connect to the site, they get an error message. You try accessing the site from another computer on the same network and the site works perfectly. At this point, the problem may not be with the web server but could be a firewall rule that's blocking traffic from that particular user's IP address. In this scenario, adjusting the firewall rule to allow traffic from that user's IP address should resolve the communication loss.

To know more about communications visit:

https://brainly.com/question/31309145

#SPJ11

Think of an active scene in a 3D game you recently enjoyed. Explain how at least 3 of the 12 Disney principles of animation were used in that scene to increase immersion.

Answers

Answer:

One of the 3D games I recently enjoyed is "The Legend of Zelda: Breath of the Wild". One of the active scenes in this game that stands out to me is when the player character, Link, is running and jumping across a large gap to reach a high platform. Here are three Disney principles of animation that were used in this scene to increase immersion:

Anticipation: Before Link jumps, he crouches down and his body language suggests that he is preparing for the jump. This creates a sense of anticipation and builds tension, making the player feel more engaged in the action.

Follow-through and overlapping action: After Link jumps, his body continues to move in the direction of the jump even after he lands. This creates a follow-through action that makes the jump feel more realistic. Additionally, his arms and legs move slightly out of sync with each other, which creates overlapping action that gives the animation a more natural look.

Exaggeration: Link's jump is exaggerated in the game, making him soar through the air with a sense of weightlessness. This exaggeration adds to the feeling of excitement and thrill that the player experiences during the jump. Additionally, the wind effect on Link's clothing and hair is also exaggerated, which adds to the sense of motion and immersion in the scene.

By using these Disney principles of animation, the game developers were able to make the jump scene in "The Legend of Zelda: Breath of the Wild" feel more engaging and immersive, making the player feel like they are really experiencing the action

Which of the following makes Super Mario Run unique?

A.
It is only controlled using one finger.

B.
It has the most advanced obstacles of any video game created.

C.
It features hand-drawn graphics.

D.
It uses a soundtrack that has won multiple awards.

Answers

The most advanced obstacles of any video game were created to make the Super Mario Run unique.

What is the main purpose of video games?

Their lives are made more purposeful by playing video games. Games could be played for relaxation, control, enjoyment, creativity, social interaction, boredom prevention, challenge, and achievement.

What is a Super Mario Run?

Nintendo created and released Super Mario Run in 2016 for iOS and later Android platforms. It is the first mobile game from Nintendo that is a part of one of the studio's well-known and long-running brands.

Therefore, the Super Mario Run game is unique as it has the most advanced obstacles of any video game created.

To learn more about the Video game from the given link

https://brainly.com/question/908343

#SPJ1

Please help me with this lab I will give brainliest . It's about binary search tree. The instructions are in the files please help me.

Answers

Is this science? Because if it is a binary tree it’s also called sorted binary it’s a rooted tree

WILL MARK BRAINLIEST!!
What will be displayed after this code segment is run?

luckyNumbers + 15, 33, 25
INSERT lucky Numbers, 2, 13
APPEND lucky Numbers, 3
REMOVE lucky Numbers, 1
DISPLAY LENGTH luckyNumbers

Please explain!! :)

WILL MARK BRAINLIEST!!What will be displayed after this code segment is run?luckyNumbers + 15, 33, 25INSERT

Answers

Answer:

Output: 4

Explanation:

You start with [15,23,25]

You insert 13 at index 2 [15,13,33,25]

Append 3 [15,33,25,3]

Output length of array: 4

The output that will be displayed after the code segment is run is 3

The flow of the algorithm is as follows:

luckyNumbers <- 15, 33, 25:

This above line initializes a list

INSERT lucky Numbers, 2, 13:

The above line replaces the number in the 2nd index with 13.

So, the list becomes 15, 33, 13

APPEND lucky Numbers, 3

The above line appends 3 at the end of the list.

So, the list becomes 15, 33, 13, 3

REMOVE lucky Numbers, 1

The above line removes the number in the 1st index

So, the list becomes 15, 13, 3

DISPLAY LENGTH luckyNumbers

The above line prints the count of numbers in the list i.e. 3

Hence, the output that will be displayed after the code segment is run is 3

Read more about algorithms at:

https://brainly.com/question/24793921

the font size sets the size of text​

Answers

Answer:

Yup thats correct

Explanation:

For microsoft
you are working with another student on a collaborative research paper, and she’s sent you a draft. in it, she states that elephants are afraid of mice, a statement you find suspect. what is an example of a respectful comment you might make to that section of the essay?

Answers

Elephants being afraid of mice, but it would be beneficial to explore the scientific evidence behind this claim for a more accurate representation in our research paper.

While it is a commonly held belief, there is limited scientific evidence to support this claim. It might be worth exploring this topic further to provide a more accurate understanding of the relationship between elephants and mice. Overall, your paper is well-written and engaging, and I look forward to collaborating further to enhance its content. A research paper is a scholarly document that presents the findings, analysis, and interpretation of an original research study or investigation conducted by the author(s). It follows a specific structure and format, including an introduction, literature review , results, discussion, and conclusion.

Learn more about research paper here:

https://brainly.com/question/1599676

#SPJ11

How do i add a picture on a computer? Its a random question but i dont know how to do it. It needs to be a very detailed description.

Answers

get the picture glue it on the screen

Fiona wants to fix scratches and creases in an old photograph. Fiona should _____.

Answers

Answer:

Fiona should scan the photograph and use image-editing software to fix the image.

Explanation:

Answer:

Fiona should scan the photograph and use image-editing software to fix the image.

Explanation:

An array named Ages holds 10 different ages. Write pseudo-code to increase each age in the array by one. The Ages array should be initialised as follows:

Answers

Answer:

Ages = [12, 15, 20, 18, 25, 30, 40, 32, 28, 50]

for i = 0 to 9 do

Ages[i] = Ages[i] + 1

end for

Explanation:

The above code initializes the Ages array with 10 different ages. The for loop iterates through the array, and for each element, it increases its value by 1. The loop starts at index 0 and goes up to index 9, which are the indices of the 10 elements in the array. After the loop completes, the Ages array will contain the original ages increased by 1.

How can i print an art triangle made up of asterisks using only one line of code. Using string concatenation (multiplication and addition and maybe parenthesis)?

Answers

#include <iostream>

int main(int argc, char* argv[]) {

   //One line

   std::cout << "\t\t*\t\t\n\t\t\b* *\t\t\b\n\t\t\b\b*   *\t\t\b\b\n\t\t\b\b\b*     *\t\t\b\b\b\n\t\t\b\b\b\b*       *\t\t\b\b\b\b\n\t\t\b\b\b\b\b* * * * * *\t\t\b\b\b\b\b\n";

   return 0;

}

Yes, it is possible with a single line and using escape sequences, but it is tedious and not recommended. Instead, you can use loops to write more readable and easy on the eyes code. We only used the cout  method (C++). Good luck!

How can i print an art triangle made up of asterisks using only one line of code. Using string concatenation

Look at the color key below the map that shows the overall performance range. What is the range for 1 Year Performance? How does it compare to the 1 Day Performance range?

Answers

A performance range simply means the threshold and maximum percentage of shares that may become earned.

What is a performance range?

Your information is incomplete. Therefore, an overview will be given. A performance range is the maximum percentage if shares that may become earned shares due to the attainment of the requirements of the performance.

It should be noted that in this case, the opportunity to incentivize performance will be associated with the relative performance.

Learn more about performance on:

https://brainly.com/question/26256535

1. Which is NOT an aggregate function?

a. SUM

b. COUNT

c. ROUND

d. MAX

Answers

The correct answer is c. ROUND. In the context of SQL and database queries, aggregate functions are used to perform calculations on a set of values and return a single result.

They operate on a group of rows and produce a single value as output. Aggregate functions are commonly used to perform calculations such as summing values, counting rows, finding the maximum or minimum value, and calculating averages.

a. SUM is an aggregate function that calculates the sum of values in a column or expression.

b. COUNT is an aggregate function that counts the number of rows in a table or the number of non-null values in a column.

c. ROUND is not an aggregate function. It is a scalar function used to round a numeric value to a specified number of decimal places.

d. MAX is an aggregate function that returns the maximum value from a set of values in a column.

Therefore, the correct answer is c. ROUND.

To learn more about Database - brainly.com/question/30163202

#SPJ11

Need help Fast
Question #3
Multiple Choice
What is the missing line of code?
>>> answer = "happy birthday"
"Happy birthday
o answer uppert)
O capitalize answer)
o answer capitalize()
O upper answer

Answers

Answer: answer.capitalize()

Explanation: this is the correction

PLEASE HELP!!!

computer literacy classes are useful for teaching

1. others how to build a support infrastructure in rural areas
2. people who are already comfortable using technology
3. digital literacy skills to get a better job

Answers

Should be the third option. ("digital literacy skills to get a better job")

Which of the following tiny computer apps is designed to be useful but could cause more harm than good?

BIOS
Macro
OS
Sys file

Answers

The following tiny computer app that is designed to be useful but could cause more harm than good is Sys file

What is a Sys file?

This refers to the system file that is in operating systems and contains settings and variables that can make changes to the operating system.

Hence, we can see that if a user decides to tamper with the sys file on their operating system- either Microsoft DOS or Windows Operating Systems, this can lead to irreparable damages.

Read more about sys file here:

https://brainly.com/question/14364696

#SPJ1

Other Questions
(10 points ) please help this is major grade . the Mary muffin company has 128 peaches they want to bake as many cobblers as they can if it takes nine peaches to make a cobbler how many cobblers will they make how many peaches will not be used While Josquin's music was little known during his lifetime, the printing press-invented shortly after his death-helped spread his fame posthumously. Estimate the product 584 x 822. Round each factor to the nearest hundred. Representatives in the House of Representatives is chosen by what? I HAVE 30 MINUTES HELPPP!Reasoning A salesperson's commission rate is 4%. What is the commission from the sale of$35,000 worth of furnaces? Use pencil and paper. Suppose sales would double. What would betrue about the commission? Explain without using any calculations.The commission is $ Which Of The Following is Graphed Below Why does a price floor lead to wasteful increases inquality? barnie tosses 2 fair dice. let e be the event that the sum of the two dice is 6. let f be the event that the first die shows 4. are events e and f independent? PLSSS HELP!! Select the number that would make this statement true: 628 ________ = 0.628 10 to the power of 1 10 to the power of 2 10 to the power of 3 10 to the power of 4 Motors are normally protected from overload by a/an magnetic eutectic-magnetic thermal-magnetic thermal device. For which values of x is the expression undefined? 13. Write 1.48 as a mixed number. pLS HURRY!!!This area model shows the quotient of 1/5+4What is the quotient?Enter your answer as a fraction in simplest from byfilling in the boxes. Which of the following BEST describes the effect of the Roosevelt Corollary on the Monroe Doctrine?A)It allowed the United States to set up aid facilities in Latin America.B)It allowed the United States to build infrastructure in Latin America.C)It allowed the United States to act as a police power in Latin America.D)It allowed the United States to send military reinforcements to Latin America. help! How many square feet of outdoor carpet will we need for this hole Which of the following is the correct definition of payment shock?? within bureaucratic organizations, the proliferation of titles and job descriptions is a perfect example of A staff's shadow is 8 feet and a tree's shadow is 16 feet. If the staff is 9 feet tall, how tall is the tree? Remember to use the correct unit of measure. Joel takes out a loan with a stated rate of 11. 85% interest. If the interest is calculated weekly, how much greater is Joels effective rate than his stated rate? a. 0. 72 percentage points b. 0. 52 percentage points c. 0. 70 percentage points d. 0. 67 percentage points.