Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PLEASE ANSWER USING C#. URGENT SUBMISSION You are a programmer for the Home JMSB

ID: 3795235 • Letter: P

Question

PLEASE ANSWER USING C#. URGENT SUBMISSION

You are a programmer for the Home JMSB Bank. You have been assigned to develop a class that models the basic workings of a bank account. The class should have the following properties Balance: Holds the current account balance IntRate Interest Holds the interest rate for the period Holds the interest earned for the current period .Transactions: Holds the number of transactions for the current period Write at least three constructors. Include properties for each of the data items Create a second class that instantiates the first class with information about your account The class should also have the following methods MakeDeposit Takes an argument, which is the amount of the deposit. This argument is added to the Balance property Another method to Display transaction and Display the new balance Sample run JMSB Bank Current Account Details Transaction Number: 3 Current Balance: 1000.00 Interest Rate: 0.15 Interest Earned: 150.00 Make Deposit Deposit 100.06e New Balance: 1100.e0 Press any key to go to the Account Update Calulator

Explanation / Answer

Account.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication3
{
public class Account
{
public double Balance { get; set; }
public double IntRate { get; set; }
public double Interest { get; set; }
public int Transactions { get; set; }


public Account(double Balance)
{
this.Balance = Balance;
}
public Account(double Balance, double IntRate)
{
this.Balance = Balance;
this.IntRate = IntRate;
}
public Account(double Balance, double IntRate,double Interest)
{
this.Balance = Balance;
this.IntRate = IntRate;
this.Interest = Interest;
}
public Account(double Balance, double IntRate, double Interest, int Transactions)
{
this.Balance = Balance;
this.IntRate = IntRate;
this.Interest = Interest;
this.Transactions = Transactions;
}
}
}

Class1.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication3
{
public class UpdateAccount
{
public UpdateAccount()
{
}
public static void Main()
{

Account ac = new Account(2000, 2.0, 120, 3);
display(ac);
Console.WriteLine(" Please any key to go to the Account Update Calculator");
Console.ReadLine();

Console.WriteLine(" Please Enter the current Balance :");
Double balance = Convert.ToDouble(Console.ReadLine());

Console.WriteLine(" Please Enter the Deposit Amount :");
Double Deposite = Convert.ToDouble(Console.ReadLine());

Console.WriteLine(" Please Enter the Transaction Number :");

int Transaction = Convert.ToInt32(Console.ReadLine());


Console.WriteLine(" Please Enter the Intrest rate (in %) :");
Double intrest = Convert.ToDouble(Console.ReadLine());

ac = new Account(balance + Deposite, intrest, ((balance + Deposite) * intrest) / 100, Transaction);
Console.WriteLine("Updated Account Details: ");
display(ac);

Console.WriteLine("Updated Deposit Details: ");
Console.WriteLine("Deposit:" + Deposite);
Console.WriteLine("New Balance:" + (Deposite+balance) +" Press any key to Exit");
Console.ReadLine();

}
public static void display(Account ac)
{
Console.WriteLine("Current account Details: ");
Console.WriteLine("Transaction Number: " +ac.Transactions);
Console.WriteLine("Current Balance: " + ac.Balance);
Console.WriteLine("Intrest Rate: " + ac.IntRate);
Console.WriteLine("Intrest: " + ac.Interest);

}
}
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote