This is a unique request but I need a complex ATM program written in C# with at least 100 lines of code. I would also need for there to be comments on the functionality. Thanks

1 answer below »
This is a unique request but I need a complex ATM program written in C# with at least 100 lines of code. I would also need for there to be comments on the functionality. Thanks
Answered Same DayAug 01, 2021

Answer To: This is a unique request but I need a complex ATM program written in C# with at least 100 lines of...

Neha answered on Aug 02 2021
141 Votes
/* This code is to develop a code which can be used to perform all the operations related with the ATM.
The foll
owing code uses the switch case and if else conditions. This is the basic code which can help the
developer to understand the basic format of the C#. If else statement is used to check for the valid pin
and the code shows 4 options to the user which can make the changes in the account.
*/
using System;
namespace atm_program
{
    class ab
    {
        static void Main(String[] args)
        {
            int amt=10000,a,current,pin=4040,pin1,pin2;
            string name;
            //code will ask the user to enter the name and will print a welcome message
            Console.WriteLine("Please enter your name");
            name=Console.ReadLine();
            Console.WriteLine("Welcome, "+name);
            //code asks user to enter the pin
            Console.WriteLine("Enter the pin");
            pin1=int.Parse(Console.ReadLine());
//this condition will check for the pin entered by the user
            if(pin1==pin)
            {
             //Menu for the user
                Console.WriteLine("1.To check balance");
                Console.WriteLine("2.To withdraw money");
                Console.WriteLine("3.To deposite...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here