Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

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

Case study is hiring on the basis of looks justified or

Case Study: Is Hiring on the Basis of Looks Justified or Discriminatory? Complete the answers to the five questions at the end of Case 35, "Is Hiring on the Basis of Looks Justified or Discriminatory?, pp. 708-711. 1. Wh ...

Policy advocacy presentationselect a health policy issue

Policy Advocacy Presentation Select a health policy issue from the list below. Analyze the policy issue using the given criteria. Assume that you must advocate for or argue against the policy issue in front of a Congress ...

Since app marketplaces work so well with mobile devices it

Since app marketplaces work so well with mobile devices, it is difficult to find alternate sources of software. Will this end software piracy since mobile apps are not distributed on DVDs and have to be purchased within ...

Q1 what types of things might you find in a quality early

Q1. What types of things might you find in a quality early childhood education and care environment? Q2. How can a flexible program support children's unplanned interests? Q3. Why is it important that we encourage childr ...

Cyber crime and security discussion1 cybercrime is a

Cyber Crime and Security Discussion 1) Cybercrime is a growing global problem, but some nations are much more advanced in their approaches to combating it than others. The availability of technology, the sophistication o ...

Read lesson five cohesion and coherence and lesson six

Read "Lesson Five" (Cohesion and Coherence) and "Lesson Six" (Emphasis ) in Style: Ten Lessons in Clarity and Grace by Joseph M. Williams. (attached files) Then, draft an executive summary for each chapter and combine th ...

Assume that you have been tasked with preparing a cultural

Assume that you have been tasked with preparing a cultural brief for an upcoming trip that will put you and your travel companions in touch with three different societal clusters. Choose three clusters other than the one ...

Ethics and globalization of health care and electronic

"Ethics and Globalization of Health Care, and Electronic Medical Records Versus Personal Health Records" Please respond to the following: • From the e-Activity, examine the primary reasons why medical tourism is becoming ...

Ue the folloing disorder to create a power pointe

Use the folloing disorder to create a Power Pointe: Obsessive-compulve disorder Create a Microsoft PowerPoint presentation in which you compare and contrast the major approaches to clinical psychology-psychodynamic, cogn ...

Assignment issues in neurosciencein the visual ability

Assignment : Issues in Neuroscience In the Visual Ability test, a split-brain patient was shown an image in the left visual field but could not name the object. Explain why and identify the specialized functions that wer ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate