Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

Find the derivative. f(x) 8 3 4 mix X O 4 x32 4 x32 3 -4x - x2

Answered: 1 week ago

Question

What do Dimensions represent in OLAP Cubes?

Answered: 1 week ago