subject

Assign to maxsum the max of (numa, numb) plus the max of (numy, numz). use just one statement. hint: call findmax() twice in an expression. import java. util. scanner; public class sumofmax {public static double findmax(double num1, double num2) {double maxval = 0.0; // note: if-else statements need not be understood to// complete this activityif (num1 > num2) { // if num1 is greater than num2,maxval = num1; // then num1 is the maxval.}else { // otherwise, maxval = num2; // num2 is the maxval.}return maxval; }public static void main(string [] args) {double numa = 5.0; double numb = 10.0; double numy = 3.0; double numz = 7.0; double maxsum = 0.0; /* your solution goes here */system. out. print("maxsum is: " + maxsum); return; }}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:30
1. which of the following is a search engine? a) mozilla firefox b)internet explorer c)google d)safari 2. which of the following statements is true? a) all search engines will provide the same results when you enter the same query. b) all search engines use the same amount of advertisements. c) some search engines are also browsers. d) search engines often provide different results, even when you enter the same query.
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
You are consulting for a beverage distributor who is interested in determining the benefits it could achieve from implementing new information systems. what will you advise as the first step?
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
You know the right answer?
Assign to maxsum the max of (numa, numb) plus the max of (numy, numz). use just one statement. hint:...
Questions
question
Business, 10.11.2020 22:30
question
Mathematics, 10.11.2020 22:30
question
Computers and Technology, 10.11.2020 22:30
question
Mathematics, 10.11.2020 22:30
question
Mathematics, 10.11.2020 22:30
question
Mathematics, 10.11.2020 22:30
question
World Languages, 10.11.2020 22:30
question
Computers and Technology, 10.11.2020 22:30
question
Mathematics, 10.11.2020 22:30
question
Geography, 10.11.2020 22:30
Questions on the website: 13722366