subject

I need to create a method named "root positive". which will either print the square root of the number passed to it or if the number is less than zero, it will print out the statement "Number must not be negative."? 1. Ask the user to input a number of type double which you will find the square root of the number.

2. Create a method called rootPositive which will either print the square root of the number passed to it or if the number is less than zero, it will print out the statement "Number must not be negative.".

3. Call your rootPositive method and pass to it the number the user enetered.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement. (there are no answer choices)
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 23.06.2019 08:00
Which argument is not a valid filter? does not equal this quarter filter by cell color all of these are valid filter arguments.
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
You know the right answer?
I need to create a method named "root positive". which will either print the square root of the numb...
Questions
question
History, 21.01.2021 03:50
question
Computers and Technology, 21.01.2021 03:50
question
Mathematics, 21.01.2021 03:50
question
Mathematics, 21.01.2021 03:50
question
Mathematics, 21.01.2021 03:50
question
Mathematics, 21.01.2021 03:50
question
Mathematics, 21.01.2021 03:50
question
Mathematics, 21.01.2021 03:50
Questions on the website: 13722367