Question
Please adapt the code below to JavaFX . Sample application's screenshots are given BELOW . This is a COMBINE of Java and JavaFX so JavaFX
Please adapt the code below to JavaFX. Sample application's screenshots are given BELOW. This is a COMBINE of Java and JavaFX so JavaFX IS NEEDED.
class CommisionEmployee { // private fields private String firstName; private String lastName; private String socialSecurityNumber; private double grossSales; private double commisionRate; // parameterized constructor public CommisionEmployee(String firstName, String lastName, String socialSecurityNumber, double grossSales, double commisionRate) { // checking if grossSales is > 0 and commisionRate >0 and =0 && (commisionRate > 0 && commisionRate 0 if(grossSales >=0) // assign value this.grossSales=grossSales; else // print message System.out.println("Sorry! Invalid Value..."); } // setter for commisionRate public void setCommisionRate(double commisionRate) { // check if commisionRate > 0 and 0 && commisionRate
EMPLOYEE SALARY CALCULATOR Choose Employee Type Salaried Employee First Name Hourly Employee Commission Employee Last Name Base Plus Commission Employee 5SN None Search/Update SSN Weekly Salary SALARY VALUE Wage Hours EMPLOYEE SALARY CALCULATOR Choose Employee Type Salaried Employee First Name John Gross Sales Last Name Smith Commission Rate 5SN Base Salary Search/Update SSN Weekly Salary SALARY Wage Hours Add \begin{tabular}{|l||l|l} Search by SSN & Update by SSN & Clean textfields \end{tabular} 1- Your program should store, add, update and search salary information of all type employees as shown in figures above. Use random access file(.dat) or text file (.txt) for reading and writing, an employee information. - Program should perform Add, Search by SSN, Update by SSN CleanTextFields operations. - SSN text field should be "read only" and SSN should be set in the code for each record, do not take from user. - When program starts, read all records from random access file or text file and save each record in Employee []. (Employee array) - Update both Employee [] and random access file or text file when add and update operations happen. - Add: Select employee type from dropdown list. According to your selection, related text fields are enabled, unrelated text fields are disabled (Search/Update SSN text field always enabled). Enter employee information into enabled text fields, then press "add button". Your employee record will be written into file. Also add that record into your Employee[] - Search by SSN: Enter SSN of employee whose information you want to reach, into "Search/Update SSN text field". Press "Search by SSN button". Then all information related to the employee will be displayed, such as employee type, first name, last name, SSN, salary etc.. - Update by SSN: Enter SSN of employee whose information you want to update, into "Search/Update SSN text field". Enter other fields you want to update, then press "Update by SSN button". Employee record which is placed in file should be updated. Also, Employee[] should be updated. - Clean TextFields: Cleans all text fields
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started