subject

Import java. util. scanner; public class sumofmax { public double findmax(double num1, double num2) { double maxval; // note: if-else statements need not be understood to // complete this activity if (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;

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Working on this program in python 3.7: a year in the modern gregorian calendar consists of 365 days. in reality, the earth takes longer to rotate around the sun. to account for the difference in time, every 4 years, a leap year takes place. a leap year is when a year has 366 days: an extra day, february 29th. the requirements for a given year to be a leap year are: 1) the year must be divisible by 42) if the year is a century year (1700, 1800, the year must be evenly divisible by 400some example leap years are 1600, 1712, and 2016.write a program that takes in a year and determines whether that year is a leap year.ex: if the input is 1712, the output is: 1712 is a leap year. ex: if the input is 1913, the output is: 1913 is not a leap year. your program must define and call the function isleapyear(useryear). the function should return true if the input year is a leap year and false otherwise.
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
The processing of data in a computer involves the interplay between its various hardware components.
Answers: 1
You know the right answer?
Import java. util. scanner; public class sumofmax { public double findmax(double num1, double num2)...
Questions
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
English, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
question
Mathematics, 16.09.2020 01:01
Questions on the website: 13722361