Uploaded by Nghi Vo

Assignment-1-ATM-CSharp-S2022

advertisement
PROG32356 .NET Technologies Using C#
Davis Campus, Sheridan College, Summer 2022
Instructions
1. Corrupt/incorrect submissions will result in a 30% penalty.
2. The app must be bug free and will incur a 30% penalty for even a single crash.
3. This work is individual effort. Zero collaboration is allowed.
4. App must already come with preloaded data (5 lines per collection minimum)
Mark breakdown:
•
•
•
•
•
5% for correct submission
5% for documentation of code
30% for LINQ usage
30% for custom class usage (Abstract, Interface,Polymorphism)
30% for console menu system
Assignment #1
•
•
•
•
•
•
•
•
•
Create a console app using C# and .Net
Create an ATM management system that will do the following:
o Add, update, delete an Client Account (PIN, Account Type, Name, address, email, phone) Use PIN number to access account
o Feature for Deposit, Withdrawal, Close Account, View Account or Reward balance
Use collections to store your data, you must use a custom class for account types ( Chequing
Account, Basic Bank Account, Preferred Package, Ultimate Package), Reward Program (account will
be given 10 points when balance is over $2000 per week and will increment by 5 points for every
$500 dollars over.
Use LINQ to query, insert, update and delete your collections
Client must select account (Warn if selection is incorrect!) when Menu 2, 3 are pressed
Client may close account (Deletion from Collection)
Your console application must have a hierarchy of menus and run continuously until client quits
the application:
Example Menu:
o Welcome to Your Bank Name, Choose from the following:
o 1. Current Balance
o 2. Withdraw
o 3. Deposit
o 4. Cancel
o 5. Reward Points Balance
o 6. Close Account
o 7. Exit ATM
Menu 1, 5, 6:
o 1. Basic Bank Account
o 2. Preferred Package
o 3. Ultimate Package
o 4. Chequing Account
•
•
•
Menu 2, 3:
o 1. Cash
o 2. Deposit
Menu 1 :
o 1. Basic Bank Account
o 2. Preferred Package
o 3. Ultimate Package
o 4. Chequing Account
Account must have minimum of $500 dollars
Note: All functions listed above must actually perform insert, delete, update & view into a collection of
your choice and must use LINQ to perform query.
Submission Instructions
Step 1. Create Text file titled named AS_S2022_StudentNumber.txt.
Step 2. Paste the entire code file (.cs extension) into your text, save content (Ctl-S).
Step 3. Upload to Assignment #1 dropbox.
Step 4. Zip the entire project folder (see instructions below).
Step 5. Upload zipped project file to Assignment #1 via link 'Assignments'.
Follow the steps below to compress your project:
• Right click on your project folder name and select 'Send to'
• Select Compressed (zipped) folder
• You should have a compressed zip file with the same name (Rename the zip file folder
' AS_S2022_StudentNumber' ).
• Upload load that you Assignment #1 via link 'Assignments'
Hope my instructions are clear, let me know if any issues. You should have upload two files to link
'Assignment #1' zipped folder and Code file.
Download