Mark Dixon 1 07 In-class test. Mark Dixon 2 In-class Test Date: Monday 5 th November 2012 Time:...

6
Mark Dixon 1 07 – In-class test

description

Mark Dixon 3 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 JavaScript)

Transcript of Mark Dixon 1 07 In-class test. Mark Dixon 2 In-class Test Date: Monday 5 th November 2012 Time:...

Page 1: Mark Dixon 1 07  In-class test. Mark Dixon 2 In-class Test Date: Monday 5 th November 2012 Time: 11:05-120:55 Location: SMB109 Type: Individual 40% of.

Mark Dixon 1

07 – In-class test

Page 2: Mark Dixon 1 07  In-class test. Mark Dixon 2 In-class Test Date: Monday 5 th November 2012 Time: 11:05-120:55 Location: SMB109 Type: Individual 40% of.

Mark Dixon 2

In-class Test• Date: Monday 5th November 2012• Time: 11:05-120:55• Location: SMB109• Type: Individual• 40% of module mark• Open book:

Web-site: mdixon.soc.plymouth.ac.uk Printed slides Robbins J (2006) HTML & XHTML Pocket Reference (3rd edition).

O'Reilly. ISBN: 978-0-596-52727-3 Bergsten H (2001) JavaServer Pages Pocket Reference. O'Reilly.

ISBN: 978-0-596-00231-2 Gennick J (2006) SQL Pocket Guide (2nd 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.)

Page 3: Mark Dixon 1 07  In-class test. Mark Dixon 2 In-class Test Date: Monday 5 th November 2012 Time: 11:05-120:55 Location: SMB109 Type: Individual 40% of.

Mark Dixon 3

Question 1: Body Mass IndexSPECIFICATION

• 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 JavaScript)

Page 4: Mark Dixon 1 07  In-class test. Mark Dixon 2 In-class Test Date: Monday 5 th November 2012 Time: 11:05-120:55 Location: SMB109 Type: Individual 40% of.

Mark Dixon 4

Question 1: Body Mass Index1. Calculate height in metres

= ((feet × 12) + inches) * 0.0254

2. Calculate weight in kg = ((stone * 14) + pounds) / 2.2

3. Calculate BMI = weight ÷ (height × height)

4. Classification<20 underweight20-25 normal>25 overweight

1 inch = 2.54cm = 0.0254m

1 kg = 2.2lbs

Page 5: Mark Dixon 1 07  In-class test. Mark Dixon 2 In-class Test Date: Monday 5 th November 2012 Time: 11:05-120:55 Location: SMB109 Type: Individual 40% of.

Mark Dixon 5

Question 2: WildlifeSPECIFICATION

• 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-functionalmust use JSP server-side code (not JavaScript)

Wildlife.mdb in Resources on web-site

Page 6: Mark Dixon 1 07  In-class test. Mark Dixon 2 In-class Test Date: Monday 5 th November 2012 Time: 11:05-120:55 Location: SMB109 Type: Individual 40% of.

Mark Dixon 6

Marking SchemeTotal 40 marks• BMI 20 marks

– HTML (8 marks)– Java code (12 marks)

• Wildlife 20 marks– List page (10 marks)– Details page (10 marks)