Question: Class in this week's practice program, we are stepping up our game a bit and we are going to begin seeing a more complex, but

Class in this week's practice program, we are "stepping up our game" a bit and we are going to begin seeing a more complex, but more "real world" object oriented program structure, using a 3-tiered (business, presentation, data layer). The good news is that for the Pizza Practice program you are not going to start from scratch, and everything you are being asked to do in this program is demonstrated in the example Circle program.

If you have any questions or need any help post a question in the Programming/Practice Help discussion in the Introduction & Resources module.

Start by downloading the attached "Week5_Pizza_FileIO_Shell.zip" program, unzip the program and open it up into Netbeans. The shell project will compile and execute, and even read a stream file and populate the list with data from a string file.

Click to download the Week5_Pizza_FileIO_Shell.zip

Steps

You are then asked to complete the following TODO action items:

Review the FileStream Class and:

in the readlist method add the statements to add a string to the array list

in the writeData method add the statement to write the string to the file

Review the PizzaFileIO class and:

In the writeData method add code to add the missing order fields to the record

In the readData method add code to add the missing fields to the order object

Review the OrderList class

In the remove method add statements to remove the order from the list

In the save method add the statement to write the array list to the file.

Graphical User Interface

Update the given graphical user interface to:

Save the list in the Order list to a file using both types of file I/O (streams and objects).

Retrieve the list from the file and display the list

Add a menu items Save Orders and Retrieve Orders

Update retrieveOrders method to retrieve the list from the orderList object.

Class in this week's practice program, we are "stepping up our game"

a bit and we are going to begin seeing a more complex,

but more "real world" object oriented program structure, using a 3-tiered (business,

presentation, data layer). The good news is that for the Pizza Practice

program you are not going to start from scratch, and everything you

are being asked to do in this program is demonstrated in the

example Circle program. If you have any questions or need any help

post a question in the Programming/Practice Help discussion in the Introduction &

Resources module. Start by downloading the attached "Week5_Pizza_FileIO_Shell.zip" program, unzip the program

and open it up into Netbeans. The shell project will compile and

execute, and even read a stream file and populate the list with

data from a string file. Click to download the Week5_Pizza_FileIO_Shell.zip Steps You

are then asked to complete the following TODO action items: Review the

FileStream Class and: in the readlist method add the statements to add

a string to the array list in the writeData method add the

statement to write the string to the file Review the PizzaFileIO class

and: In the writeData method add code to add the missing order

fields to the record In the readData method add code to add

the missing fields to the order object Review the OrderList class In

the remove method add statements to remove the order from the list

In the save method add the statement to write the array list

to the file. Graphical User Interface Update the given graphical user interface

to: Save the list in the Order list to a file using

both types of file I/O (streams and objects). Retrieve the list from

the file and display the list Add a menu items Save Orders

10 13 18 datalO new DataIO): 10 13 18 datalO new DataIO)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!