Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment: 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
Assignment: 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. Write a program that: 1. Prompts the user to input the length of the diagonal (in inches) of the screen 2. 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: 1. Screen length 2. Screen width 3. Screen area for the specified type of TV. Deliverables: Please upload your program source code (.cpp file) as usual. Name your file a04.cpp. Be sure to comment your code as required, and to acknowledge any sources of help you may have received. Your header comments should include the identification of the assignment and your name(s). It should also include a comment indicating any sources of help you may have received. If there were none, the line should read: // Sources: None
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started