Question: Create a C # console project. 1. Create an interface IMyInterface.cs - Add a method string iMessage() 2. Create a class named C1.cs - Add
Create a C # console project.
1. Create an interface "IMyInterface.cs" - Add a method "string iMessage()"
2. Create a class named "C1.cs" - Add 4 private data members, create property for each data member double loanAmnout=0.0; double years=0.0; double interests=0.0; double interestRate=0.0;
3. - Add a constructor with parameters to assign values to loanAmnout, years, interestRate with values that user entered.
4. - Add one method PayInterests() to return the interests interests = loanAmnout * interestRate * years
5. - Inheritate "IMyInterface", implement the method " iMessage()", return string "Be Ready!
6. In Program.cs, have users to enter loanAmnout, years, interestRate. - Call method PayInterests() to display total interests. - Call iMessage() to display "Be Ready!
Output: is attached

CII Windows system32 lamed exe Morgage Loan Calculator Enter Loan Amount 20000000 nter Years 30 Enter Interest Rate: 0.05 Total interests $30000000 Be Ready
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
