Question: C++ Please Double length is read from input and area is the square of length. Perform the following tasks: - Output length with a maximum
C++ Please
Double length is read from input and area is the square of length. Perform the following tasks: - Output length with a maximum of eight digits, showing the decimal point and any trailing 0s. Then, output " ". - Output area in fixed-point notation with a maximum of five digits in the fraction. Then, output " ". - Output area in scientific notation with a maximum of five digits in the fraction. End with a newline. Ex: If the input is 6.75, then the output is: 6.750000045.562504.55625e+01 Note: cout showpoint shows the decimal point and any trailing 0s even when the fraction (after the decimal point) is zero
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
