Objective Develop skills to design and implement Graphical User Interfaces (GUIs) using JavaFX Problem Design and develop a GUI using JavaFX for a Stock application. The application should take stock...

1 answer below »
attached


Objective Develop skills to design and implement Graphical User Interfaces (GUIs) using JavaFX Problem Design and develop a GUI using JavaFX for a Stock application. The application should take stock symbol, stock name, current price, and last closing price from the user of the application and display the stock name and change in price as percent increase or decrease. Requirements 1. Read the handout carefully and design GUI for the application. It is your own original design [25 points] 2. Develop JavaFX application to implement the GUI designed in requirement 1 [75 points] Coding requirements Design and develop Stock class that models stock objects. Every stock object has a stock symbol, stock name, current price of the stock, and previous closing price of the stock. Characteristics for a stock object include 1. Stock symbol is modeled as a String object 2. Stock name is modeled as a String object 3. Current price of the stock is modeled as Currency 4. Last closing price of the stock is modeled as Currency 5. No-arg constructor 6. A constructor that creates a stock object with a specified symbol, name, and current price 7. Methods to set and get instance properties of a stock object. 8. A method named getPriceChangePercent ( ) that returns the change as percentage from the previous closing price to the current price. JavaFx GUI for the Stock application should 1. Ask the user “Will you like to create a stock object?”. For “yes” response the program continues to step 2 otherwise the program displays the message “Thank you for using the Stocks application” and asks the user “Will you like to create a stock object?”. 2. Asks and takes stock symbol, stock name, and current price from the user and a. Creates a stock object with the input values provided the current price is greater than zero b. Sets the previous closing price to a random value between 10.0 and 50.0 c. Computes change from previous closing value to the current value as percentage. d. Displays the stock object as Stock symbol: Stock name: Previous closing price: Current price: Change in price: Note: Change in price should be displayed with + sign if it is an increase and with – sign if it is a decrease. e. On the same window where the Stock object is displayed, displays the message “Will you like to create a stock object?”. For “yes” response the program continues to step 2 above otherwise the program displays the message “Thank you for using the Stocks application” and asks the user “Will you like to create a stock object?”. Submission. Assessment Submitted work will be assessed for the following: 1. GUI design---------25 points 2. Implementation ---------40 points a. Stock class --- 10 points b. JavaFX App --- 30 points 3. Functionality---------25 points 4. Code quality---------10 points
Answered 1 days AfterJul 26, 2021

Answer To: Objective Develop skills to design and implement Graphical User Interfaces (GUIs) using JavaFX...

Pulkit answered on Jul 28 2021
136 Votes
new/.DS_Store
new/.idea/.gitignore
# Default ignored files
/shelf/
/workspace.xml
new/.idea/compiler.xml




















new/.idea/description.html
Simple JavaFX 2.0 application that includes simple .fxml file with attached controller and Main class to qui
ck start. Artifact to build JavaFX application is provided.
new/.idea/encodings.xml




new/.idea/gradle.xml


new/.idea/libraries/javafx_sdk_11_0.xml









new/.idea/libraries/lib.xml












new/.idea/misc.xml










new/.idea/modules.xml






new/.idea/project-template.xml

IJ_JAVAFX_VERSION
new/.idea/uiDesigner.xml


























































































































new/.idea/vcs.xml




new/.idea/workspace.xml



















































































































































localhost
5050























































...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here