Question: c + + Instructions Write a program that: Prompts the user to input the length of the diagonal ( in inches ) of the screen

c++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.
Task #01: Correct output for test cases
Test Feedback:
Status: FAILED!
Check: 1
Test: Traditional test 1
Reason: Unable to find '['20.41','15.31','312.43']' in the program's output.
Enter the length of the diagonal (in inches) of the screen: 1: Traditional TV area.
2: LCD TV Area.
3: Both types of TVs area.
Enter your choice from 1 to 3: -- Traditional TV dimensions --
Screen length is: 5.88313 inches
Screen width is: 23.5325 inches
Screen area is: 138.445 square inches
.
Error : AssertionError - Unable to find a number close enough to 20.41(+/-0.10) in the program's output.
Timestamp: 2024-02-1300:05:37.804770
Status: FAILED!
Check: 2
Test: LCD test 1
Reason: Unable to find '['64.00','36.00','2304.00']' in the program's output.
Enter the length of the diagonal (in inches) of the screen: 1: Traditional TV area.
2: LCD TV Area.
3: Both types of TVs area.
Enter your choice from 1 to 3: -- LCD TV dimensions --
Screen length is: 69.726 inches
Screen width is: 69.726 inches
Screen area is: 4861.72 square inches
.
Error : AssertionError - Unable to find 64.00 in the program's output.
Timestamp: 2024-02-1300:05:37.807766
Status: FAILED!
Check: 3
Test: Both test 1
Reason: Unable to find '['33.26','24.95','829.71','35.20','19.80','696.96']' in the program's output.
Enter the length of the diagonal (in inches) of the screen: 1: Traditional TV area.
2: LCD TV Area.
3: Both types of TVs area.
Enter your choice from 1 to 3: -- Traditional TV dimensions --
Screen length is: 9.58733 inches
Screen width is: 38.3493 inches
Screen area is: 367.668 square inches
-- LCD TV dimensions --
Screen length is: 38.3493 inches
Screen width is: 38.3493 inches
Screen area is: 1470.67 square inches
.
Error : AssertionError - Unable to find a number close enough to 33.26(+/-0.00) in the program's output.
Timestamp: 2024-02-1300:05:37.810697

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!