Ask Question, Ask an Expert


Ask Homework Help/Study Tips Expert

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

2376_Input form.jpg

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

Some additional constraints:

1. Use the same name, “score”, for each of the input fields which accepts a grade.

2. Permit multiple options to be chosen from drop down list.

3. Configure the form to submit a POST request when data is submitted, as we are working on the assumption that results would be “posted” into a database. Name like “AssessGrades” for the action which takes place when the form is submitted.

You now require to create a Servlet that would process Post request which is generated by the form submission.

Don’t forget to put it into a new packagewhen you create it.

Use the separate JavaBean to actually process grades into an aggregate mark. Though, you would require to extract raw data from the request message in the Servlet you have just created.

Extracting student name must be easy for you. But you require a little more information about the cases for data named “score” and the data from the Drop down list, where there copuld be multiple values under same name. What would happen here is that the form would associate the array of values with the respective name. You would use a slightly different method to get this array. Like:
String[] scores = request.getParameterValues("score");

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

1.  The name of the student;

2.  The scores from each criterion;

3.  The selected feedback statements.

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

Create the new java class called (for ex) Graderin a package called beans. This would have two attributes/fields: an array ofgrades; and a String that is the final_grade. Declare these.

You could now use NetBeans to create the “getter” and “setter” methods in a style which conforms to the JavaBeans standard. Right click in the editor and choose “Refactor/Encapsulate Fields”. You would not want a public “setter” method for final_grade, so deselect this. This is because the final grade is computed. Now your task is to compute this grade as follows.
At first, compute the mean of all the grades.

Then assess the final grade according to the following rules: Average ≥70 => “A”

60 ≤Average < 70 => “B”
50 ≤Average < 60 => “C”
40 ≤Average < 50 => “D” Average < 40 => “Fail”

You must now be able to use this Bean in the Servlet to get the overall final grade. Having find outd this, then create a response html document that reports back on the outcome. That report should 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. 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.

Homework Help/Study Tips, Others

  • Category:- Homework Help/Study Tips
  • Reference No.:- M92006

Have any Question? 

Related Questions in Homework Help/Study Tips

Impact of child rearingdescribe the impact of child-rearing

Impact of Child Rearing Describe the impact of child-rearing styles on child development, note cultural variations in child-reading beliefs and practices. Respond in 400-600 words with a scholarly reference source.

Write a paper on hinduism on any topic related to the

Write a paper on Hinduism on any topic related to the subject but get it approved by me asap. 10 pages, double spaced.

Instructionsthe student is required to make a reply comment

INSTRUCTIONS: The student is required to make a reply comment to two other student's posts. (one reply comment about Student 1's post, and one reply comment about Student 2's post). Word-count required for each response: ...

Review the video above and answer the following questionsdo

Review the video above, and answer the following questions: Do you feel that health care providers in the United States use this "upstream" approach? Why or why not? How can analyzing the social situation affect your per ...

Based on a review of the readings and other research on

Based on a review of the readings and other research on prevention, what direction would you advise policy makers to support to promote for the purposes of a) promoting the health of the U.S. population and b) achieving ...

Assignment evaluation plan with theory measurement and

Assignment: Evaluation Plan With Theory, Measurement, and Metaevaluation Written Portion 1. Discuss ways and a rationale for including supporting theory in the report, especially as the theory relates to the object of yo ...

Assignment instructionsfirst select any journal article a

Assignment Instructions First, select any Journal Article a relevant article to the course regarding the regulation of, or response to, Weapons of Mass Destruction and conduct an Article Review.. It should be related to ...

1 why should we be cautious about reports of research that

1. Why should we be cautious about reports of research that are published in the popular media and posted on the world wide web? 2. What are the three central characteristics of good writing? 3. Why should authors avoid ...

What are some of the organizational differences between

What are some of the organizational differences between correctional mental health delivery systems? Why is an understanding of these differences important? Is there any particular delivery system that appeals to you mor ...

1 the management team where you work has assigned you the

1) The management team where you work has assigned you the task of "Cost Justification" to decide whether implementation of an ergonomic program in your workplace is beneficial. How should you prepare the case to make th ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen