Answer to Question #263411 in C# for Emily

Question #263411

Write a Class Diagram and Pseudocode for


Windows application that functions like a banking account register. Separate the business logic form the presentation layer. The graphical user interface (GUI) should allow the user to input the account name, number and balance. Ensure that the full name is entered for the customer and that only numeric values are entered for the number fields when the Create Account Button is selected. Separate the business logic from the presentation layer by creating a Customer class. Include a deposit to and withdraw from methods in the customer class to keep the balance updated. After the object of the customer class is instantiated, provide Textbox objects on your GUI for the withdrawals and deposits. A second button object should be available to update the account for withdrawal and deposit transactions showing the new balance.


1
Expert's answer
2021-11-09T23:39:03-0500
Pseudocode


Start
  Declare variable accountName
  Declare variable balance
  Declare variable number
  Declare variable newBankAccount
  Declare variable amount
  if button "Create Account" is clicked then
     Read accountName from textbox
     Read balance from textbox
     Read number from textbox
     Create a new BankAccount object
     Display message: "Account has been created."
  end if
  if button "Update Account" is clicked then
     Read amount from textbox
     if radiobutton "Deposit" is selected then 
          deposit amount to newBankAccount
     else 
         withdraw amount from newBankAccount
     end if
     Display BankAccount balance
  end if
Stop




Class Diagram 




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS