Skip to content

Instantly share code, notes, and snippets.

@noedlm
Created November 13, 2017 02:14
Show Gist options
  • Save noedlm/c8e0840b0ff48dfb4de656325ccec6b7 to your computer and use it in GitHub Desktop.
Save noedlm/c8e0840b0ff48dfb4de656325ccec6b7 to your computer and use it in GitHub Desktop.
I tried my best to get the tax in the worst way possible.
public calc {
public double tax(double[] l, int year, double tax, string type) {
int l1 = l.Length, convT = (int)(tax * 100);
double s;
if(l1) {for(int i = 0; i = l.Length; ++i) {s+= (l[i] * convT)/100;}}
if(type == "marketing") {
sendTo("marketing", year);
} else if (type = "development") {
sendTo("development", year);
} else if (type = "sales") {
sendTo("sales", year);
} else if(type = "finance") {
sendTo("finance", year);
}
return s;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment