Coding help!

How would one initialize a variable with the following conditions?

For the first 500 trillion grubnicks in sales, the company will be extended 20% of the amount of those sales in credit.
In addition, for the next 400 trillion grubnicks in sales (beyond the initial 500 trillion), the company will be extended additional credit equal to 10% of those additional sales. However, if the company's industy is phishing or mud (so spelled, entirely in lower case), the amount of this additional credit is 15% of those additional sales instead of 10%.
In addition, further credit will be extended in the amount of 3% of sales above 900 trillion grubnicks.
If a company's annual sales are at least 700 trillion grubnicks, then the credit line is further increased by 0.01 trillion grubnicks for every employee.
What are grubnicks?

umm simple answer you cannot initialize a single variable to do all this.

You would need to write a program to calculate all the variables involved.
Last edited on
Topic archived. No new replies allowed.