Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project Overview I want it in C# visual stuido 2015 and so simple code please In this project, we are going to implement a simple

Project Overview I want it in C# visual stuido 2015 and so simple code please In this project, we are going to implement a simple bank account system. This project will give you more experience on the use of: Strings User input If statements While statements C# Programming Language Task You are going to write a program that will be used to manage a bank account. A sample program (an executable) will be given to you (uploaded to MyTSU). The program that you will implement will do the same thing as the sample program. I will demonstrate the program in class. You need to fill in the blanks given in the code and add one savings account type to the project. Whenever you are done, please print your code and attach it to this cover page and bring it to class. Bonus Points You will receive bonus points for anything extra you add. For example, if you write methods and call them inside the cases and update the balance this way, you will get additional credit. Submission Submit a report that documents your program. This contains the following information: Description of what your program does. Screenshots of your program in execution Information about any additional features you added If you implement any other additional features beyond what is required, you will receive extra credit (examples: multiple checking or savings accounts, checking for overdrawn balances, NSF fees, etc) THIS IS AN INDIVIDUAL PROJECT. I WILL KNOW IF YOU DO THE FOLLOWING: Copy code from the Internet and submit it as your own work. Let other students copy your code and submit as their own work. Copy other students code and submit it as your own work. Violations will result in a grade of 0 on the project, and possibly an F in the course. Sample Code Use the given code to start. using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main(string[] args) { string checkingname = "", savingsname = ""; double checkingbalance = 0, savingsbalance = 0, savingsinterestrate = 0, savingsnumberofyears =0, amount =0; int select=0 ; while (true) { // Console.Clear() clears everything on the console // Menu is listed below Console.Clear(); Console.WriteLine("0-QUIT"); Console.WriteLine("1-OPEN A CHECKING ACCOUNT"); Console.WriteLine("2-OPEN A SAVINGS ACCOUNT"); Console.WriteLine("3-DEPOSIT TO CHECKING ACCOUNT"); Console.WriteLine("4-DEPOSIT TO SAVINGS ACCOUNT"); Console.WriteLine("5-WITHDRAW FROM CHECKING ACCOUNT"); Console.WriteLine("6-WITHDRAW FROM SAVINGS ACCOUNT"); Console.WriteLine("7-BALANCE INQUIRY FOR CHECKING ACCOUNT"); Console.WriteLine("8-BALANCE INQUIRY FOR SAVINGS ACCOUNT"); Console.WriteLine("-------------------------------------"); Console.WriteLine("CHOOSE AN OPTION TO CONTINUE:"); select = int.Parse(Console.ReadLine()); if (select == 0) // This part quits the program break; switch (select) { case 1: // Opening a new checking account // Get the name and balance from the user Console.Clear(); Console.WriteLine("Enter the customers name"); checkingname = Console.ReadLine(); Console.WriteLine("Enter the initial amount"); checkingbalance = double.Parse(Console.ReadLine()); Console.WriteLine("A new checking account has been created"); Console.WriteLine("Please press any key to return to the main menu"); Console.ReadLine(); break; case 2: // Opening a new savings account // Get the name, balance, numberofyears and interestrate from the user // Do not forget to update the balance with the interestrate and years entered by the user case 3: // Deposit to checking account Console.Clear(); Console.WriteLine("Enter the deposit amount"); amount = double.Parse(Console.ReadLine()); checkingbalance = checkingbalance + amount; Console.WriteLine("{0} has been added to the account", amount); Console.WriteLine("The balance is {0}", checkingbalance); Console.WriteLine("Please press any key to return to the main menu"); Console.ReadLine(); break; case 4: // Deposit to savings account case 5: // Withdraw from checking account case 6: // Withdraw from savings account case 7: // Balance Inquiry for Checking Account Console.Clear(); Console.WriteLine("{0} has {1} in his account", checkingname, checkingbalance); Console.WriteLine("Please press a key to return to the main menu"); Console.ReadLine(); break; case 8: // Balance Inquiry for Savings Account default: break; } } } }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions