Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Download: http://solutionzip.com/downloads/cis355a-week-5-ilab/
- CIS355A Week 5 iLab
- iLab 5 of 6: GUI Graphics and File I/O
- STEP 1: Writing out Client
- Information
- 1) Create the following GUI, so that when your program is running, your user can input information
- regarding a client and hit the save button to save the information out to a file.
- 2) Every time the user hits the save button, that information should be saved out to a file called
- client.txt; each new client’s information should append to the information already saved onto the file
- client.txt.
- 3) The data in the client.txt file should be formatted like the following.
- Client Name Client ID Starting Balance Closing Balance
- XXXXXXXXX 9999999 99999.99 99999.99
- XXXXXXXXX 9999999 99999.99 99999.99
- XXXXXXXXX 9999999 99999.99 99999.99
- Writing Client
- Information
- Standard header
- included
- Program Compiles 2 Program does not have any error
- Program Executes 2
- Data Output is Correct 5 The data is written and formatted correctly
- GUI is Correct 5
- Subtotal 15
- STEP 2: Reading in Client
- Information
- 1) Create a class called Client, the Client class must contain attributes for Client name, Client ID,
- starting balance, and closing balance, and all other accessor/mutator/constructor functions as
- necessary.
- 2) Assume you have a client.txt file with the following sample information.
- Charles Smith|100235|5700.75|1200.00
- James Peterson|320056|349.56|4005.56
- Francis Lewis|400556|7500.00|456.23
- William Burgess|45399|5000.00|1245.56
- Philip Wilson|10090|10000.00|2300.75
- James Brown|34291|25000.45|31454.86
- 3) Create a Client ArrayList to process input records in main().
- 4) Use a for loop to read in the information from client.txt.
- 5) The GUI to this program should look similar to this:
- 6) Once the user hits the display button, everything read in from the file should display in the
- Console window in this format.
- Client Name Client ID Starting Balance Closing Balance
- XXXXXXXXX 9999999 99999.99 99999.99
- XXXXXXXXX 9999999 99999.99 99999.99
- XXXXXXXXX 9999999 99999.99 99999.99
- Reading in Client
- Information
- Standard header
- included
- Program Compiles 2 Program does not have any error
- Program Executes 2 Program runs without any error
- Client ArrayList used 3
- Data Read in Correctly 3
- GUI is Correct 4
- Subtotal 15
- STEP 3: Snowman! Back to Top
- Use the many draw methods provided to you by Java and draw a Snowman—be as creative or as
- basic as you would like, as long as the final result resembles a snowman. It doesn’t have to
- necessarily look exactly like this, but this is the minimum you should achieve with your drawing.
- 1) You must have at least three circles in your project.
- 2) You must have at least a line, a polygon, an oval, or a rectangle.
- 3) In addition to your snowman, you should also use drawString to draw some text.
- 4) Use draw or fill and the color class as you see fit.
- Hint: frame.getContentPane().setBackground(Color.blue); //This is the code you need to set the
- frame’s background color.
- Download: http://solutionzip.com/downloads/cis355a-week-5-ilab/
Add Comment
Please, Sign In to add comment