PROGRAM_SEVEN - import import java.text import...

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

View Full Document Right Arrow Icon
import*; import java.text.*; import java.util.Scanner; import java.lang.*; import java.math.*; import java.lang.String; import; //Jeremy Debruce // Program 7 / public class PROGRAM_SEVEN { //Declaring Variables global static double fed=0.18,st=0.045,hos=25.65,un=7.85,hr,Hw,ovr,gr,ded,net,Temp1; static String ss,ss2,name,name2,Temp; static int d; static char ch; static int j=0,i=0,min=0,z=15; public static void main(String[] args) throws FileNotFoundException, IOException { //purpose of the program System.out.println("****************************************************") ; System.out.println("*The purpose of the program is to calculate payroll*"); System.out.println("*for The Natural Pine Furniture Comp. using various*"); System.out.println("* selection statements *"); System.out.println("****************************************************") ; System.out.println(); // Scanner Scanner Console = new Scanner(; do { //Menu of choices System.out.println(); System.out.println("Please choose from the Menu"); System.out.println(); System.out.println("***************************"); System.out.println("* Menu *"); System.out.println("***************************"); System.out.println("* A. Display Individual *"); System.out.println("* B. Display all Employees*"); System.out.println("* C. Insert *"); System.out.println("* D. Sort *"); System.out.println("* E. Exit *"); System.out.println("***************************"); ch =; //Case to allow user to choose from the menu switch(ch) { case 'a': case 'A': Ind();
Background image of page 1

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

View Full DocumentRight Arrow Icon
break; case 'b': case 'B': All(); break; case 'c': case 'C': Insert(); break; case 'd': case 'D': B_Sort(); break; case 'e': case 'E': System.out.println("Thank you for using this program!!!"); break; default: System.out.println("Please follow directions only A,B,C,D, or E to Exit."); break; } }while(ch != 'E'); } public static void Ind() throws FileNotFoundException { //Reads from a data file payme Scanner inFile = new Scanner(new FileReader("g:\\payme.txt")); ss =; name =;
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 6

PROGRAM_SEVEN - import import java.text import...

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

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