11 months ago

BIS 450 DeVry Week 3 iLab 3

Grading Rubric Criteria

Grading Rubric Criteria Points % Step 2: Create Calorie Needs Web Form (CalNeeds.aspx) • CalNeeds.aspx created in your Web folder • Has standard page header, navigation menu, and page footer • Form title “Calorie Needs Calculator” in bold • Input controls: radio buttons for male and female; textboxes for height, weight and age; drop-down list for activity level • Button for BMI calculation • Literal control below button for display of results 10 40% Step 3: Add Calculate BMI Event Handler in Code-Behind File (CalNeeds.aspx.vb) • Click event handler created for Calculate Calorie Needs button in code-behind file • Statement added to Else clause to calculate BMR for men using correct formula • Captures input values, calculates BMR, multiplies BMR by activity to calculate calories needed • Displays calories needed 6 24% Step 4: Add Input Validation (CalNeeds.aspx) • RequiredFieldValidators added for height, weight, and age • RangeValidator added to check height is 48-84 type Double • RangeValidator added to check weight is 50-500 type Double • RangeValidator added to check age is 18-120 type Integer • Appropriate error messages displayed by all validators 6 24% Step 5: Test, Capture Screen Shots, and Submit (Student Name BIS450 Lab3 Screenshot.docx) • Word file submitted to Dropbox with screen shots of: o Calculator with correct inputs (calories should be 2173) o Calculator with all fields blank (should display all required field error messages) o Calculator with invalid inputs (should display all range error messages) 3 12% Total 25 100% PREPARATION 1. Download the file BIS450 Lab3 Code Snippets.txt from Doc Sharing and save it in your working folder for this lab. 2. Using the Citrix remote lab: a. Follow the login instructions located in the iLab tab in Course Home. b. Upload the file you downloaded from Doc Sharing into your BIS450Labs folder on your Citrix drive (you created this folder in Week 1). STEP 1: Open Website on the DeVry Web Server 1. Launch Microsoft Visual Studio 2010. You must use Visual Studio 2010 in the Citrix environment. 2. Pull down the File menu and select Open, then select Web Site. In the Open Web Site dialog, select FTP Site in the left column. The connection information you used in the previous lab should be displayed:

• Server: • Port: 21 • Directory: coursefolder/yourname, where coursefolder = folder on the web server for your course (provided by your professor), and yourname = your first initial and last name, (for example, jsmith for student John Smith). • Passive Mode and Anonymous Login: Both unchecked. • Username: acadDnnnnnnnn, where Dnnnnnnnn = your DSI number. • Password: Enter the same password as you use for Citrix iLab (must be re-entered each time). Click Open. STEP 2: Create Calorie Needs Web Form 1. Add a new Web form named CalNeeds.aspx to the site. (Review last week’s iLab if you need help remembering exactly how to do this.) 2. Set the Title property of the Document to Calorie Needs Calculator. 3. Attach StyleSheet.css to the Web form. 4. As you did when setting up the BMI Calculator Web form in last week’s iLab, open Default.htm and copy the contents of its element (in HTML, everything in between the and tags, but not the and tags themselves). Paste these contents inside the div in CalNeeds.aspx (in HTML, in between the and tags). Delete the contents of the #main div after pasting. 5. Inside div#main, type Daily Calorie Needs Calculator as a heading for the form, followed by a blank line. Bold this heading. 6. Type the following input prompts, one per line with a blank line between each, and add the corresponding control from the Standard section of the Toolbox after each prompt. Set the properties of each control as indicated below. Prompt Control (ID) Text Gender: RadioButton RadioButton rdoFemale rdoMale Female Male Height (inches): TextBox txtHeight Weight (pounds): TextBox txtWeight Age (years): TextBox txtAge Activity Level: DropDownList ddlActivity 7. For each of the two RadioButtons, set the GroupName property to Gender. (Giving both RadioButtons the same GroupName ensures that only one can be “on” at a time.) Also, set the Checked property of the rdoFemale RadioButton to True (Female will be the default). 8. Select the ddlActivity DropDownList control, click the Items property in the Properties pane, and then click on the button with three dots […] that appears. In the ListItem Collection Editor dialog, click Add. Enter Sedentary (little or no exercise) as the Text and 1.2 as the Value, and set Selected to True. Continue clicking Add to add the following items to the list: Text Value Selected Lightly active (1-3 days/week) 1.375 False

DEVRY CIS 336 Week 3 iLab 3
DEVRY MGMT 404 Week 3 iLab