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, 22.06.2019 10:30
Think about a recent customer service experience - either positive or negative. write a brief summary of that experience. now think about those four characteristics we look for in customer service representatives. how did the representative in your example stack up? write down your answer and give specific examples.
Answers: 1
question
Computers and Technology, 23.06.2019 05:00
Which best explains why a digital leader would join a society specializing in technology
Answers: 1
question
Computers and Technology, 23.06.2019 13:00
In excel - calculate the actual increase/decrease from first quarter to the second quarter then subtract subtract first quarter value from second quarter total then divide result by first quarter value
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
Write a grading program for a class with the following grading policies: a. there are two quizzes, each graded on the basis of 10 points. b. there is one midterm exam and one final exam, each graded on the basis of 100 points. c. the final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (do not forget to normalize the quiz scores. they should be converted to a percentage before they are averaged in.) any grade of 90 or more is an a, any grade of 80 or more (but less than 90) is a b, any grade of 70 or more (but less than 80) is a c, any grade of 60 or more (but less than 70) is a d, and any grade below 60 is an f. the program will read in the student’s scores and output the student’s record, which consists of two quiz and two exam scores as well as the student’s average numeric score for the entire course and final letter grade. define and use a structure for the student reco
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
Questions on the website: 13722367