Someone please revise my java code or whatever
big ass java code
* Write a description of class DeathAndTaxes here.
*
* @author (Enrico Saturnino)
* @version (2015)
*/
import java.util.*;
import java.lang.Math;
public class DeathAndTaxes
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
char status;
int income = 0;
//Starting point values
double Serf = 0;
double Peasant = 922.50;
double Commoner = 5156.2;
double Noble = 18481.21;
double YeahNowWereGettingSomewhere = 46075.25;
double HotDamn = 119401.25;
double ThatCheddarTho = 119996.25;
//Starting point values
double MarriedSerf = 0;
double MarriedPeasant = 1845;
double MarriedCommoner = 10312.50;
double MarriedNoble = 29387.50;
double MarriedYeahNowWereGettingSomewhere = 51577.50;
double MarriedHotDamn = 111324;
double MarriedThatCheddarTho = 129996.5;
//percentage taxed values
double GetTaxedPleb = .10;
double GetTaxedNoob = .15;
double GetTaxedNormie = .25;
double GetTaxedYo = .28;
double GetTaxedKindaRichGuy = .33;
double IveRunOutOfNames = .35;
double LolThisIsGonnaEndUpYoursAgainAnyway = .396;
//wealth boundaries
double InstantNoodles= 9225;
double Sandwich= 37450;
double Steak= 90750;
double Lobster= 189300;
double Caviar= 411500;
double TigerGenitals= 413200;
//Married wealth boundaries
double MarriedInstantNoodles= 18450;
double MarriedSandwich= 74900;
double MarriedSteak= 151200;
double MarriedLobster= 230450;
double MarriedCaviar= 411500;
double MarriedTigerGenitals= 464580;
//ultimate tax income
double Poverty = 0;
double PrettyPoor = 0;
double Moderate = 0;
double Affluent = 0;
double Rich = 0;
double RichAf = 0;
double DamnSon = 0;
//ultimate tax income
double MarriedPoverty = 0;
double MarriedPrettyPoor = 0;
double MarriedModerate = 0;
double MarriedAffluent = 0;
double MarriedRich = 0;
double MarriedRichAf = 0;
double MarriedDamnSon = 0;
System.out.print("Are you married?(Y/N) ");
status = keyboard.next().charAt(0);
if (status == 'N' )
{
System.out.println("[Single]What is your taxable income?");
income = keyboard.nextInt();
Poverty = (income * GetTaxedPleb);
PrettyPoor = ((income * GetTaxedNoob) + Peasant);
Moderate = ((income * GetTaxedNormie) + Commoner);
Affluent = ((income * GetTaxedYo) + Noble);
Rich = ((income * GetTaxedKindaRichGuy) + YeahNowWereGettingSomewhere);
RichAf = ((income * IveRunOutOfNames) + HotDamn);
DamnSon = ((income * LolThisIsGonnaEndUpYoursAgainAnyway) + ThatCheddarTho);
}
else if (status == 'Y' )
{
System.out.println("[Married]What is your taxable income?");
income = keyboard.nextInt();
MarriedPoverty = (income * GetTaxedPleb);
MarriedPrettyPoor = ((income * GetTaxedNoob) + MarriedPeasant);
MarriedModerate = ((income * GetTaxedNormie) + MarriedCommoner);
MarriedAffluent = ((income * GetTaxedYo) + MarriedNoble);
MarriedRich = ((income * GetTaxedKindaRichGuy) + MarriedYeahNowWereGettingSomewhere);
MarriedRichAf = ((income * IveRunOutOfNames) + MarriedHotDamn);
MarriedDamnSon = ((income * LolThisIsGonnaEndUpYoursAgainAnyway) + MarriedThatCheddarTho);
}
else
{
System.out.println("Sorry, that's not an acceptable input. Please try again!");
}
if (status == 'N' && income <= InstantNoodles && income >= 1)
{
System.out.println("Taxes due: $ " + Poverty);
}
if (status == 'N' && income <= Sandwich && income >= InstantNoodles)
{
System.out.println("Taxes due: $ " + PrettyPoor);
}
if (status == 'N' && income <= Steak && income >= Sandwich)
{
System.out.println("Taxes due: $ " + Moderate);
}
if (status == 'N' && income <= Lobster && income >= Steak)
{
System.out.println("Taxes due: $ " + Affluent);
}
if (status == 'N' && income <= Caviar && income >= Lobster)
{
System.out.println("Taxes due: $ " + Rich);
}
if (status == 'N' && income <= TigerGenitals && income >= Caviar)
{
System.out.println("Taxes due: $ " + RichAf);
}
if (status == 'N' && income >= TigerGenitals)
{
System.out.println("Taxes due: $ " + DamnSon);
}
if (status == 'Y' && income <= MarriedInstantNoodles && income >= 1)
{
System.out.println("Taxes due: $ " + MarriedPoverty);
}
if (status == 'Y' && income <= MarriedSandwich && income >= MarriedInstantNoodles)
{
System.out.println("Taxes due: $ " + MarriedPrettyPoor);
}
if (status == 'Y' && income <= MarriedSteak && income >= MarriedSandwich)
{
System.out.println("Taxes due: $ " + MarriedModerate);
}
if (status == 'Y' && income <= MarriedLobster && income >= MarriedSteak)
{
System.out.println("Taxes due: $ " + MarriedAffluent);
}
if (status == 'Y' && income <= MarriedCaviar && income >= MarriedLobster)
{
System.out.println("Taxes due: $ " + MarriedRich);
}
if (status == 'Y' && income <= MarriedTigerGenitals && income >= MarriedCaviar)
{
System.out.println("Taxes due: $ " + MarriedRichAf);
}
if (status == 'Y' && income >= MarriedTigerGenitals)
{
System.out.println("Taxes due: $" + MarriedDamnSon);
}
}
}
*
* @author (Enrico Saturnino)
* @version (2015)
*/
import java.util.*;
import java.lang.Math;
public class DeathAndTaxes
{
public static void main(String[] args)
{
Scanner keyboard = new Scanner(System.in);
char status;
int income = 0;
//Starting point values
double Serf = 0;
double Peasant = 922.50;
double Commoner = 5156.2;
double Noble = 18481.21;
double YeahNowWereGettingSomewhere = 46075.25;
double HotDamn = 119401.25;
double ThatCheddarTho = 119996.25;
//Starting point values
double MarriedSerf = 0;
double MarriedPeasant = 1845;
double MarriedCommoner = 10312.50;
double MarriedNoble = 29387.50;
double MarriedYeahNowWereGettingSomewhere = 51577.50;
double MarriedHotDamn = 111324;
double MarriedThatCheddarTho = 129996.5;
//percentage taxed values
double GetTaxedPleb = .10;
double GetTaxedNoob = .15;
double GetTaxedNormie = .25;
double GetTaxedYo = .28;
double GetTaxedKindaRichGuy = .33;
double IveRunOutOfNames = .35;
double LolThisIsGonnaEndUpYoursAgainAnyway = .396;
//wealth boundaries
double InstantNoodles= 9225;
double Sandwich= 37450;
double Steak= 90750;
double Lobster= 189300;
double Caviar= 411500;
double TigerGenitals= 413200;
//Married wealth boundaries
double MarriedInstantNoodles= 18450;
double MarriedSandwich= 74900;
double MarriedSteak= 151200;
double MarriedLobster= 230450;
double MarriedCaviar= 411500;
double MarriedTigerGenitals= 464580;
//ultimate tax income
double Poverty = 0;
double PrettyPoor = 0;
double Moderate = 0;
double Affluent = 0;
double Rich = 0;
double RichAf = 0;
double DamnSon = 0;
//ultimate tax income
double MarriedPoverty = 0;
double MarriedPrettyPoor = 0;
double MarriedModerate = 0;
double MarriedAffluent = 0;
double MarriedRich = 0;
double MarriedRichAf = 0;
double MarriedDamnSon = 0;
System.out.print("Are you married?(Y/N) ");
status = keyboard.next().charAt(0);
if (status == 'N' )
{
System.out.println("[Single]What is your taxable income?");
income = keyboard.nextInt();
Poverty = (income * GetTaxedPleb);
PrettyPoor = ((income * GetTaxedNoob) + Peasant);
Moderate = ((income * GetTaxedNormie) + Commoner);
Affluent = ((income * GetTaxedYo) + Noble);
Rich = ((income * GetTaxedKindaRichGuy) + YeahNowWereGettingSomewhere);
RichAf = ((income * IveRunOutOfNames) + HotDamn);
DamnSon = ((income * LolThisIsGonnaEndUpYoursAgainAnyway) + ThatCheddarTho);
}
else if (status == 'Y' )
{
System.out.println("[Married]What is your taxable income?");
income = keyboard.nextInt();
MarriedPoverty = (income * GetTaxedPleb);
MarriedPrettyPoor = ((income * GetTaxedNoob) + MarriedPeasant);
MarriedModerate = ((income * GetTaxedNormie) + MarriedCommoner);
MarriedAffluent = ((income * GetTaxedYo) + MarriedNoble);
MarriedRich = ((income * GetTaxedKindaRichGuy) + MarriedYeahNowWereGettingSomewhere);
MarriedRichAf = ((income * IveRunOutOfNames) + MarriedHotDamn);
MarriedDamnSon = ((income * LolThisIsGonnaEndUpYoursAgainAnyway) + MarriedThatCheddarTho);
}
else
{
System.out.println("Sorry, that's not an acceptable input. Please try again!");
}
if (status == 'N' && income <= InstantNoodles && income >= 1)
{
System.out.println("Taxes due: $ " + Poverty);
}
if (status == 'N' && income <= Sandwich && income >= InstantNoodles)
{
System.out.println("Taxes due: $ " + PrettyPoor);
}
if (status == 'N' && income <= Steak && income >= Sandwich)
{
System.out.println("Taxes due: $ " + Moderate);
}
if (status == 'N' && income <= Lobster && income >= Steak)
{
System.out.println("Taxes due: $ " + Affluent);
}
if (status == 'N' && income <= Caviar && income >= Lobster)
{
System.out.println("Taxes due: $ " + Rich);
}
if (status == 'N' && income <= TigerGenitals && income >= Caviar)
{
System.out.println("Taxes due: $ " + RichAf);
}
if (status == 'N' && income >= TigerGenitals)
{
System.out.println("Taxes due: $ " + DamnSon);
}
if (status == 'Y' && income <= MarriedInstantNoodles && income >= 1)
{
System.out.println("Taxes due: $ " + MarriedPoverty);
}
if (status == 'Y' && income <= MarriedSandwich && income >= MarriedInstantNoodles)
{
System.out.println("Taxes due: $ " + MarriedPrettyPoor);
}
if (status == 'Y' && income <= MarriedSteak && income >= MarriedSandwich)
{
System.out.println("Taxes due: $ " + MarriedModerate);
}
if (status == 'Y' && income <= MarriedLobster && income >= MarriedSteak)
{
System.out.println("Taxes due: $ " + MarriedAffluent);
}
if (status == 'Y' && income <= MarriedCaviar && income >= MarriedLobster)
{
System.out.println("Taxes due: $ " + MarriedRich);
}
if (status == 'Y' && income <= MarriedTigerGenitals && income >= MarriedCaviar)
{
System.out.println("Taxes due: $ " + MarriedRichAf);
}
if (status == 'Y' && income >= MarriedTigerGenitals)
{
System.out.println("Taxes due: $" + MarriedDamnSon);
}
}
}