Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Complete the design, write the code, and test and debug adynamic web application using the MVC design pattern. Thisapplication will calculate the amount of material

Complete the design, write the code, and test and debug adynamic web application using the MVC design pattern. Thisapplication will calculate the amount of material and cost for aconcrete slab project.

PROGRAM BACKGROUND:

DIY vendors (like Home Depot or Lowes) like to provide easytools so that their customers can determine the right amount ofmaterial that they need for their home improvement projects. Forexample, a homeowner who wishes to lay down a concrete slab willneed to determine how many bags of concrete that they need to builda concrete slab.

For this assignment, you will create a simple calculator thatwill help customers calculate the number of concrete bags they needfor 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 ofconcrete mix.
  3. Cubic yards = width in yards x length in yards xthickness in yards. Note: your formula should include theappropriate conversions for input units in order for the output tobe in cubic yards.
  4. The number of bags and estimated costs should be calculatedusing the following data on the following:

THINKING BEFORE PROGRAMMING:

Before you start coding your application using Eclipse, do thefollowing and include them as files in your assignment. You canplace them in a folder calleddocumentation within the webapp folder of your project.

  • Hand Calculations: Try working through theproblem and make at least part of it on paper or an electronicdocument. You should thoroughly understand how to solve a problemyourself. Otherwise, you won't have any idea how to write the codecorrectly.
  • IPO Table: Make one or more IPO tables foryour application. I = input, P = process, O = Output
  • Component Diagram: A component diagram showingthe main components (files) in your project and the order in whichthey will execute.
  • Wire Frames: Wireframe diagrams for the twoviews to get an idea of what you want them to look like.

PROGRAM REQUIREMENTS:

Your solution must include the following requirements:

Two use cases:

  • A static use case to start the program by providing a form foruser input
  • A dynamic use case to process the user input and delivercorresponding output

MVC for the dynamic use case:

  • Controller component - a servlet to receivethe request and oversee the processing
  • View component - a jsp to receive create theitems for sending back to the client on the response
  • Model components - one or more java classes tomodel the real-world objects from the scenario

Use a single, external CSS file to make your two views looknice.

For full credit, your application must be fully tested,debugged, and work correctly for any values that your instructorsmay input.

TESTING AND DEBUGGING:

Testing and debugging is the process of trying your applicationwith known inputs that produce known outputs.

A good habit to develop is: "Code a little, test, repeat" Thenafter each test, you can move forward to the next thing withconfidence.

Obtain some examples of input related to correct output that youcan use with your tests. It's often important to test more thanonce with different values. So, if you have time, get another setof test input/output.

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

Design Operation And Evaluation Of Mobile Communications

Authors: Gavriel Salvendy ,June Wei

1st Edition

3030770249, 978-3030770242

More Books

Students also viewed these Programming questions

Question

How are interest rates used to allocate capital among firms?

Answered: 1 week ago