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. * *@author Richard Nelson *@version 1.0 */ import java.util.Scanner; i public class TV21 { /** *This method converts the size to the new HD size *@param height is the height of your tv *@pram highdefSize is the siz of the HD tv diagonally *@return 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

  • Spring '08
  • MAYES
  • High-definition television, High definition TV, original standard def, new HD size, high def size, standard definition *and

{[ snackBarMessage ]}

Ask a homework question - tutors are online