07 Inclass test Mark Dixon 1 Inclass Test

  • Slides: 6
Download presentation
07 – In-class test Mark Dixon 1

07 – In-class test Mark Dixon 1

In-class Test • • • Date: Monday 5 th November 2012 Time: 11: 05

In-class Test • • • Date: Monday 5 th November 2012 Time: 11: 05 -120: 55 Location: SMB 109 Type: Individual 40% of module mark Open book: ü Web-site: mdixon. soc. plymouth. ac. uk ü Printed slides ü Robbins J (2006) HTML & XHTML Pocket Reference (3 rd edition). O'Reilly. ISBN: 978 -0 -596 -52727 -3 ü Bergsten H (2001) Java. Server Pages Pocket Reference. O'Reilly. ISBN: 978 -0 -596 -00231 -2 ü Gennick J (2006) SQL Pocket Guide (2 nd edition). O'Reilly. ISBN: 978 -0 -596 -52688 -7 ü Google • Do not: û Communication with other people (students) by any means (i. e. face-to-face, phone, text, email, chat rooms, forums, etc. ) Mark Dixon 2

Question 1: Body Mass Index SPECIFICATION • User Requirements – need to know body

Question 1: Body Mass Index SPECIFICATION • User Requirements – need to know body mass index (BMI), given the person’s height, and weight • Software Requirements – Functional: – User should be able to enter their height (in feet and inches), and weight (in stone and pounds) – the BMI should be calculated and displayed – an interpretation of the BMI should also be displayed (either normal, underweight, or overweight) – Non-functional must use JSP server-side code (not Java. Script) Mark Dixon 3

Question 1: Body Mass Index 1. Calculate height in metres = ((feet × 12)

Question 1: Body Mass Index 1. Calculate height in metres = ((feet × 12) + inches) * 0. 0254 1 inch = 2. 54 cm = 0. 0254 m 2. Calculate weight in kg = ((stone * 14) + pounds) / 2. 2 1 kg = 2. 2 lbs 3. Calculate BMI = weight ÷ (height × height) 4. Classification <20 underweight 20 -25 normal >25 overweight Mark Dixon 4

Question 2: Wildlife SPECIFICATION • User Requirements – Manage animal information • Software Requirements

Question 2: Wildlife SPECIFICATION • User Requirements – Manage animal information • Software Requirements – Functional: – Animal List page: should list all animal common names and scientific names in the database (each item should be a link to the animal page). – Animal page: should list all details for specific animal. – Non-functional must use JSP server-side code (not Java. Script) Mark Dixon Wildlife. mdb in Resources on web-site 5

Marking Scheme Total • BMI – HTML – Java code • Wildlife – List

Marking Scheme Total • BMI – HTML – Java code • Wildlife – List page – Details page Mark Dixon 40 marks 20 marks (8 marks) (12 marks) 20 marks (10 marks) 6