Computer_charge - import java.util.*; import java.lang.*;...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: import java.util.*; import java.lang.*; import java.io.*; import java.text.*; import java.math.*; import java.text.DecimalFormat; import javax.swing.JOptionPane; i public class Computer_charge { static int sub; public static void main(String args) throws FileNotFoundException, IOException { int hours; System.out.println("*********************************************"); System.out.println("* The purpose of this program is to *"); System.out.println("* compute the time used in on a computer *"); System.out.println("* usin a menu driven program!!! *"); System.out.println("* *"); System.out.println("*********************************************"); S do { System.out.println(); System.out.println("\t1. 0.00 to 5.00"); System.out.println("\t2. 5.01 to 15.01"); System.out.println("\t3. 15.01 and up"); System.out.println("\t4. EXIT"); System.out.println("\tPlease Enter 1, 2, 3, or 4 exit"); S System.out.println(); Scanner console = new Scanner(System.in); hours = console.nextInt(); h switch (hours)...
View Full Document

This note was uploaded on 06/17/2011 for the course COMPUTER S 2301 taught by Professor Staff during the Spring '11 term at Kennesaw.

Page1 / 4

Computer_charge - import java.util.*; import java.lang.*;...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online