+ Link For Assignments, GDBs & Online Quizzes Solution |
+ Link For Past Papers, Solved MCQs, Short Notes & More |
Please read the following instructions carefully before solving & submitting assignment:
Uploading Instructions:
Rules for Marking:
It should be clear that your assignment will not get any credit if:
Note:Do not put any query on MDB regarding this assignment, if you have any query then email at cs506@vu.edu.pk
Lectures Covered: This assignment covers Lecture # 23- 30
GOOD LUCK
Problem Statement:
You are required to deploya simple web application using Apache Tomcat Server, named MyATM, which should simulate behavior of a typical ATM (Automated Teller Machine). In which a user, after entering card details,can deposit amount, withdraw cash, and check current balance. The program should be based on a user-friendlyweb interface; need to use Java Servlet technology for this purpose. Further, all information must be savedin a backend database using MS Access.
Detailed Description:
The program should facilitate multiplecustomers (each contains unique card no). For this purpose, you need to develop an html page (index.html) which should contain aninput form, as shown in figure 1.
Fig.1: Input Form (index.html) |
The customer should be able to view ATM services byusing card no and pincode.Therefore,write a Java Servlet named as LoginServlet.java that will receive submitted information from input form (i.e. index.html) and verify input values; whether entered values are correct or not. If authentication is invalid, then print back amessage "Invalid Card No or wrong Pin Code".
If customercredentials (i.e. card no and pin code) are correct, jump to ATM Services Page(i.e. ServicesServlet.java) which should list down the following services(shown in figure 2).
Fig.2: ATM Services (ServicesServlet.java) |
Each time, user selects this option, s/he will be prompted to enter money for deposit (using DepositServlet.jata) that must be in multiple of Rs. 500/-(hint is given below) and up to a maximum of Rs. 25000/- per transaction. If inputs are correct,then the amount must be added in current balance and as well as in database. However, in case of wrong input, appropriate message should be displayed.
|
Fig. 3: Deposit Amount (DepositServlet.java)
User can withdraw any cash but in multiple of Rs. 500/- (hint is given below) and up to a maximum of Rs. 25000/- per transaction by using this option; WithdrawServlet.java should serve here. However, if balance is zero or withdraw amount is greater than the current balance, then appropriate message should be displayed. Otherwise, amount must be deducted from current balance and database should be maintained as well.
Fig. 4: Cash Withdraw (WithdrawServlet.java)
The program should fascinate the user by displaying the current balance via Java Servlet named BalanceServlet.java.
Fig. 5: Check Balance (BalanceServlet.java)
Note: At the end of each successful transaction, the user must be asked to proceed with another transaction or not; if yes then start from displaying ATM services again and if not then show web developer information (student id, name and email address) via an HTML page (info.html),as shown infigure 6.
Fig. 6: Developer Info (info.html)
Required Stuff:
You do not need to submit complete NetBeans IDE projects. Rather, just submit the following files in compressed (.zip or .rar) format.
Html Pages:
index.html
info.html
Java Servlets:
LoginServlet.java
ServiesServlet.java
DepositServlet.java
WithdrawServlet.java
BalanceServlet.java
Java Classes:
DebitCart.java
AccountManager.java(should contain transactionsrelated code)
DbHelper.java(should contain database related code)
Database file:
BSxxxxxxxx.accdb (must be same as your own VU student id)
Fig. 7: Folder "assets" under web directory
Sample Data:
Id |
Username |
Card No |
Pin Code |
Balance |
1 |
Ahmad |
2020-1001 |
1041 |
3000 |
2 |
Ali |
2020-1002 |
1226 |
0 |
3 |
Sana |
2020-1003 |
2592 |
7000 |
4 |
Amna |
2020-1004 |
6372 |
12000 |
5 |
Umar |
2020-1005 |
9241 |
25000 |
Tab. 1: Sample Users Data
Tab. 2: Users Table in MS Access Database file
Hint:
if (amount % 500 == 0) {
// it is a multiple of 500.
}
Video Tutorials:
https://vulms.vu.edu.pk/Courses/CS506/Downloads/Tomcat_Server_Insta...
https://vulms.vu.edu.pk/Courses/CS506/Downloads/Web_Application_in_...
https://vulms.vu.edu.pk/Courses/CS506/Downloads/UCanAccess_Driver_Installation.mp4
Important Things to Implement:
Good Luck
Tags:
+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)
+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)anybody upload the solution. ......................
© 2021 Created by + M.Tariq Malik.
Powered by
Promote Us | Report an Issue | Privacy Policy | Terms of Service
We are user-generated contents site. All product, videos, pictures & others contents on site don't seem to be beneath our Copyrights & belong to their respected owners & freely available on public domains. We believe in Our Policy & do according to them. If Any content is offensive in your Copyrights then please email at m.tariqmalik@gmail.com Page with copyright detail & We will happy to remove it immediately.
Management: Admins ::: Moderators
Awards Badges List | Moderators Group
All Members | Featured Members | Top Reputation Members | Angels Members | Intellectual Members | Criteria for Selection
Become a Team Member | Safety Guidelines for New | Site FAQ & Rules | Safety Matters | Online Safety | Rules For Blog Post