Question: Home Controller code: public string Interest (double principal, int time, double rate) { double amount = 0; if (time > 10) { * =
Home Controller code: public string Interest (double principal, int time, double rate) { double amount = 0; if (time > 10) { * = principal (1 + (time* rate)); } else { amount = } else if (time >= 5) { amount = principal (0.5+ (time * rate)); amount = 1 + principal* (1 + (time * rate)); return Convert.ToString("The amount that needs to be paid is: "+ amount); What is the output if we browse to the following code based on the Home controller class (4 marks):
Step by Step Solution
3.43 Rating (162 Votes )
There are 3 Steps involved in it
I have provided C CODE along with CODE SCREENSHOT and OUTP... View full answer
Get step-by-step solutions from verified subject matter experts
