subject
Computers and Technology, 15.11.2019 18:31 bc3286

Write the program findsquareroot that finds the square root of a user’s input value. the math class contains a static method named sqrt() that accepts a double and returns the parameter’s square root. if the user’s entry cannot be converted to a double, display an appropriate message, and set the square root value to 0. otherwise, test the input number’s value. if it is negative, throw a new applicationexception to which you pass the message "number can’t be negative." and again set sqrt to 0. if the input value is a double and not negative, pass it to the math. sqrt() method, and display the returned value.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
in 2007, floridians died in alcohol-related collisions.a.  501b.  1,051c.  5,015d.  10,839
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
Answers: 3
question
Computers and Technology, 24.06.2019 06:50
What are the things you are considering before uploading photos on social media?
Answers: 1
question
Computers and Technology, 25.06.2019 07:30
The can be used to paste text in any order.
Answers: 1
You know the right answer?
Write the program findsquareroot that finds the square root of a user’s input value. the math class...
Questions
question
Mathematics, 14.01.2021 21:00
question
Mathematics, 14.01.2021 21:00
question
Mathematics, 14.01.2021 21:00
question
Mathematics, 14.01.2021 21:00
question
Mathematics, 14.01.2021 21:00
question
History, 14.01.2021 21:00