Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

GUI Project Instructions Ice Cream Order Project Create a JavaFX GUI application named IceCreamOrder that helps you to determine the cost of one ice cream

GUI Project
Instructions

Ice Cream Order Project

Create a JavaFX GUI application named IceCreamOrder that helps you to determine the cost of one ice cream order. The application should have the following appearance when first started (note that chocolate is selected by default):

image text in transcribed

The above GUI is a scene that holds an HBox, and the HBox in turn holds three TitledPane objects (with the titles "Flavors", "Toppings", and "Order").

The user can select flavor and any number of extras. When they press the Calculate Cost button, then a dialog box with the following style of content it presented to the user:

image text in transcribed

All ice cream flavors are $2.25. Each extra is 0.50. So, the in the example above, the cone is 2.25, nuts are 0.50 and cherries are 0.50, for a total of 3.25. The Michigan 6% tax is added on for a total of 3.45.

One specific order can be saved at any time. When an order is saved, the information stored on the disk is the flavor and the extras. The file should be named icecream.txt, and the file will always have exactly three lines of text, of the general format:

Flavor Nuts Status Cherries Status

The first line is either "Vanilla", "Chocolate" or "Strawberry".

The second line is always "With_Nuts" or "Without_Nuts".

The third line is always "With_Cherries" or "Without_Cherries".

So, for example, a saved order might look like:

Chocolate Without_Nuts With_Cherries

At any point in time the user can press the Restore button, and the last saved order will be displayed on the user interface. If there is no file available (nothing has been saved yet) and the user presses Restore, then have the following Alert ERROR message shown to the user:

image text in transcribed

Video - Introduction to the App

Video - Review of Scanner and PrintWriter

If you are not completely comfortable with File I/O, then here is a YouTube video that uses Scanner and PrintWriter to perform some file I/O in a couple of short programs.

Make sure you look at the rubric associated with this assignment. To see the rubric in D2L, click Assessments, click DropBox, then click GUI Project.

Start Date
Mar 20, 2018 3:00 PM
Due Date
Apr 22, 2018 11:00 PM

image text in transcribedHide Rubrics

Rubric Name: GUI Project

Style Level 2 = Met or exceeded expectations 1 = Below expectations 0 = Did not complete
Used the required class name of IceCreamOrder, spelled correctly (same upper and lowercase letters, no extra symbols or numbers). 4 points 2 points 0 points
Don't leave large numbers of blank lines in your Java code (you can use a single blank line to separate one part of the program from another, but don't use multiple blank lines). 4 points 2 points 0 points
Variable names start with a lowercase letter. 4 points 2 points 0 points
Use "public static final" for all numeric constant values, AND also for the name of the "icecream.txt" data file. These names should be all uppercase with underscores between the words. 4 points 2 points 0 points
Use meaningful names for variables, classes and methods. Avoid names like x and y. 4 points 2 points 0 points
Put a javadoc, /** to */, comment at the start of every class. The main class (the class that has the main method) should include a short description of the class followed by the author's name, the current date, and the name of the course. 4 points 2 points 0 points
Indentation 4 points 2 points 0 points
Inline comments should line up with the code just below the inline comment 2 points 1 point 0 points
Compiles Level 2 = Met or exceeded expectations 1 = Below expectations 0 = Did not complete
Program compiles without any errors reported. Program uses JavaFX and not Swing. 30 points 15 points 0 points
Running the program Level 3 Level 2 Level 1
GUI has three radio buttons, two checkboxes, and a three buttons as shown on the requirements page. 8 points 4 points 0 points
The components are grouped in an HBox of three TitledPane containers, and the TitledPanes have titles of "Flavor", "Toppings" and "Order". 2 points 1 point 0 points
The three radio buttons are in one toggle group. 4 points 2 points 0 points
Clicking the Calculate button calls an event handler that displays a dialog box. 8 points 4 points 0 points
The calculations are correct for all combinations of extras. 4 points 2 points 0 points
The Michigan tax is calculated correctly. 2 points 1 point 0 points
Saves an order to file. 5 points 2.5 points 0 points
Restores an order from file. 5 points 2.5 points 0 points
If no file exists, then gives an appropriate error message to the user via an Alert. 2 points 1 point 0 points
All components look professional and are nicely formatted, such as monetary values are all shown will two digits after the decimal point. 5 points 2.5 points 0 points
Overall Score Level 2 80 or more Level 1 70 or more Level 0 0 or more

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

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions

Question

What is meant by 'Wealth Maximization ' ?

Answered: 1 week ago

Question

7. Understand the challenges of multilingualism.

Answered: 1 week ago