Java Code Please Input The first input is either a 1 or 2. If it is a 1, it means to create an Account via the first overloaded constructor and an account number follows. If it is a 2, 2 values follow, an account number and an amount in pesos. This is then followed by a number m representing the number of operations to be performed followed by the operations themselves as specified below: 1 - credit 2 - debit 3 - getAccountNumber 4 - getBalance 5 - toString For both operations 1 and 2, an amount in pesos follows. The other operations do not have inputs to them. 1·1001·5 3 4 1·2000 5 2·7000 Output For the getter operations (3 - 4), including toString(), the values they return must be printed. For debit(), when the amount to be deducted is bigger than the balance, print "Insufficient Funds" while credit() will not have any output. First·Overloaded·Constructor Account·Number:·1001 Balance:·3000.00 Account·Number:·1001,·Balance:·Php·5000.00 Insufficient·Funds

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Java Code Please Input The first input is either a 1 or 2. If it is a 1, it means to create an Account via the first overloaded constructor and an account number follows. If it is a 2, 2 values follow, an account number and an amount in pesos. This is then followed by a number m representing the number of operations to be performed followed by the operations themselves as specified below: 1 - credit 2 - debit 3 - getAccountNumber 4 - getBalance 5 - toString For both operations 1 and 2, an amount in pesos follows. The other operations do not have inputs to them. 1·1001·5 3 4 1·2000 5 2·7000 Output For the getter operations (3 - 4), including toString(), the values they return must be printed. For debit(), when the amount to be deducted is bigger than the balance, print "Insufficient Funds" while credit() will not have any output. First·Overloaded·Constructor Account·Number:·1001 Balance:·3000.00 Account·Number:·1001,·Balance:·Php·5000.00 Insufficient·Funds
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY