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;

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

1 Expert Approved Answer
Step: 1 Unlock

I have provided C CODE along with CODE SCREENSHOT and OUTP... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!