Write a method public static double readDouble(String prompt) that displays the prompt string, followed by a space,

Question:

Write a method

public static double readDouble(String prompt)
that displays the prompt string, followed by a space, reads a floating-point number in, and returns it. Here is a typical usage: salary = readDouble("Please enter your salary:");
percentageRaise = readDouble("What percentage raise would you like?");

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: