Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 . Create a UML for the ClothingStore class before coding ( use a pencil, pen, or ruler ) 2 . Develop a class called

1. Create a UML for the ClothingStore class before coding (use a pencil, pen, or ruler)
2. Develop a class called ClothingStore 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)
3. Develop a JavaFX application that uses the ClothingStore class. The program will do the following: (Note: you will have to use the methods in the ClothingStore class in the demo)
a) 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.
b) displays a menu of the list of items and their costs, sold by the pizza store. You can use a gridpane.
c) Accept an item and quantity to buy from the user. You can use textfields.
d) After the user clicks a button, it will display the pre-cost of the items, the taxes on the item, and the total cost
e) 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

Progress Monitoring Data Tracking Organizer

Authors: Teacher'S Aid Publications

1st Edition

B0B7QCNRJ1

More Books

Students also viewed these Databases questions

Question

What is the orientation toward time?

Answered: 1 week ago

Question

4. How is culture a contested site?

Answered: 1 week ago