TV21 - { double height=standardSize*.6001; double...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/** *TV21.java This program takes the size of standard definition *and converts it to the size of a high definition Tv with the *same height as the original standard def TV. * [email protected] Richard Nelson [email protected] 1.0 */ import java.util.Scanner; i public class TV21 { /** *This method converts the size to the new HD size [email protected] height is the height of your tv [email protected] highdefSize is the siz of the HD tv diagonally [email protected] The new high def size */ public static double findEquivalentSize(int standardSize)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { double height=standardSize*.6001; double highdefSize=height/.49; return highdefSize; } public static void main(Stringargs) { Scanner scan = new Scanner(System.in); int standardSize; System.out.println("Enter size of SDTV"); standardSize = scan.nextInt(); findEquivalentSize(standardSize); System.out.println("The size of your HighDef TV would be "+findEquivalentSize(standardSize)); " } }...
View Full Document

This note was uploaded on 03/01/2011 for the course CSC 116 taught by Professor Mayes during the Spring '08 term at N.C. State.

Ask a homework question - tutors are online