Write a functiondouble read_double(string prompt)that displays the prompt string
Chapter 5, Problem P5.13(choose chapter or problem)
Write a functiondouble read_double(string prompt)that displays the prompt string, followed by a space, reads a floating-point numberin, and returns it. Here is a typical usage:salary = read_double("Please enter your salary:");perc_raise = read_double("What percentage raise would you like?");
Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.
Becoming a subscriber
Or look for another answer