CIS355A Week 5 iLab GUI Graphics and File I/O

$ 25

CIS355A Week 5 iLab GUI Graphics and File I/O

Scenario/Summary
In this lab, you will create one project that reads from a file, one project that writes to a file, and one project drawing a snowman.

iLAB STEPS
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 Activity Report
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

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 Activity Report
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

STEP 3: Snowman!
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. Have Fun!

1000 in stock

SKU: CIS355AILAB5N Category:

Description

CIS355A Week 5 iLab GUI Graphics and File I/O

Scenario/Summary
In this lab, you will create one project that reads from a file, one project that writes to a file, and one project drawing a snowman.

iLAB STEPS
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 Activity Report
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

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 Activity Report
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

STEP 3: Snowman!
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. Have Fun!

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.