SlideShare a Scribd company logo
1 of 7
CDIM 1315 Homework #7: Creating web applications using
input, process, and output paradigm
Learning Objectives:
Students will able to:
1. create an HTML form to accept user input
2. create a useful tool that accepts user input, does a calculation
and decision making, and outputs a helpful answer to the user
(Note. This is called “Input, Process, Output” of programming)
3. use JavaScript to create a useful toolDirections
For this homework, you will create an HTML form that asks the
user input, process the input using JavaScript code (i.e.,
manipulates inputs, calculates it, makes decisions from it) and
then output an answer to the users inquiry. The following are
the rules:
1. Think of something useful for a user to use. See the examples
below or visit http://easycalculation.com/budget/phonebill.php
or http://www.cdc.gov/widgets/ for ideas of what you could
create in JavaScript. For example, you could ask them 3 quiz
questions and then tell them what type of IQ they have. You
write code to calculate compounding interest or present value of
money given an inflation rate. Just be creative.
2. Add an introductory paragraph and labels that explain what
the users need to input and do to receive an answer. Make the
page user friendly.
3. Receive input from the user on at least three elements. If
your scenario isn’t natural to 3 elements, then ask for first and
last name or something else to insure you have at least three
elements. You may use text boxes, option boxes (drop down
boxes), check boxes, radio button, or any other form input
element. Even images can be input options if the image is
clickable to the user.
4. Add a button that says “Grade Answers” or something
appropriate to your scenario. Then, the code will return some
value or information back to the user.
5. If appropriate to the problem domain (i.e., what you are
trying to accomplish with the web application), use an if
statement, select, while, or for loop statement to help with the
code’s decision making.
6. You must have at least one calculation or concatenation (i.e.,
combining of strings or combining a string with a variable’s
value) in your code. If your scenario doesn’t lend itself to a
calculation or concatenation, then add functionality until you
have something. If you still cannot think of a calculation or
concatenation, talk to other students or the tutor or the
instructor. Tip: If desired, search google for “javascript
concatenation”
7. Use comments in your JavaScript code to help explain what
you are doing. At least 20% of your code must be commented.
As you were taught in codehs.com, you can write the purpose of
a function, any preconditions or post conditions or assumptions
or requirements. For example, make statement as to what the
function does “//Calulates Body Mass Index”; explain any
variables “var h =0: //stores user’s height”
8. Make the HTML code look well. Use stylesheets, make fonts
appropriately sized, add colors if appropriate and not
distracting, add a nice image relating to the page (see
http://office.microsoft.com/en-us/images/ for free images to
use)
9. It is highly recommended that you use a multi-column table
(<table> tag with <th>, <tr> and <td>) to align the input
elements you use. For example make one column hold the labels
of the input elements and a second column hold the input
elements. This makes all the input elements aligned.
10. Here are some useful questions to help you think through
the process of development.
a. What inputs do you require of the user? For example, for a
Body Mass Calculator, “The page requires the user to input
their height, weight, and if they are big-boned or little-boned.
These are stored into three variables.”
b. What processing do you do with the inputs? In other words,
explain what and how do you calculate and make decisions? For
example, “The height and weight are calculated to give a score.
If the user is big-boned, then multiple 1.5 to the score. A value
of little-boned multiples 0.8 to the score. The final answer is
the Body Mass answer. An alert message pops up if there is an
error or if the user enters negative numbers for the inputs. “
c. What is the output and how do you get the output to the user?
For example, “The output is a Body Mass score derived from
the inputs. The Body Mass score is output to the txtAnswers
text box. An alert message pops up if there is an error or if the
user enters negative numbers for the inputs. ”
11. Create the web page(s) on Cloud 9.
Examples: Here are some ideas to start your braining juices
flowing.
http://easycalculation.com/
1. Create a 3 or 4 quiz or IQ test
2. “Choose your own adventure” game where users read a short
story and choose to go left or right, then each option gives
them another scenario until the adventurer wins in glory or
failure.
3. Calculate how long it would take to get to somewhere give
how fast you drive and distance
4. Tour of the solar system with facts about each planet as users
click on different planets.
Keep in mind – you will also be graded on your coding
techniques (e.g. appropriate use of white space, paragraphs, use
of comments to explain your code, etc.
A grading rubric is attached. Please review it to insure you have
all the required elements. Deliverable:
1. Deliver the URL to your web pages(s) to WTclass...Turn
in Homework 7
Grading Rubric Homework: Creating a web application
Student’s name__________________________________
Criteria
Excellent
Satisfactory
Unsatisfactory
Creative Topic
The topic of the webpage is useful, helpful, interesting, or
novel to a user; subjectively determined by the instructor and
other users.
Create & Novel may include some of the following:
Visually stunning
Coding technique is novel or includes things not learned in
class
Accomplishes something other students haven’t considered
Experimental
Provides smiles, laughter, or cool reactions
Provides a unique benefit or helpful to a niche market
The page has no usefulness, boringly simple, or is just a
curiosity to the developer and to no one else.
Looks like a student did the project to accomplish an
assignment
Similar in idea to a learning objective, although the code and
topic may be different
Repeat of a learning activity or insignificant variant
Input (CLO5)
The app seeks input from the user with at least two web
elements (e.g., input boxes, radio boxes, drop down boxes,
clickable images, buttons, etc.)
Inputs elements are labeled so the user knows what to provide
A submit button is included so the user can trigger the JS
code, or other appropriate event trigger; The text of the button
is of your choice.
Variables are declared, with initial values if appropriate
Data from user is stored into variables using the
document.getElementById().value method
less than 2 elements of information
Labels are missing
developer used a prompt() function instead of a
getElementById().value method
missing inputs
No submit button is present
Processing (CLO5 & 6)
The developer uses a function for his/her JavaScript code
Function and variable names use camelCaseSyntax
If appropriate to the problem, an if statement is used, select
statement, or for loop or while loop.
The code processes according to the problem, calculates or
concatenates something appropriate to the goal of the page
Variables do not use camelCaseSyntax
Variables are not declared properly nor get values from the
users’ input
A function is not used
Output (CLO5)
The user receives an output appropriate to the goal of the page
(text on a page, answer in a text box, etc.)
Output is accomplished using the getElementById().value or
getElementById().innerHTML or document.write()
The output is understandable to the user as the answer to his/her
inquiry.
Output is accomplished using the alert() function
Error in the output
Output is not friendly or leads to missinterpretation
No output given
Best Business Practices
(CLO3)
HTML page is attractive
Colors and images add value to the page
A table is used to align the labels and input elements, if
appropriate
JavaScript code includes at least 20% of comments to describe
what the function does, what the variables mean, and other
helpful comments.
Distracting elements are present (misaligned, crazy fonts or
colors, etc.)
Elements are not aligned
Code is commented less than 20%
Total Points
*CLO means Course Learning Objective from the syllabus.
1
Create web app using input, process, output

More Related Content

Similar to Create web app using input, process, output

I am having trouble writing the individual files for part 1, which i.pdf
I am having trouble writing the individual files for part 1, which i.pdfI am having trouble writing the individual files for part 1, which i.pdf
I am having trouble writing the individual files for part 1, which i.pdfmallik3000
 
Data Cleaning and Summarising
Data Cleaning and SummarisingData Cleaning and Summarising
Data Cleaning and SummarisingCHISANHONG
 
Creating a Use Case
Creating a Use Case                                               Creating a Use Case
Creating a Use Case CruzIbarra161
 
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docxCase Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docxwendolynhalbert
 
Build a Sentiment Model using ML.Net
Build a Sentiment Model using ML.NetBuild a Sentiment Model using ML.Net
Build a Sentiment Model using ML.NetCheah Eng Soon
 
Unit testing (workshop)
Unit testing (workshop)Unit testing (workshop)
Unit testing (workshop)Foyzul Karim
 
Foundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docxFoundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docxhanneloremccaffery
 
A case study in using ibm watson studio machine learning services ibm devel...
A case study in using ibm watson studio machine learning services   ibm devel...A case study in using ibm watson studio machine learning services   ibm devel...
A case study in using ibm watson studio machine learning services ibm devel...Einar Karlsen
 
Internet basic of it20
Internet basic of it20Internet basic of it20
Internet basic of it20rosu555
 
Prg 421 entire course
Prg 421 entire coursePrg 421 entire course
Prg 421 entire coursePRG421
 
Prg 421 entire course
Prg 421 entire coursePrg 421 entire course
Prg 421 entire courseACC421
 

Similar to Create web app using input, process, output (11)

I am having trouble writing the individual files for part 1, which i.pdf
I am having trouble writing the individual files for part 1, which i.pdfI am having trouble writing the individual files for part 1, which i.pdf
I am having trouble writing the individual files for part 1, which i.pdf
 
Data Cleaning and Summarising
Data Cleaning and SummarisingData Cleaning and Summarising
Data Cleaning and Summarising
 
Creating a Use Case
Creating a Use Case                                               Creating a Use Case
Creating a Use Case
 
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docxCase Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docx
 
Build a Sentiment Model using ML.Net
Build a Sentiment Model using ML.NetBuild a Sentiment Model using ML.Net
Build a Sentiment Model using ML.Net
 
Unit testing (workshop)
Unit testing (workshop)Unit testing (workshop)
Unit testing (workshop)
 
Foundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docxFoundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docx
 
A case study in using ibm watson studio machine learning services ibm devel...
A case study in using ibm watson studio machine learning services   ibm devel...A case study in using ibm watson studio machine learning services   ibm devel...
A case study in using ibm watson studio machine learning services ibm devel...
 
Internet basic of it20
Internet basic of it20Internet basic of it20
Internet basic of it20
 
Prg 421 entire course
Prg 421 entire coursePrg 421 entire course
Prg 421 entire course
 
Prg 421 entire course
Prg 421 entire coursePrg 421 entire course
Prg 421 entire course
 

More from tidwellveronique

EDUC 742EDUC 742Reading Summary and Reflective Comments .docx
EDUC 742EDUC 742Reading Summary and Reflective Comments .docxEDUC 742EDUC 742Reading Summary and Reflective Comments .docx
EDUC 742EDUC 742Reading Summary and Reflective Comments .docxtidwellveronique
 
EDUC 380 Blog Post Samples Module 1 The Brain Below .docx
EDUC 380 Blog Post Samples Module 1 The Brain  Below .docxEDUC 380 Blog Post Samples Module 1 The Brain  Below .docx
EDUC 380 Blog Post Samples Module 1 The Brain Below .docxtidwellveronique
 
EDUC 741Course Project Part 1 Grading RubricCriteriaLevels .docx
EDUC 741Course Project Part 1 Grading RubricCriteriaLevels .docxEDUC 741Course Project Part 1 Grading RubricCriteriaLevels .docx
EDUC 741Course Project Part 1 Grading RubricCriteriaLevels .docxtidwellveronique
 
EDUC 740Prayer Reflection Report Grading RubricCriteriaLev.docx
EDUC 740Prayer Reflection Report Grading RubricCriteriaLev.docxEDUC 740Prayer Reflection Report Grading RubricCriteriaLev.docx
EDUC 740Prayer Reflection Report Grading RubricCriteriaLev.docxtidwellveronique
 
EDUC 6733 Action Research for EducatorsReading LiteracyDraft.docx
EDUC 6733 Action Research for EducatorsReading LiteracyDraft.docxEDUC 6733 Action Research for EducatorsReading LiteracyDraft.docx
EDUC 6733 Action Research for EducatorsReading LiteracyDraft.docxtidwellveronique
 
EDUC 637Technology Portfolio InstructionsGeneral OverviewF.docx
EDUC 637Technology Portfolio InstructionsGeneral OverviewF.docxEDUC 637Technology Portfolio InstructionsGeneral OverviewF.docx
EDUC 637Technology Portfolio InstructionsGeneral OverviewF.docxtidwellveronique
 
EDUC 364 The Role of Cultural Diversity in Schooling A dialecti.docx
EDUC 364 The Role of Cultural Diversity in Schooling A dialecti.docxEDUC 364 The Role of Cultural Diversity in Schooling A dialecti.docx
EDUC 364 The Role of Cultural Diversity in Schooling A dialecti.docxtidwellveronique
 
EDUC 144 Writing Tips The writing assignments in this cla.docx
EDUC 144 Writing Tips  The writing assignments in this cla.docxEDUC 144 Writing Tips  The writing assignments in this cla.docx
EDUC 144 Writing Tips The writing assignments in this cla.docxtidwellveronique
 
EDUC 1300- LEARNING FRAMEWORK Portfolio Page Prompts .docx
EDUC 1300- LEARNING FRAMEWORK Portfolio Page Prompts .docxEDUC 1300- LEARNING FRAMEWORK Portfolio Page Prompts .docx
EDUC 1300- LEARNING FRAMEWORK Portfolio Page Prompts .docxtidwellveronique
 
EDU734 Teaching and Learning Environment Week 5.docx
EDU734 Teaching and  Learning Environment Week 5.docxEDU734 Teaching and  Learning Environment Week 5.docx
EDU734 Teaching and Learning Environment Week 5.docxtidwellveronique
 
EDU 505 – Contemporary Issues in EducationCOURSE DESCRIPTION.docx
EDU 505 – Contemporary Issues in EducationCOURSE DESCRIPTION.docxEDU 505 – Contemporary Issues in EducationCOURSE DESCRIPTION.docx
EDU 505 – Contemporary Issues in EducationCOURSE DESCRIPTION.docxtidwellveronique
 
EDU 3338 Lesson Plan TemplateCandidate NameCooperatin.docx
EDU 3338 Lesson Plan TemplateCandidate NameCooperatin.docxEDU 3338 Lesson Plan TemplateCandidate NameCooperatin.docx
EDU 3338 Lesson Plan TemplateCandidate NameCooperatin.docxtidwellveronique
 
EDU 3215 Lesson Plan Template & Elements Name Andres Rod.docx
EDU 3215 Lesson Plan Template & Elements  Name Andres Rod.docxEDU 3215 Lesson Plan Template & Elements  Name Andres Rod.docx
EDU 3215 Lesson Plan Template & Elements Name Andres Rod.docxtidwellveronique
 
EDST 1100R SITUATED LEARNING EDST 1100 N Situated Learning .docx
EDST 1100R SITUATED LEARNING  EDST 1100 N Situated Learning .docxEDST 1100R SITUATED LEARNING  EDST 1100 N Situated Learning .docx
EDST 1100R SITUATED LEARNING EDST 1100 N Situated Learning .docxtidwellveronique
 
EDU 151 Thematic Unit Required ComponentsThematic Unit Requireme.docx
EDU 151 Thematic Unit Required ComponentsThematic Unit Requireme.docxEDU 151 Thematic Unit Required ComponentsThematic Unit Requireme.docx
EDU 151 Thematic Unit Required ComponentsThematic Unit Requireme.docxtidwellveronique
 
EDSP 429Differentiated Instruction PowerPoint InstructionsThe .docx
EDSP 429Differentiated Instruction PowerPoint InstructionsThe .docxEDSP 429Differentiated Instruction PowerPoint InstructionsThe .docx
EDSP 429Differentiated Instruction PowerPoint InstructionsThe .docxtidwellveronique
 
EDSP 429Fact Sheet on Disability Categories InstructionsThe pu.docx
EDSP 429Fact Sheet on Disability Categories InstructionsThe pu.docxEDSP 429Fact Sheet on Disability Categories InstructionsThe pu.docx
EDSP 429Fact Sheet on Disability Categories InstructionsThe pu.docxtidwellveronique
 
EDSP 370Individualized Education Plan (IEP) InstructionsThe .docx
EDSP 370Individualized Education Plan (IEP) InstructionsThe .docxEDSP 370Individualized Education Plan (IEP) InstructionsThe .docx
EDSP 370Individualized Education Plan (IEP) InstructionsThe .docxtidwellveronique
 
EDSP 377Scenario InstructionsScenario 2 Teaching communicatio.docx
EDSP 377Scenario InstructionsScenario 2 Teaching communicatio.docxEDSP 377Scenario InstructionsScenario 2 Teaching communicatio.docx
EDSP 377Scenario InstructionsScenario 2 Teaching communicatio.docxtidwellveronique
 
EDSP 377Autism Interventions1. Applied Behavior Analysis (ABA).docx
EDSP 377Autism Interventions1. Applied Behavior Analysis (ABA).docxEDSP 377Autism Interventions1. Applied Behavior Analysis (ABA).docx
EDSP 377Autism Interventions1. Applied Behavior Analysis (ABA).docxtidwellveronique
 

More from tidwellveronique (20)

EDUC 742EDUC 742Reading Summary and Reflective Comments .docx
EDUC 742EDUC 742Reading Summary and Reflective Comments .docxEDUC 742EDUC 742Reading Summary and Reflective Comments .docx
EDUC 742EDUC 742Reading Summary and Reflective Comments .docx
 
EDUC 380 Blog Post Samples Module 1 The Brain Below .docx
EDUC 380 Blog Post Samples Module 1 The Brain  Below .docxEDUC 380 Blog Post Samples Module 1 The Brain  Below .docx
EDUC 380 Blog Post Samples Module 1 The Brain Below .docx
 
EDUC 741Course Project Part 1 Grading RubricCriteriaLevels .docx
EDUC 741Course Project Part 1 Grading RubricCriteriaLevels .docxEDUC 741Course Project Part 1 Grading RubricCriteriaLevels .docx
EDUC 741Course Project Part 1 Grading RubricCriteriaLevels .docx
 
EDUC 740Prayer Reflection Report Grading RubricCriteriaLev.docx
EDUC 740Prayer Reflection Report Grading RubricCriteriaLev.docxEDUC 740Prayer Reflection Report Grading RubricCriteriaLev.docx
EDUC 740Prayer Reflection Report Grading RubricCriteriaLev.docx
 
EDUC 6733 Action Research for EducatorsReading LiteracyDraft.docx
EDUC 6733 Action Research for EducatorsReading LiteracyDraft.docxEDUC 6733 Action Research for EducatorsReading LiteracyDraft.docx
EDUC 6733 Action Research for EducatorsReading LiteracyDraft.docx
 
EDUC 637Technology Portfolio InstructionsGeneral OverviewF.docx
EDUC 637Technology Portfolio InstructionsGeneral OverviewF.docxEDUC 637Technology Portfolio InstructionsGeneral OverviewF.docx
EDUC 637Technology Portfolio InstructionsGeneral OverviewF.docx
 
EDUC 364 The Role of Cultural Diversity in Schooling A dialecti.docx
EDUC 364 The Role of Cultural Diversity in Schooling A dialecti.docxEDUC 364 The Role of Cultural Diversity in Schooling A dialecti.docx
EDUC 364 The Role of Cultural Diversity in Schooling A dialecti.docx
 
EDUC 144 Writing Tips The writing assignments in this cla.docx
EDUC 144 Writing Tips  The writing assignments in this cla.docxEDUC 144 Writing Tips  The writing assignments in this cla.docx
EDUC 144 Writing Tips The writing assignments in this cla.docx
 
EDUC 1300- LEARNING FRAMEWORK Portfolio Page Prompts .docx
EDUC 1300- LEARNING FRAMEWORK Portfolio Page Prompts .docxEDUC 1300- LEARNING FRAMEWORK Portfolio Page Prompts .docx
EDUC 1300- LEARNING FRAMEWORK Portfolio Page Prompts .docx
 
EDU734 Teaching and Learning Environment Week 5.docx
EDU734 Teaching and  Learning Environment Week 5.docxEDU734 Teaching and  Learning Environment Week 5.docx
EDU734 Teaching and Learning Environment Week 5.docx
 
EDU 505 – Contemporary Issues in EducationCOURSE DESCRIPTION.docx
EDU 505 – Contemporary Issues in EducationCOURSE DESCRIPTION.docxEDU 505 – Contemporary Issues in EducationCOURSE DESCRIPTION.docx
EDU 505 – Contemporary Issues in EducationCOURSE DESCRIPTION.docx
 
EDU 3338 Lesson Plan TemplateCandidate NameCooperatin.docx
EDU 3338 Lesson Plan TemplateCandidate NameCooperatin.docxEDU 3338 Lesson Plan TemplateCandidate NameCooperatin.docx
EDU 3338 Lesson Plan TemplateCandidate NameCooperatin.docx
 
EDU 3215 Lesson Plan Template & Elements Name Andres Rod.docx
EDU 3215 Lesson Plan Template & Elements  Name Andres Rod.docxEDU 3215 Lesson Plan Template & Elements  Name Andres Rod.docx
EDU 3215 Lesson Plan Template & Elements Name Andres Rod.docx
 
EDST 1100R SITUATED LEARNING EDST 1100 N Situated Learning .docx
EDST 1100R SITUATED LEARNING  EDST 1100 N Situated Learning .docxEDST 1100R SITUATED LEARNING  EDST 1100 N Situated Learning .docx
EDST 1100R SITUATED LEARNING EDST 1100 N Situated Learning .docx
 
EDU 151 Thematic Unit Required ComponentsThematic Unit Requireme.docx
EDU 151 Thematic Unit Required ComponentsThematic Unit Requireme.docxEDU 151 Thematic Unit Required ComponentsThematic Unit Requireme.docx
EDU 151 Thematic Unit Required ComponentsThematic Unit Requireme.docx
 
EDSP 429Differentiated Instruction PowerPoint InstructionsThe .docx
EDSP 429Differentiated Instruction PowerPoint InstructionsThe .docxEDSP 429Differentiated Instruction PowerPoint InstructionsThe .docx
EDSP 429Differentiated Instruction PowerPoint InstructionsThe .docx
 
EDSP 429Fact Sheet on Disability Categories InstructionsThe pu.docx
EDSP 429Fact Sheet on Disability Categories InstructionsThe pu.docxEDSP 429Fact Sheet on Disability Categories InstructionsThe pu.docx
EDSP 429Fact Sheet on Disability Categories InstructionsThe pu.docx
 
EDSP 370Individualized Education Plan (IEP) InstructionsThe .docx
EDSP 370Individualized Education Plan (IEP) InstructionsThe .docxEDSP 370Individualized Education Plan (IEP) InstructionsThe .docx
EDSP 370Individualized Education Plan (IEP) InstructionsThe .docx
 
EDSP 377Scenario InstructionsScenario 2 Teaching communicatio.docx
EDSP 377Scenario InstructionsScenario 2 Teaching communicatio.docxEDSP 377Scenario InstructionsScenario 2 Teaching communicatio.docx
EDSP 377Scenario InstructionsScenario 2 Teaching communicatio.docx
 
EDSP 377Autism Interventions1. Applied Behavior Analysis (ABA).docx
EDSP 377Autism Interventions1. Applied Behavior Analysis (ABA).docxEDSP 377Autism Interventions1. Applied Behavior Analysis (ABA).docx
EDSP 377Autism Interventions1. Applied Behavior Analysis (ABA).docx
 

Recently uploaded

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 

Recently uploaded (20)

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 

Create web app using input, process, output

  • 1. CDIM 1315 Homework #7: Creating web applications using input, process, and output paradigm Learning Objectives: Students will able to: 1. create an HTML form to accept user input 2. create a useful tool that accepts user input, does a calculation and decision making, and outputs a helpful answer to the user (Note. This is called “Input, Process, Output” of programming) 3. use JavaScript to create a useful toolDirections For this homework, you will create an HTML form that asks the user input, process the input using JavaScript code (i.e., manipulates inputs, calculates it, makes decisions from it) and then output an answer to the users inquiry. The following are the rules: 1. Think of something useful for a user to use. See the examples below or visit http://easycalculation.com/budget/phonebill.php or http://www.cdc.gov/widgets/ for ideas of what you could create in JavaScript. For example, you could ask them 3 quiz questions and then tell them what type of IQ they have. You write code to calculate compounding interest or present value of money given an inflation rate. Just be creative. 2. Add an introductory paragraph and labels that explain what the users need to input and do to receive an answer. Make the page user friendly. 3. Receive input from the user on at least three elements. If your scenario isn’t natural to 3 elements, then ask for first and last name or something else to insure you have at least three elements. You may use text boxes, option boxes (drop down boxes), check boxes, radio button, or any other form input element. Even images can be input options if the image is clickable to the user. 4. Add a button that says “Grade Answers” or something
  • 2. appropriate to your scenario. Then, the code will return some value or information back to the user. 5. If appropriate to the problem domain (i.e., what you are trying to accomplish with the web application), use an if statement, select, while, or for loop statement to help with the code’s decision making. 6. You must have at least one calculation or concatenation (i.e., combining of strings or combining a string with a variable’s value) in your code. If your scenario doesn’t lend itself to a calculation or concatenation, then add functionality until you have something. If you still cannot think of a calculation or concatenation, talk to other students or the tutor or the instructor. Tip: If desired, search google for “javascript concatenation” 7. Use comments in your JavaScript code to help explain what you are doing. At least 20% of your code must be commented. As you were taught in codehs.com, you can write the purpose of a function, any preconditions or post conditions or assumptions or requirements. For example, make statement as to what the function does “//Calulates Body Mass Index”; explain any variables “var h =0: //stores user’s height” 8. Make the HTML code look well. Use stylesheets, make fonts appropriately sized, add colors if appropriate and not distracting, add a nice image relating to the page (see http://office.microsoft.com/en-us/images/ for free images to use) 9. It is highly recommended that you use a multi-column table (<table> tag with <th>, <tr> and <td>) to align the input elements you use. For example make one column hold the labels of the input elements and a second column hold the input elements. This makes all the input elements aligned. 10. Here are some useful questions to help you think through the process of development. a. What inputs do you require of the user? For example, for a Body Mass Calculator, “The page requires the user to input their height, weight, and if they are big-boned or little-boned.
  • 3. These are stored into three variables.” b. What processing do you do with the inputs? In other words, explain what and how do you calculate and make decisions? For example, “The height and weight are calculated to give a score. If the user is big-boned, then multiple 1.5 to the score. A value of little-boned multiples 0.8 to the score. The final answer is the Body Mass answer. An alert message pops up if there is an error or if the user enters negative numbers for the inputs. “ c. What is the output and how do you get the output to the user? For example, “The output is a Body Mass score derived from the inputs. The Body Mass score is output to the txtAnswers text box. An alert message pops up if there is an error or if the user enters negative numbers for the inputs. ” 11. Create the web page(s) on Cloud 9. Examples: Here are some ideas to start your braining juices flowing. http://easycalculation.com/ 1. Create a 3 or 4 quiz or IQ test 2. “Choose your own adventure” game where users read a short story and choose to go left or right, then each option gives them another scenario until the adventurer wins in glory or failure. 3. Calculate how long it would take to get to somewhere give how fast you drive and distance 4. Tour of the solar system with facts about each planet as users click on different planets. Keep in mind – you will also be graded on your coding techniques (e.g. appropriate use of white space, paragraphs, use of comments to explain your code, etc. A grading rubric is attached. Please review it to insure you have all the required elements. Deliverable:
  • 4. 1. Deliver the URL to your web pages(s) to WTclass...Turn in Homework 7 Grading Rubric Homework: Creating a web application Student’s name__________________________________ Criteria Excellent Satisfactory Unsatisfactory Creative Topic The topic of the webpage is useful, helpful, interesting, or novel to a user; subjectively determined by the instructor and other users. Create & Novel may include some of the following: Visually stunning Coding technique is novel or includes things not learned in class Accomplishes something other students haven’t considered Experimental Provides smiles, laughter, or cool reactions Provides a unique benefit or helpful to a niche market The page has no usefulness, boringly simple, or is just a curiosity to the developer and to no one else. Looks like a student did the project to accomplish an assignment Similar in idea to a learning objective, although the code and topic may be different Repeat of a learning activity or insignificant variant Input (CLO5) The app seeks input from the user with at least two web elements (e.g., input boxes, radio boxes, drop down boxes, clickable images, buttons, etc.) Inputs elements are labeled so the user knows what to provide A submit button is included so the user can trigger the JS
  • 5. code, or other appropriate event trigger; The text of the button is of your choice. Variables are declared, with initial values if appropriate Data from user is stored into variables using the document.getElementById().value method less than 2 elements of information Labels are missing developer used a prompt() function instead of a getElementById().value method missing inputs No submit button is present Processing (CLO5 & 6) The developer uses a function for his/her JavaScript code Function and variable names use camelCaseSyntax If appropriate to the problem, an if statement is used, select statement, or for loop or while loop. The code processes according to the problem, calculates or concatenates something appropriate to the goal of the page Variables do not use camelCaseSyntax Variables are not declared properly nor get values from the users’ input A function is not used Output (CLO5) The user receives an output appropriate to the goal of the page (text on a page, answer in a text box, etc.) Output is accomplished using the getElementById().value or getElementById().innerHTML or document.write() The output is understandable to the user as the answer to his/her
  • 6. inquiry. Output is accomplished using the alert() function Error in the output Output is not friendly or leads to missinterpretation No output given Best Business Practices (CLO3) HTML page is attractive Colors and images add value to the page A table is used to align the labels and input elements, if appropriate JavaScript code includes at least 20% of comments to describe what the function does, what the variables mean, and other helpful comments. Distracting elements are present (misaligned, crazy fonts or colors, etc.) Elements are not aligned Code is commented less than 20% Total Points *CLO means Course Learning Objective from the syllabus. 1