Developing a graphical user interface in programming is paramount to being successful in the business industry. This project incorporates GUI techniques with other tools that you have learned about in this class.
Your application must include at least three tabs. The user will choose wood flooring or carpet, enter the length and width of the floor, as well as the customer name and address. The application will compute the area of the floor and the cost of the flooring considering that wood floor is $20 per square foot and carpet is $10 per square foot. A summary should be displayed, either in a tab or another window, listing the customer name and address, floor selection, area, and cost. This information should also be stored in the MySQL database table. The program should validate that all information is entered and that the length and width are numeric values. Any numeric or currency values must be formatted appropriately when output. Recommendations for the components used for input are
radio buttons-flooring type (wood or carpet);
text fields-customer name, customer address, floor length, and floor width; and buttons-calculate area, calculate cost, submit order, display order summary, display order list.
The MySQL database table is called flooring and has the following description.
Field |
Type |
CustomerName
|
varchar(30) |
CustomerAddress |
varchar(50) |
FlooringType
|
varchar(10)
|
FloorArea
|
double
|
FloorCost
|
double |
In addition to entering new customer orders, your application should list all customer orders stored in the database. These will be viewed as a list, in a text area, and will not be updated by the user. Include screenshots. For each function, show what is its purpose and sample execution, with a screenshot.
The following grading rubric will be used for the code portion of the project.
Flooring Application Points DescriptionStandard header included
Must contain program name, student name, and description of the programProgram compiles
Program does not have any errorProgram executes
Program runs without any errorIncludes at least 3 tabs
Three or more tabs are usedIncludes components for all required inputs
Components for customer name, address, floor type, length, width, area and cost with buttons to calculate area, calculate cost, display order summary, and display order list are included Area calculation
Area is calculated correctlyCost calculation
Cost is calculated correctlyIncluded data validation
If no values or non-numeric values are entered, the proper error message should display.Correct data is stored in the database table
When values are entered, the data is stored correctly in the database table.Customer orders are displayed in a list
All records saved to the database are displayed in a list with appropriate formatting.Correct output is displayed
When values are entered, the order summary is shown with appropriate formatting.