Created
November 13, 2017 02:14
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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