I wrote my code in python 3.8:
def max_magnitude(num1, num2):
return num1 if abs(num1) > abs(num2) else num2
print(max_magnitude(-8,-2))
I hope this helps!
Answer:
Set aside time every day for doing something that feels positive, whether that’s journaling, meeting up with a close friend, or watching a show that makes you laugh. Scheduling in moments that bring you joy is vital for healing a broken heart. It’s important to talk about your feelings with others and not numb yourself out.
Explanation:
Answer:
1) Bottom-up
2) Top-down
Explanation:
In general dynamic programming is a divide and conquer strategy which can be implemented using bottom up approach or top down approach.
Bottom-up approach in dynamic programming will solve a relatively simple sub-problem first and then use the solution to build and arrive at solutions to a bigger sub-problem.
Top down approach is reversed to bottom-up approach and is also known as Memoization Method. Instead of solving a problem started from the base state sub-problem, the top down approach break a problem into a smaller problems from the top most destination state until it reaches the bottom most base state.
The kind of website which would best suit Hayne's needs is a: C) Dynamic website.
A website is the collective name that is used to describe series of interconnected webpages having a unique domain name.
Basically, a website is an HTML document which comprises codes, tags, images, audios, and videos that are integrated to make them responsive and interactive with clients (end users).
In Computer and Technology, there are four (4) main types of website and these include:
A dynamic website is a type of website which is designed to contain information that automatically changes based on the client, time zone, time of the day, language, services, and other factors.
In this scenario, the kind of website which would best suit Hayne's needs is a dynamic website because his services, tips or contact information may change.
Read more: brainly.com/question/21694571