![]() |
![]() |
![]() |
![]() |
![]() |
|
Write a program that displays a message indicating the deviation of a
company's priceearnings ratio from the average priceearnings ratio,
truncated to the nearest integer, of the form The company is
overvalued or undervalued by number percentage points. Your
program's input is four numbers: price per share, shares outstanding,
earnings, and average priceearnings ratio. Be sure that, if the
deviation is just 1 percent, the word point, rather than
points, appears.