/*
* Problem 10 -- Calculating the salary of a specific person
* at a company
*
* Author: some guy
* Creation Date: 2010-09-20
* Modified Date: 2010-09-23
* Description: Given the employee job classification,
* Education background, merit rating
* years of service and base pay, calculate
* the percent of salary adjustment for each
* employee
*
* NOTE: TABLE TOO LARGE -- REFER TO
* http://192.168.0.3/~wcrum/cs/pcc/problems/problem10.shtml
*
*/
import java.util.*;
public class calcSalary
{
public static void main( String args[] )
{
/*
* These variables define the FINAL number
* bleh...
*/
double jobRate; //the job rate adjustment
//based on service level
double merit; //the merit level of the person
double education; //the amount of education they have had
double service; //the amount of time they worked at the
//company
/*--------------------------------------------*/
/*
* BEGIN CODE TO DETERMINE JOB STATUS
*
*/
int jobChoice;
String jobWord;
//double jobRate; might just keep this at the top
jobChoice = getJobChoice();
jobWord = getJobWord( jobChoice );
jobRate = getJobRate( jobChoice );
/* END JOB PART ------------------------------*/
/*
* Begin merit identification
*/
int meritChoice;
String meritWord;
//double merit; //might just keep this at the top
meritChoice = getMeritChoice();
meritWord = getWordChoice( meritChoice );
merit = getMeritRate( meritChoice );
/* End merit identifcation-------------------*/
/* ---------------------------------------------
* Begin education identification...
*/
int educationChoice;
String educationWord;
//double education; //might just keep this at the top...
educationChoice = getEducationChoice();
educationWord = getEducationWord( educationChoice );
education = getEducationRate( educationChoice );
/* End education identifcation------------------ */
/* -----------------------------------------------
* Begin service identification
* bleh...
*/
int serviceChoice;
String serviceWord;
//double service; //already defined at the top
serviceChoice = getServiceChoice();
serviceWord = getServiceWord( serviceChoice );
service = getServiceRate( serviceChoice );
/*
* DEBUG CODE, REMOTE LATER
*
*/
while(true){
System.out.print( "HELP ME I AM STUCK DOING JAVAAAAAAAAAAAAAAAAAAAAAA" );
}
}
/*AOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAO
* Begin functions related to job calculations...
* jobWord --> the specific job "word" to be used when printing results
* jobRate --> the actual rate used in calculations..
*
*/
/*
* retireive from the user, the job rate AS A WORD
* @return jobWord --> the percentage of job
*
*/
public static int getJobChoice() {
int number; //the specific percentage
Scanner inputBuffer = new Scanner(System.in);
System.out.print("Job classification menu:\n\r" +
"Press 1 for management level\n\r" +
"Press 2 for technical level\n\r" +
"Press 3 for service level\n\rClassification> "
);
number = inputBuffer.nextInt();
return number;
}
public static String getJobWord( int jobChoice )
{
String wordUp;
switch ( jobChoice )
{
case 1:
wordUp = "Something here";
break;
case 2:
wordUp = "Something here 2";
break;
case 3:
wordUp = "somethinghere 3";
break;
case default:
wordUp = "BLAHBLAHBLAHDEFAULT";
}
return wordUp;
}
public static double getJobRate( int jobChoice )
{
double number; //the number blah
switch (jobChoice)
{
case 1:
number = 0.01;
break;
case 2:
number = 0.015;
break;
default:
number = 0.016;
break;
}
return number;
}
/*THIS ENDS FUNCTIONS RELATED TO JOB CALCULATIONS------
* AOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAOAO
*/
/*
* BEGIN MERIT IDENTIFICATION
* QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ
* IMPORTANT VARS:
* meritWord --> the specific word related to the number
* merit --> the number used for calculation
*/
public static int getMeritChoice()
{
int number; //the specific percentage
Scanner inputBuffer = new Scanner(System.in);
System.out.print("Merit classification menu:\n\r" +
"Press 1 for poor service\n\r" +
"Press 2 for good service\n\r" +
"Press 3 for excellent service\n\rClassification> "
);
number = inputBuffer.nextInt();
return number;
}
public static String getMeritWord( int meritChoice )
{
String wordUp;
switch ( meritChoice )
{
case 1:
SOMETHINGGOESHERE;
break;
case 2:
SOMETHINGELSEGOESHERE;
break;
case 3:
SOMETHINGSOMETHINGELSEGOESHERE;
break;
case default:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA;
break;
}
return wordUp;
}
public static double getMeritRate( int meritChoice )
{
double number;
switch( meritChoice )
{
case 1:
SOMETHINGGOESHERE;
break;
case 2:
SOMETHINGELSEGOESHERE;
break;
case 3:
LALALALALALALALALALALALALAL;
break;
case default:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA;
break;
}
return number;
}
/*
* THIS ENDS THE MERIT IDENTIFICATION BLAHBLAHBLAH.
*/
/*
* EDUCATION SUCKS~
*
*/
public static int getEducationChoice()
{
int number; //the number of something
Scanner inputBuffer = new Scanner(System.in);
System.out.print("INSERT THE MENU HERE FOO\n\r> ");
number = inputBuffer.nextInt();
return number;
}
public static String getEducationWord( int educationChoice )
{
}
public static double getEducationRate( int educationChoice )
{
}
/* (YARLY)
* this ends the education identification BLAHBLAHBLAHBLAH