Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

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

Students also viewed these Databases questions

Question

How did technology increase U.S. economic growth in the 1990s?

Answered: 1 week ago