Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a UML for the IcecreamStore class before coding ( use a pencil, pen, or ruler ) Develop a class called IcecreamStore that will use

Create a UML for the IcecreamStore class before coding (use a pencil, pen, or ruler)
Develop a class called IcecreamStore that will use array fields to store the username and password, names of the items, and their unit costs. It will also contain a field for tax with a rate of 8%. You should create three arrays namely a 2-dimensional array for the username and password with entries username, password, and Baskin and 100 Chambers respectively. A regular array for the items names (you create any 4 types) and another array for the items prices (You create any 4 prices). In addition, the class will contain 7 methods: one to return the username, another to return the password, another to return a price given an item name, another to return the names of the items, another to calculate the cost, another to calculate the taxes, and another to calculate the total cost. (Note: you will need to determine the parameters and return types of your methods)
Develop a JavaFX application that uses the IcecreamStore class. The program will do the following: (Note: you will have to use the methods in the IcecreamStore class in the demo)
Ask a user to enter her username and password. If it is correct it will proceed to b, otherwise, it will prompt the user until the entries are correct. You should use any controls to do this.
displays a menu of the list of items and their costs, sold by the pizza store. You can use a gridpane.
Accept an item and quantity to buy from the user. You can use textfields.
After the user clicks a button, it will display the pre-cost of the items, the taxes on the item, and the total cost
Include user validation for all your user data entries

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

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

=+function g such that A[ x (0, 1): f(x) + g(x)]

Answered: 1 week ago

Question

5. Have you stressed the topics relevance to your audience?

Answered: 1 week ago