(iv) Write a simple test program to test StaffWallet. You are required to test the top up, payment, display balance and tostring() methods.

Principles of Information Systems (MindTap Course List)
12th Edition
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter4: Software: Systems And Application Software
Section: Chapter Questions
Problem 1CTQ2
icon
Related questions
Question

(iv) Write a simple test program to test StaffWallet. You are required to test the top up, payment, display balance and tostring() methods.

Question 2
E-Wallet is a kind of digital account which a user can deposit his/her money for future online
transaction. Besides being more secure, the E-wallet can make online shopping easier and faster than
ever before. On the other hand, the users can also enjoy varies rewards when they make a payment.
TAR Financial Department would like to develop two E-Wallet applications, name StaffWallet and
StudentWallet. After conducting the requirement analysis, you have gathered the following information:
Both applications should allow to top-up the balance and make payment.
Whoever make the payment via the application and the amount is more than or equal to
RM100 will earn the reward points, 10 points for StudentWallet and 5 points for StaffWallet.
Each wallet will be assigned a unique account number and account holder's name. The
account number should be auto generated.
As a developer, you are required to develop both StaffWallet and StudentWallet with the following
requirements:
Transcribed Image Text:Question 2 E-Wallet is a kind of digital account which a user can deposit his/her money for future online transaction. Besides being more secure, the E-wallet can make online shopping easier and faster than ever before. On the other hand, the users can also enjoy varies rewards when they make a payment. TAR Financial Department would like to develop two E-Wallet applications, name StaffWallet and StudentWallet. After conducting the requirement analysis, you have gathered the following information: Both applications should allow to top-up the balance and make payment. Whoever make the payment via the application and the amount is more than or equal to RM100 will earn the reward points, 10 points for StudentWallet and 5 points for StaffWallet. Each wallet will be assigned a unique account number and account holder's name. The account number should be auto generated. As a developer, you are required to develop both StaffWallet and StudentWallet with the following requirements:
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning