The screen size of a TV is given by the length of the rectangular diagonal. Traditional TVs come in 4:3 ratio, that is, the ratio of length to width is 4 to 3. This means, if the length is x inches, then the width is (3/4)x. LCD TVs come in 16:9 ratio. Instructions Write a program that: Prompts the user to input the length of the diagonal (in inches) of the screen Allows the user to select which type of TV the user would like to view the dimensions for Ex.1: Traditional TV area. 2: LCD TV Area 3: Both types of TVs area Have the program calculate and display the: Screen length Screen width Screen area for the specified type of TV.
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
The screen size of a TV is given by the length of the rectangular diagonal.
Traditional TVs come in 4:3 ratio, that is, the ratio of length to width is 4 to 3. This means, if the length is x inches, then the width is (3/4)x.
LCD TVs come in 16:9 ratio.
Instructions
Write a program that:
- Prompts the user to input the length of the diagonal (in inches) of the screen
- Allows the user to select which type of TV the user would like to view the dimensions for
- Ex.1: Traditional TV area. 2: LCD TV Area 3: Both types of TVs area
Have the program calculate and display the:
- Screen length
- Screen width
- Screen area
for the specified type of TV.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images