For this part of the assignment you will complete the design, write the code and test and debug a dynamic web application using the MVC design pattern. This application will calculate the amount of material and cost for a concrete slab project.
DIY vendors (like Home Depot or Lowes) like to provide easy tools so that their customers can determine the right amount of material that they need for their home improvement projects. For example, a homeowner who wishes to lay down a concrete slab will need to determine how many bags of concrete that they need to build a concrete slab.
For this assignment, you will create a simple calculator that will help customers calculate the number of concrete bags they need for a concrete slab project and an estimated cost.
1. Inputs: slab width in feet, slab length in feet, slab thickness in inches. One of three concrete bag sizes: 80 lb., 60 lb., and 50 lb.
2. Outputs: cubic yards of cement in the slab, the number of bags needed, the estimated cost of the bags of concrete mix.
3. Cubic yards = width in yards x length in yards x thickness in yards. Note: your formula should include the appropriate conversions for input units in order for the output to be in cubic yards.
4. The number of bags and estimated costs should be calculated using the following data on the following:
Bag Size | Cu. Yds. per Bag | Cost per Bag |
80 lbs. | 0.022 | $3.75 |
60 lbs. | 0.0167 | $2.83 |
50 lbs. | 0.0138 | $2.45 |
Before you start coding your application using Eclipse, do the following and include them as files in your assignment. You can place them in a folder called documentation within the webapp folder of your project.
Your solution must include the following requirements:
Two use cases:
MVC for the dynamic use case:
Use a single, external CSS file to make your two views look nice.