Question
Write a program that reads data from a text file, clients.txt which contains records of clients for a business and displays the clients ID #s
Write a program that reads data from a text file, clients.txt which contains records of clients for a business and displays the clients ID #s and names in a ListBox.
SAMPLE RECORDS: (Client ID #,Client Name,Balance Due)
101,John Brooks,400.00
103,Tim Harris,350.00
106,Erica Parker,275.00
108,Mark Tompson,100.00
110,Louise Winston,525.00
Three buttons should be displayed -- Display Info, Charge, and Record Payment. Create a class named Client. The class should contain a New constructor method, a read-only Balance property, a Charge method, and a Payment method. The program should allow the clerk to enter a clients id# into a text box and click the Display Balance Due button. The clients name and balance due should be displayed appropriately in text boxes. An appropriate error message should display for an invalid client id#. The clerk should be able to enter an amount to charge a client in a text box and click the Charge button. The new balance due should be displayed. The clerk should be able to enter a payment amount in a text box and click the Record Payment button. The new balance due should be displayed. If the payment is larger than the balance due, then the amount should be displayed as a credit.
I need the code on C#
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started