Question: A television manufacturer advertises that a television set has a certain size, measured diagonally. You wonder how the set will fit into your living room.
A television manufacturer advertises that a television set has a certain size, measured diagonally. You wonder how the set will fit into your living room. Write an algorithm that yields the horizontal and vertical size of the television. Your inputs are the diagonal size and the aspect ratio (the ratio of width to height, usually 16 : 9 for television sets).

O Don Bayley/iStock photo
Step by Step Solution
3.38 Rating (185 Votes )
There are 3 Steps involved in it
Here is an algorithm that takes the diagonal size and aspect ratio as inputs and returns the horizon... View full answer
Get step-by-step solutions from verified subject matter experts
