{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

PROGRAM_SEVEN - import java.io import java.text import...

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

View Full Document Right Arrow Icon
import java.io.*; import java.text.*; import java.util.Scanner; import java.lang.*; import java.math.*; import java.lang.String; import java.io.IOException; //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(System.in); 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 = Console.next().charAt(0); //Case to allow user to choose from the menu switch(ch) { case 'a': case 'A': Ind();
Image of page 1

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

View Full Document Right 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'); }
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern