Complete a program that asks the user to enter a floating-point number (either positive or negative)
Complete a program that asks the user to enter a floating-point number (either positive or negative). The program repeats while the user enters y to continue. The program allows a…