1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
diamong [38]
3 years ago
5

Assign max_sum with the greater of num_a and num_b, PLUS the greater of num_y and num_z. Use just one statement. Hint: Call find

_max() twice in an expression.
Sample output with inputs: 5.0 10.0 3.0 7.0
max_sum is: 17.0
1 det find_max(num_1, num_2):
2 max_val = 0.0
3
4 if (num_1 > num_2): # if num1 is greater than num2,
5 max_val = num_1 # then num1 is the maxVal.
6 else: # Otherwise,
7 max_val = num_2 # num2 is the maxVal
8 return max_val
9
10 max_sum = 0.0
11
12 num_a = float(input)
13 num_b = float(input)
14 num_y = float(input)
15 num_z = float(input)
16
17"" Your solution goes here
18
19 print('max_sum is:', max_sum)
Computers and Technology
1 answer:
Gnoma [55]3 years ago
5 0

Answer:

def find_max(num_1, num_2):

   max_val = 0.0

   if (num_1 > num_2): # if num1 is greater than num2,

       max_val = num_1 # then num1 is the maxVal.

   else: # Otherwise,

       max_val = num_2 # num2 is the maxVal

   return max_val

max_sum = 0.0

num_a = float(input())

num_b = float(input())

num_y = float(input())

num_z = float(input())

max_sum = find_max(num_a, num_b) + find_max(num_y, num_z)

print('max_sum is:', max_sum)

Explanation:

I added the missing part. Also, you forgot the put parentheses. I highlighted all.

To find the max_sum, you need to call the find_max twice and sum the result of these. In the first call, use the parameters num_a and num_b (This will give you greater among them). In the second call, use the parameters num_y and num_z (This will again give you greater among them)

You might be interested in
What is the indication when a student conducting an electronic search of the literature is simultaneously using two databases, p
aivan3 [116]

Generate more than 2000 citations is The keywords were not sufficiently narrowed.

<h3>Why utilize PubMed as a database?</h3>

PubMed is the standard database that is used in the healthcare profession. It has the ability to link to full-text articles, provides advance researching including filtering and superior queries and links to related articles.

<h3>What are the restrictions of PubMed?</h3>

The newest articles in PubMed may not yet be indexed for MEDLINE. There is a short lag time (a few days to many weeks) between when authorities enter the PubMed database and when they are described with MeSH terms. An article you require is not indexed for MEDLINE

To learn more about PubMed , refer

brainly.com/question/602370

#SPJ4

A. There has been a great deal of research in this area.

B. CINAHL and MEDLINE duplicate the literature.

C. The keywords were not sufficiently narrowed.

D. A third database is necessary to limit the search.

5 0
2 years ago
Explain the complement of a number along with the complements of the binary and decimal number systems.why is the complement met
umka2103 [35]

olha so olha la que bacana bonito

3 0
3 years ago
Which area of a magazine cover is often important for those shops and stalls that cannot display the entire cover page on a stan
zloy xaker [14]

I think the answer is one fourth.

Because usually only that part is visible in a stand. It usually contains the name of the magazine and a little bit of illustration gives an idea about what it is about.

6 0
3 years ago
What is common for all machines​
Fed [463]

Answer:

the question is a bit vague, but all machines exist to serve a purpose, or to do or accomplish a certain task.

6 0
3 years ago
Read 2 more answers
What are the arguments both for and against the exclusive use of boolean expressions in the control statements in java (as oppos
sineoko [7]

Reliability is the major argument for the exclusive use of Boolean expressions (expressions that result to either true or false) inside control statements (i.e. if…else, for loop). Results from control statements become reliable because Java has disallowed other types to be used. Other types, like arithmetic expressions in C++ oftentimes include typing errors that are not detected by the compiler as errors, therefore causing confusion.

7 0
3 years ago
Other questions:
  • What is the portrait mode?
    5·2 answers
  • Can someone please answer this for me I will answer one of yours.
    13·1 answer
  • Like Tess, Brina has a fascinating job! She works as a software engineer with Instagram. She says that Computer Science is a way
    10·2 answers
  • According to the SANS Institute, a __________ is typically a document that outlines specific requirements or rules that must be
    13·1 answer
  • A set of instructions to increase a programmer’s pay rate by 10 percent is hidden inside an authorized program. It changes and u
    12·1 answer
  • 1, How can technology serve to promote or restrict human rights? [2 points]
    5·1 answer
  • The physical layer of the OSI model is not foundational to any of the other layers. True or False
    8·1 answer
  • An example of documentary evidence that might be presented at trial for a cyber crime is:
    9·1 answer
  • What was the most surprising thing you learned this term? Why did it surprise you? ​
    9·1 answer
  • What is the advantage of learning through story compared to learning through personal experience?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!