Question

Exercise 5) (4 pts)

Write a program named "Exercise5.cpp", which reads a real floating number and displays the

value in several different ways. The following is the case when the input is 12.3456. Each line

has 42 spaces. (15 spaces are used for the value, and 27 spaces are used for the description.)

Make sure that your program MUST display 42 **' in the after-input and last lines.

Type one real number here.

12.3456

1.234560e+01

1.23e+01

12.35

12.345600

E-Note (scientific)

E-Note 2 decimal digits.

Fixed 2 decimal digits

Fixed show 6 decimal digits

Question image 1