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

Liability and quality please respond to the following as a

"Liability and Quality" Please respond to the following: As a healthcare administrator, you have been tasked with researching your hospital's compliance in the proper reporting of both medical and non-medical errors made ...

Humans and climate changehuman activities may contribute to

Humans and Climate Change Human activities may contribute to climate change in several ways. The largest known contribution, from humans to the atmosphere, comes from burning fossil fuels, which releases carbon dioxide a ...

1 for the equilibrium system shown belowkc 14 x 10-4 if the

1. For the equilibrium system shown below,Kc= 1.4 x 10 -4 . If the concentration of A is 0.24 mol/L, what is the concentration of D? 3 A(g) + B(s) ⇔ C(s) + 2 D(g) 2. A student placed the same chemical amount of SO 2(g)   ...

1chapter 9 communicating to get the job you want 1 locate

1.Chapter 9 Communicating to get the Job you want 1. Locate two resume help centers on the internet. Create a list of 5 tips for creating a resume. 2. Answer the following questions as if you were responding interviewing ...

Read the following scenariowoodys veneer factory has

Read the following scenario: Woody's Veneer Factory has contacted you because the board wants their organization to be evaluated to determine the reasons for loss of money, increases in garbage fees, and loss of producti ...

Perform an analysis of an environmental issueprepare a 5-

Perform an analysis of an environmental issue. Prepare a 5- to 8-slide PowerPoint presentation with detailed speaker notes.  If you first discuss options with your faculty member, you are also welcome to use a tool such ...

Violence and drugs in centervaleassignment lasa violence

Violence and Drugs in Centervale Assignment: LASA: Violence and Drugs in Centervale You have been working as a police officer for the Centervale Police Department for two years. You are on your nightly patrol in your mar ...

Nature vs nurturethe debate concerning the influence of

Nature vs. Nurture The debate concerning the influence of inherited traits and abilities compared to the influence of environment on human development has been argued for decades. The required reading this week provides ...

Interactions of hazardous materialsquestiona truck

Interactions Of Hazardous Materials Question A truck transporting concentrated acetic acid was involved in a non-injury accident resulting in the release of 300 gallons of acid. Part of the mitigation is to neutralize th ...

Assignmentyour boss has chosen you to do some investigative

Assignment Your boss has chosen you to do some investigative work for him to further your knowledge base within your new position in the company. He has asked you to do a little research on the Federal Register and its u ...

  • 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

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

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