Create a simple web application that collects gradings

Assignment Help PHP Web Programming
Reference no: EM13347763

Create a simple Web Application that collects gradings under a number of criteria, and then evaluates an aggregate mark. Without any styling applied, the input form needs to look like this:

Presentation, Writing Style, Technical Content and Depth of Analysis could each be marked with a value between 0 and 100. Prepare the above form.

Some additional constraints:

1.  Use the same name, "score", for each of the input fields that accepts a grade.

2.  Allow multiple options to be selected from the drop down list.

3.  Configure the form to submit a POST request when the data is submitted, as we are working on the assumption that the results will be "posted" into a database.

Prepare a Servlet that will process the Post request that is generated by the form submission.

Use a separate JavaBean to actually process the grades into an aggregate mark. Thus, you will need to extract the raw data from the request message in the Servlet you have just created.

Extracting the student name could be easy for you. But you need a little more information about the cases for data named "score" and the data from the Drop down list, where there will be multiple values under the same name. What will happen here is that the form will associate an array of values with the respective name. You will to use a slightly different method to get this array. For example:

String[] scores = request.getParameterValues("score");

So, start to work on the doPostmethod in your servlet now. You need to get from the request object:

1. The name of the student;

2. The scores from each criterion;

3. The selected feedback statements.

You will also need to parse the string representation of each score into a Double. Having got this far, you need to turn your attention to the JavaBean that will aggregate the scores into a single grade.

Prepare a new java class called Graderin a package called beans. This will have two attributes/fields: an array ofgrades; and a String that is the final_grade. Declare these.

Use NetBeans to prepare the "getter" and "setter" methods in a style that conforms to the JavaBeans standard. Right click in the editor and select "Refactor/Encapsulate Fields". You can not want a public "setter" method for final_grade, so deselect this. This is because the final grade is evaluated.

Firstly, evaluate the mean of all the grades.

Then assess the final grade according to the subsequent rules: Average ≥70 => "A"

60 ≤Average < 70 => "B"

50 ≤Average < 60 => "C"

40 ≤Average < 50 => "D" Average < 40 => "Fail"

You could be able to use this Bean in the Servlet to get the overall final grade. Having evaluated this, then create a response html document that reports back on the outcome. That report could include:

1.  The name of the Student

2.  The final grade

3.  The feedback comments.

You can save a lot of network traffic and loading on the server side, if you check that valid data has been entered before the form is submitted. So, I would like you to include validation on the client side by adding some JavaScript into the index page to:

1. Check a name has been entered;

2. Check the value of each of the score fields is numerical and between 0 and 100.

Finally, once you have checked all the functionality is correct,use a bit of CSS magic to make both input and response forms look more attractive.

Reference no: EM13347763

Questions Cloud

Question 1consider the problem of operating a warehouse by : question 1consider the problem of operating a warehouse by buying and selling the stock of a certain commodity in order
Create a multi-threaded competition in which opposing robin : create a multi-threaded competition in which opposing robin hoods will attack one another and try to take each others
In gas-shy-solid fluidization it is frequently common to : in gas-shy-solid fluidization it is frequently common to have a wide size distribution of particles present in the
Source - papersssrncompapertafabstractid2061891why do you : source - papers.ssrn.compaper.taf?abstractid2061891.why do you think in 1790models were required with patent
Create a simple web application that collects gradings : create a simple web application that collects gradings under a number of criteria and then evaluates an aggregate mark.
Question a nbspone of your old english lit professors has : question a nbspone of your old english lit professors has been elected governor of baxter a cute little new england
Question 1 a normal population has a mean of 78 and a : question 1 a normal population has a mean of 78 and a standard deviation of 6. you select a sample of 50. evaluate the
Question 1a ceos usually talk about developing a learning : question 1a. ceos usually talk about developing a learning organization? what is meant by a learning organization?b
Implement the delivery company using the classes given in : implement the delivery company using the classes given in the class diagram above. construct a cpp file named

Reviews

Write a Review

PHP Web Programming Questions & Answers

  Random integral numbers based on normal distribution

Prepare a system to generate random integral numbers based on normal distribution. Study Data Generator's structure and extend number generation type to activate normal distribution.

  Shopping cart program for web applications class

Shopping Cart program for web applications class. Allows user to browse while keeping track of the items in which they will purchase at the end on the order page link and this will give a final price for all items.

  Create a web site for an apple farm

Create a web site for an apple farm. Create an HTML5 form allowing visitors to create an account with the site. Account details are to be stored in your MySQL database. Information should be stored in a secure way.

  Develop a dynamic website open university

Develop a dynamic website Open University

  Sample website project

This website consists of three sections: a narrative, a storyboard, and a business Website.

  Online banking application

Designing and developing a web applications The company you are working has secured a contract with a local banking group to develop an ONLINE BANKING APPLICATION using PHP and MySQL.

  Design a dynamic database

Design a dynamic database using Mangodb, html , and php.

  Show the accessibility and usability of website

The webpage must have several menus about country Azerbaijan such as "About Azerbaijan" "History" "Geography" "Landscape" and "Accessibility" menu.

  Implement a web application

Implement a web application called CS320Starter, which is similar to the crowd funding platform Kickstarter where people raise funds for their projects.

  Prepare an ajax enabled web form

Prepare an AJAX enabled web form utilising a ListView control that will allow logged-in staff to list, edit, delete, insert magazine details for magazines from a selected magazine category.

  Create a very simple order system as a web application

Create a very simple Order System as a web application.

  Which of the following jsp expressions is valid

A JSP expression can contain any Java expression that evaluates to a String object, Java object, primitive type, primitive type or Java object

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd