SlideShare a Scribd company logo
College for Women
Department of Information Science
Kuwait University
College of Computing Sciences and Engineering
Department of Information Science
COMP1231
Web Programming
Assignment #1
Due Date: Friday, February 26th, 11:59 pm
Weight: 7% of Final Grade
COMP1231 - ASSIGNMENT 1 2
Table of Contents
COMP1231 Assignment 1
...............................................................................................
............................. 3
Function 1: Student Information
...............................................................................................
.................... 4
Function 2: Calculate Change
...............................................................................................
........................ 5
Function 3: Miles to Kilometers
...............................................................................................
.................... 5
Function 4: Find Min and Max
...............................................................................................
...................... 6
Function 5: Count
Occurrences............................................................................
......................................... 6
Function 6: Convert Number Grade to Letter Grade
.................................................................................... 7
Function 7: Reverse the Order of the Array
...............................................................................................
... 7
Function 8: School Days Remaining
...............................................................................................
............. 7
Function 9: Count Vowels
...............................................................................................
............................. 8
Function 10: Alphabetical
Order......................................................................................
............................. 8
Submission Procedure and Rules
...............................................................................................
................. 10
Submission Procedure
...............................................................................................
.............................. 10
COMP1231 - ASSIGNMENT 1 3
COMP1231 Assignment 1
Assignment Type: Individual Assignment
1. Description
In this assignment, you are to develop a JavaScript file that
contains the implementation of 10 functions. Each
function is represented as one step, and marks will be awarded
on the completion of each step (each function).
Each function is independent and solves a unique problem, as
such, treat and implement each function in isolation
of the others, that’s is, you should only focus on one problem at
a time.
PLEASE NOTE: Input validation is NOT required for any
function parameter – You may assume that all
input parameters provided to your functions, are all valid.
2. Objective
• Write decision-making statements and control structures to
solve problems
• Apply programming logic to solve basic to intermediate
problems
• Testing and debugging
3. Learning Outcomes: After conducting this assignment
students will / will be able to:
1. Acquainted with implementing JavaScript functions
2. Follow instructions, and to implement various requirements
4. Instructions:
1. You are to create ONE JavaScript file which must be named
<STUDENT_ID>-functions.js, where
STUDENT_ID represents your student number.
2. The implementation for your 10 JavaScript functions must be
completed within your <STUDENT_ID>-
functions.js file.
You are NOT permitted to use any external files or libraries.
Using any external libraries will result in
a final grade of ZERO for your assignment submission.
3. Your JavaScript functions file must be configured for strict
mode (“use strict”)
The pages that follow provide the description of the 10
JavaScript functions that you must implement.
COMP1231 - ASSIGNMENT 1 4
Function 1: Student Information
function _one()
Create a JavaScript function that meets the following
requirements:
• Creates the following variables that assign your unique profile
information:
o your_name
o number_of_courses (this semester),
o program
o part_time_ job (true/false).
• Create a Boolean variable, set to true or false, based on
whether you have a part time job. Store the string
“have” or “don’t have” into another variable, based on the
Boolean.
• Display your student information to the cosole (console.log())
as illustrated below:
"My name is ???. I’m in the ??? program. I’m currently taking
??? courses." I ??? have a part
time job.
Where “???” should be replaced with your variable data
COMP1231 - ASSIGNMENT 1 5
Function 2: Calculate Change
function _two(cents)
Create a JavaScript function that meets the following
requirements:
• Is passed an integer parameter, representing a number of
Canadian cents.
• The function uses the parameter to determine the smallest
number of Canadian quarters, dimes, nickels and
pennies that are equal to the given (parameter) amount.
• Displays the calculated information as illustrated below:
Function 3: Miles to Kilometers
function _three(miles, kilometers)
Create a JavaScript function that meets the following
requirements:
• Receives two distances, one distance in miles and the other, a
distance in kilometers value.
• Converts the miles to the equivalent kilometer value
• Converts the kilometer value to the equivalent miles
• Displays the calculated information as illustrated below:
COMP1231 - ASSIGNMENT 1 6
Function 4: Find Min and Max
function _four( array )
Create a JavaScript function that meets the following
requirements:
• Receives an integer array as a parameter
• The function transverses the array to determine the minimum
and maximum values in the array.
• Displays the calculated information as illustrated below:
************** STEP 4 **************
Calling _four([-8, -1, -87, -14, -81, -74, -20, -86, -61, -10]);
The minimum value in the array is: -87, the maximum value is -
1
Function 5: Count Occurrences
function _five(string, char)
Create a JavaScript function that meets the following
requirements:
• Accepts two input parameters, a string and a character letter.
• The function determines the number of occurrences of the
character in the string.
• Displays the result to the console as illustrated below.
************** STEP 5 **************
Calling _five(“map”, “p”);
The word map has 1 occurrences of the character p
COMP1231 - ASSIGNMENT 1 7
Function 6: Convert Number Grade to Letter Grade
function _six( grade )
Create a JavaScript function that meets the following
requirements:
• Is passed a numeric grade, calculating and displaying the
corresponding letter grade based on:
100 - 90 = ‘A+’, 89 - 85 = ‘A’, 84 - 80 = ‘A’, 79 -76 = ‘B+’, 75
– 73 = ‘B’, 72 – 70 = ‘B-’, 69 – 66 = ‘C+’,
65 – 63 = ‘C’, 62 – 60 = ‘C-’, 59 – 56 = ‘D+’, 55 – 53 = ‘D’, 52
– 50 = ‘D-’, < 50 = ‘F’
• Displays the result to the console as illustrated below.
Function 7: Reverse the Order of the Array
function _seven(array)
Create a JavaScript function that meets the following
requirements:
• Receives character array
• The function reverses the order of the of the character array.
• Displays the results to the console as illustrated below:
************** STEP 7 **************
Calling _seven([j, p, g, F, c, x, A, c, q, I]);
Original order array = [j, p, g, F, c, x, A, c, q, I]
Reversed order array = [I, q, c, A, x, c, F, g, p, j]
Function 8: School Days Remaining
function _eight()
COMP1231 - ASSIGNMENT 1 8
Create a JavaScript function that meets the following
requirements:
• Receives no input parameters
• Determines the number of days until the end of the school year
• Please note the last day of the W2021 School Calendar is:
Friday, April 23rd, 2021
• Displays the result to the console as illustrated below
Function 9: Count Vowels
function _nine(word)
Create a JavaScript function that meets the following
requirements:
• Accepts a string parameter, counting the number of vowels
within the string.
• The function should be case insensitive, handling both upper
and/or lowercase letters.
• Displays the result to the console as illustrated below.
************** STEP 9 **************
Calling _nine(“flugelhorn”);
Vowel count: A=0, E=1, I=0, O=1, U=1, Y=0
Function 10: Alphabetical Order
function _ten(my_string)
Create a JavaScript function that meets the following
requirements:
COMP1231 - ASSIGNMENT 1 9
a. Create a JavaScript function that accepts a string parameter,
then organizes the string so it’s in alphabetical
order.
b. The function is case insensitive, that is, it does not
distinguish any difference between upper or lower case.
c. Displays the result to the console as illustrated below.
************** STEP 10 **************
Calling _ten(“Sameer”);
The string converted in alphabetical order is: aeemeS
COMP1231 - ASSIGNMENT 1 10
Submission Procedure and Rules
Please ensure to remove all instances of the following from
your final submission solution:
• document.write()
• innerHTML()
• alert()
• any commented code
• You should only have one console.log() per function, so any
debug related console output that
you may have used must be removed
Submission Procedure
1. In order to complete this assignment, you will need to create
the following TWO files.
I. <STUDENT_ID>-functions.js
As mentioned in the assignment instructions, this is where your
functions will be implemented.
A template of this file has been provided to you.
II. main.html
This file represents the HTML file that includes and calls your
JavaScript file and functions.
You must download and use the main.html file from following
location:
https://comp1231.gblearn.com/common/assignmentTemplate/as1
/main.html This template
contains instructions as to what exactly needs to be modified in
this file.
Students will be required to download
https://comp1231.gblearn.com/common/assignmentTemplate/as1
/main.html and add their student
id (matching student_id-functions.js file) and function names.
2. A JavaScript tester file will be made available that you can
utilize to assist with the testing of your solution.
The file is called s21a1tester.js and is already referenced within
the main.html. The test file will call your
functions and help you with the validation of your solution. The
file is served from gblearn server, and as a
consequence you will require an internet connection to run the
tester.
3. You must upload both your files (main.html and student_id-
functions.js) to the following directory in your
GBlearn account on or before the due date:
/comp1231/assignments/assignment1/
4. You must also submit your JavaScript file on my.gblearn.com
under comp1231/assignment 1.
Avoiding this step will result in a mark of ZERO for your
assignment submission. All
files/folders must be spelled exactly as specified above (all
lowercase without any spaces)
5. Late submissions are graded at a -10% penalty per day (five
day maximum)
We are going to use Moss
(https://theory.stanford.edu/~aiken/moss/ ) to detect similarities
in code among all
students. There will be zero tolerance for plagiarism. Please be
aware.
GOOD LUCK!
https://comp1231.gblearn.com/common/assignmentTemplate/as1
/main.html
https://comp1231.gblearn.com/common/assignmentTemplate/as1
/main.html
https://theory.stanford.edu/~aiken/moss/
College for women  department of information science

More Related Content

What's hot

Unit 3 Foc
Unit  3 FocUnit  3 Foc
Unit 3 Foc
JAYA
 
algo
algoalgo
algo
Rao Khan
 
Problem solving and design
Problem solving and designProblem solving and design
Problem solving and design
Renée Howard-Johnson
 
Pseudocode-Flowchart
Pseudocode-FlowchartPseudocode-Flowchart
Pseudocode-Flowchartlotlot
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1luhkahreth
 
Flowchart - Introduction and Designing Tools
Flowchart - Introduction and Designing ToolsFlowchart - Introduction and Designing Tools
Flowchart - Introduction and Designing Tools
Jawad Khan
 
Algorithms and how to write an algorithms
Algorithms and how to write an algorithmsAlgorithms and how to write an algorithms
Algorithms and how to write an algorithms
Ahmed Nobi
 
Pseudocode By ZAK
Pseudocode By ZAKPseudocode By ZAK
Pseudocode By ZAK
Tabsheer Hasan
 
Algorithms and flowcharts ppt (seminar presentation)..
 Algorithms and flowcharts  ppt (seminar presentation).. Algorithms and flowcharts  ppt (seminar presentation)..
Algorithms and flowcharts ppt (seminar presentation)..
Nagendra N
 
Algorithms, flow charts and pseudocodes
Algorithms, flow charts and pseudocodesAlgorithms, flow charts and pseudocodes
Algorithms, flow charts and pseudocodes
Satveer Mann
 
Computer programming:Know How to Flowchart
Computer  programming:Know How to FlowchartComputer  programming:Know How to Flowchart
Computer programming:Know How to Flowchart
Angelo Tomboc
 
Ch1 principles of software development
Ch1 principles of software developmentCh1 principles of software development
Ch1 principles of software developmentHattori Sidek
 
COM1407: Program Control Structures – Decision Making & Branching
COM1407: Program Control Structures – Decision Making & BranchingCOM1407: Program Control Structures – Decision Making & Branching
COM1407: Program Control Structures – Decision Making & Branching
Hemantha Kulathilake
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
Deva Singh
 
Introduction to basic programming repetition
Introduction to basic programming repetitionIntroduction to basic programming repetition
Introduction to basic programming repetition
Jordan Delacruz
 

What's hot (20)

Unit 3 Foc
Unit  3 FocUnit  3 Foc
Unit 3 Foc
 
algo
algoalgo
algo
 
Problem solving and design
Problem solving and designProblem solving and design
Problem solving and design
 
Pseudocode-Flowchart
Pseudocode-FlowchartPseudocode-Flowchart
Pseudocode-Flowchart
 
Algorithmsandflowcharts1
Algorithmsandflowcharts1Algorithmsandflowcharts1
Algorithmsandflowcharts1
 
Flowchart - Introduction and Designing Tools
Flowchart - Introduction and Designing ToolsFlowchart - Introduction and Designing Tools
Flowchart - Introduction and Designing Tools
 
Algorithms and how to write an algorithms
Algorithms and how to write an algorithmsAlgorithms and how to write an algorithms
Algorithms and how to write an algorithms
 
Pseudocode By ZAK
Pseudocode By ZAKPseudocode By ZAK
Pseudocode By ZAK
 
Algorithms and flowcharts ppt (seminar presentation)..
 Algorithms and flowcharts  ppt (seminar presentation).. Algorithms and flowcharts  ppt (seminar presentation)..
Algorithms and flowcharts ppt (seminar presentation)..
 
Algorithms, flow charts and pseudocodes
Algorithms, flow charts and pseudocodesAlgorithms, flow charts and pseudocodes
Algorithms, flow charts and pseudocodes
 
Writing algorithms
Writing algorithmsWriting algorithms
Writing algorithms
 
Ch3 selection
Ch3 selectionCh3 selection
Ch3 selection
 
Computer programming:Know How to Flowchart
Computer  programming:Know How to FlowchartComputer  programming:Know How to Flowchart
Computer programming:Know How to Flowchart
 
Ch3 repetition
Ch3 repetitionCh3 repetition
Ch3 repetition
 
Ch1 principles of software development
Ch1 principles of software developmentCh1 principles of software development
Ch1 principles of software development
 
COM1407: Program Control Structures – Decision Making & Branching
COM1407: Program Control Structures – Decision Making & BranchingCOM1407: Program Control Structures – Decision Making & Branching
COM1407: Program Control Structures – Decision Making & Branching
 
Algorithms and Flowcharts
Algorithms and FlowchartsAlgorithms and Flowcharts
Algorithms and Flowcharts
 
Penyelesaian masalah
Penyelesaian masalahPenyelesaian masalah
Penyelesaian masalah
 
Introduction to basic programming repetition
Introduction to basic programming repetitionIntroduction to basic programming repetition
Introduction to basic programming repetition
 
Algorithm itabq
Algorithm itabqAlgorithm itabq
Algorithm itabq
 

Similar to College for women department of information science

Procedure to create_the_calculator_application java
Procedure to create_the_calculator_application javaProcedure to create_the_calculator_application java
Procedure to create_the_calculator_application javagthe
 
Cs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUALCs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUALPrabhu D
 
Verilog TASKS & FUNCTIONS
Verilog TASKS & FUNCTIONSVerilog TASKS & FUNCTIONS
Verilog TASKS & FUNCTIONS
Dr.YNM
 
Angular 16 – the rise of Signals
Angular 16 – the rise of SignalsAngular 16 – the rise of Signals
Angular 16 – the rise of Signals
Coding Academy
 
Cis247 a ilab 3 overloaded methods and static methods variables
Cis247 a ilab 3 overloaded methods and static methods variablesCis247 a ilab 3 overloaded methods and static methods variables
Cis247 a ilab 3 overloaded methods and static methods variablesccis224477
 
9 11 25 14 44 6 41 15 57 9 39 16 41 2 58 8 43 12 4.docx
9 11 25 14 44 6 41 15 57 9 39 16 41 2 58 8 43 12 4.docx9 11 25 14 44 6 41 15 57 9 39 16 41 2 58 8 43 12 4.docx
9 11 25 14 44 6 41 15 57 9 39 16 41 2 58 8 43 12 4.docx
ransayo
 
Java Lab Manual
Java Lab ManualJava Lab Manual
Java Lab Manual
Naveen Sagayaselvaraj
 
DeVry GSP 115 Week 3 Assignment latest
DeVry GSP 115 Week 3 Assignment latestDeVry GSP 115 Week 3 Assignment latest
DeVry GSP 115 Week 3 Assignment latest
Atifkhilji
 
Cis247 i lab 3 overloaded methods and static methods variables
Cis247 i lab 3 overloaded methods and static methods variablesCis247 i lab 3 overloaded methods and static methods variables
Cis247 i lab 3 overloaded methods and static methods variablessdjdskjd9097
 
Cis247 a ilab 3 overloaded methods and static methods variables
Cis247 a ilab 3 overloaded methods and static methods variablesCis247 a ilab 3 overloaded methods and static methods variables
Cis247 a ilab 3 overloaded methods and static methods variablescis247
 
Mechanical Engineering Homework Help
Mechanical Engineering Homework HelpMechanical Engineering Homework Help
Mechanical Engineering Homework Help
Matlab Assignment Experts
 
Assignment 2 linear regression predicting car mpg
Assignment 2 linear regression predicting car mpg Assignment 2 linear regression predicting car mpg
Assignment 2 linear regression predicting car mpg
ssuserf9c51d
 
Cis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee classCis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee classsdjdskjd9097
 
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docxCASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
keturahhazelhurst
 
Cis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classCis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classccis224477
 
Cis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classCis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classcis247
 
Lambdas puzzler - Peter Lawrey
Lambdas puzzler - Peter LawreyLambdas puzzler - Peter Lawrey
Lambdas puzzler - Peter Lawrey
JAXLondon_Conference
 

Similar to College for women department of information science (20)

Procedure to create_the_calculator_application java
Procedure to create_the_calculator_application javaProcedure to create_the_calculator_application java
Procedure to create_the_calculator_application java
 
Cs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUALCs2312 OOPS LAB MANUAL
Cs2312 OOPS LAB MANUAL
 
JavaProgrammingManual
JavaProgrammingManualJavaProgrammingManual
JavaProgrammingManual
 
Jsf intro
Jsf introJsf intro
Jsf intro
 
Verilog TASKS & FUNCTIONS
Verilog TASKS & FUNCTIONSVerilog TASKS & FUNCTIONS
Verilog TASKS & FUNCTIONS
 
Angular 16 – the rise of Signals
Angular 16 – the rise of SignalsAngular 16 – the rise of Signals
Angular 16 – the rise of Signals
 
Cis247 a ilab 3 overloaded methods and static methods variables
Cis247 a ilab 3 overloaded methods and static methods variablesCis247 a ilab 3 overloaded methods and static methods variables
Cis247 a ilab 3 overloaded methods and static methods variables
 
9 11 25 14 44 6 41 15 57 9 39 16 41 2 58 8 43 12 4.docx
9 11 25 14 44 6 41 15 57 9 39 16 41 2 58 8 43 12 4.docx9 11 25 14 44 6 41 15 57 9 39 16 41 2 58 8 43 12 4.docx
9 11 25 14 44 6 41 15 57 9 39 16 41 2 58 8 43 12 4.docx
 
Java Lab Manual
Java Lab ManualJava Lab Manual
Java Lab Manual
 
DeVry GSP 115 Week 3 Assignment latest
DeVry GSP 115 Week 3 Assignment latestDeVry GSP 115 Week 3 Assignment latest
DeVry GSP 115 Week 3 Assignment latest
 
Cis247 i lab 3 overloaded methods and static methods variables
Cis247 i lab 3 overloaded methods and static methods variablesCis247 i lab 3 overloaded methods and static methods variables
Cis247 i lab 3 overloaded methods and static methods variables
 
Cis247 a ilab 3 overloaded methods and static methods variables
Cis247 a ilab 3 overloaded methods and static methods variablesCis247 a ilab 3 overloaded methods and static methods variables
Cis247 a ilab 3 overloaded methods and static methods variables
 
Mechanical Engineering Homework Help
Mechanical Engineering Homework HelpMechanical Engineering Homework Help
Mechanical Engineering Homework Help
 
CS2309 JAVA LAB MANUAL
CS2309 JAVA LAB MANUALCS2309 JAVA LAB MANUAL
CS2309 JAVA LAB MANUAL
 
Assignment 2 linear regression predicting car mpg
Assignment 2 linear regression predicting car mpg Assignment 2 linear regression predicting car mpg
Assignment 2 linear regression predicting car mpg
 
Cis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee classCis247 i lab 2 of 7 employee class
Cis247 i lab 2 of 7 employee class
 
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docxCASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
CASE STUDY InternetExcel Exercises, page 434, textRecord your.docx
 
Cis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classCis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee class
 
Cis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee classCis247 a ilab 2 of 7 employee class
Cis247 a ilab 2 of 7 employee class
 
Lambdas puzzler - Peter Lawrey
Lambdas puzzler - Peter LawreyLambdas puzzler - Peter Lawrey
Lambdas puzzler - Peter Lawrey
 

More from AMMY30

After reviewing the Coleman (2016) article on executive compensation.docx
After reviewing the Coleman (2016) article on executive compensation.docxAfter reviewing the Coleman (2016) article on executive compensation.docx
After reviewing the Coleman (2016) article on executive compensation.docx
AMMY30
 
After reviewing the chapter on Recognizing Contributions, perform .docx
After reviewing the chapter on Recognizing Contributions, perform .docxAfter reviewing the chapter on Recognizing Contributions, perform .docx
After reviewing the chapter on Recognizing Contributions, perform .docx
AMMY30
 
After reviewing the chapter on Recognizing Contributions, perform a .docx
After reviewing the chapter on Recognizing Contributions, perform a .docxAfter reviewing the chapter on Recognizing Contributions, perform a .docx
After reviewing the chapter on Recognizing Contributions, perform a .docx
AMMY30
 
After reviewing the background materials and doing your own research.docx
After reviewing the background materials and doing your own research.docxAfter reviewing the background materials and doing your own research.docx
After reviewing the background materials and doing your own research.docx
AMMY30
 
After reviewing the articles and videos, please address the followin.docx
After reviewing the articles and videos, please address the followin.docxAfter reviewing the articles and videos, please address the followin.docx
After reviewing the articles and videos, please address the followin.docx
AMMY30
 
After reviewing Georgia v. Randolph and Fernandez v. Californi.docx
After reviewing Georgia v. Randolph and Fernandez v. Californi.docxAfter reviewing Georgia v. Randolph and Fernandez v. Californi.docx
After reviewing Georgia v. Randolph and Fernandez v. Californi.docx
AMMY30
 
After reviewing chapter 11 of the E-Text and the Required Resources .docx
After reviewing chapter 11 of the E-Text and the Required Resources .docxAfter reviewing chapter 11 of the E-Text and the Required Resources .docx
After reviewing chapter 11 of the E-Text and the Required Resources .docx
AMMY30
 
After reading Library ArticlesDevine, K., Kloppenborg, .docx
After reading Library ArticlesDevine, K., Kloppenborg, .docxAfter reading Library ArticlesDevine, K., Kloppenborg, .docx
After reading Library ArticlesDevine, K., Kloppenborg, .docx
AMMY30
 
After reading Trifles by Susan Glaspell complete the following works.docx
After reading Trifles by Susan Glaspell complete the following works.docxAfter reading Trifles by Susan Glaspell complete the following works.docx
After reading Trifles by Susan Glaspell complete the following works.docx
AMMY30
 
After reading through Chapter 1, the focus was on targeting the five.docx
After reading through Chapter 1, the focus was on targeting the five.docxAfter reading through Chapter 1, the focus was on targeting the five.docx
After reading through Chapter 1, the focus was on targeting the five.docx
AMMY30
 
After reading There Is No Unmarked Woman, by Deborah Tannen, a.docx
After reading There Is No Unmarked Woman, by Deborah Tannen, a.docxAfter reading There Is No Unmarked Woman, by Deborah Tannen, a.docx
After reading There Is No Unmarked Woman, by Deborah Tannen, a.docx
AMMY30
 
After reading the U.S. Constitution and the Amendments respond t.docx
After reading the U.S. Constitution and the Amendments respond t.docxAfter reading the U.S. Constitution and the Amendments respond t.docx
After reading the U.S. Constitution and the Amendments respond t.docx
AMMY30
 
After reading the two short primary source documents listed below, c.docx
After reading the two short primary source documents listed below, c.docxAfter reading the two short primary source documents listed below, c.docx
After reading the two short primary source documents listed below, c.docx
AMMY30
 
After reading the section titled Dominant Microprocessor Company In.docx
After reading the section titled Dominant Microprocessor Company In.docxAfter reading the section titled Dominant Microprocessor Company In.docx
After reading the section titled Dominant Microprocessor Company In.docx
AMMY30
 
After reading the section titled Dominant Microprocessor Compan.docx
After reading the section titled Dominant Microprocessor Compan.docxAfter reading the section titled Dominant Microprocessor Compan.docx
After reading the section titled Dominant Microprocessor Compan.docx
AMMY30
 
After reading the paper for this week, Steinfield C, LaRose R, C.docx
After reading the paper for this week, Steinfield C, LaRose R, C.docxAfter reading the paper for this week, Steinfield C, LaRose R, C.docx
After reading the paper for this week, Steinfield C, LaRose R, C.docx
AMMY30
 
After reading the Martin Luther King, Jr. speech in the attached lin.docx
After reading the Martin Luther King, Jr. speech in the attached lin.docxAfter reading the Martin Luther King, Jr. speech in the attached lin.docx
After reading the Martin Luther King, Jr. speech in the attached lin.docx
AMMY30
 
After reading the material from Shafer-Landau concerning the appeal .docx
After reading the material from Shafer-Landau concerning the appeal .docxAfter reading the material from Shafer-Landau concerning the appeal .docx
After reading the material from Shafer-Landau concerning the appeal .docx
AMMY30
 
After reading the IMAA article this week on Effective Manageme.docx
After reading the IMAA article this week on Effective Manageme.docxAfter reading the IMAA article this week on Effective Manageme.docx
After reading the IMAA article this week on Effective Manageme.docx
AMMY30
 
After reading the essay, Why Rational People Buy into Conspiracy Th.docx
After reading the essay, Why Rational People Buy into Conspiracy Th.docxAfter reading the essay, Why Rational People Buy into Conspiracy Th.docx
After reading the essay, Why Rational People Buy into Conspiracy Th.docx
AMMY30
 

More from AMMY30 (20)

After reviewing the Coleman (2016) article on executive compensation.docx
After reviewing the Coleman (2016) article on executive compensation.docxAfter reviewing the Coleman (2016) article on executive compensation.docx
After reviewing the Coleman (2016) article on executive compensation.docx
 
After reviewing the chapter on Recognizing Contributions, perform .docx
After reviewing the chapter on Recognizing Contributions, perform .docxAfter reviewing the chapter on Recognizing Contributions, perform .docx
After reviewing the chapter on Recognizing Contributions, perform .docx
 
After reviewing the chapter on Recognizing Contributions, perform a .docx
After reviewing the chapter on Recognizing Contributions, perform a .docxAfter reviewing the chapter on Recognizing Contributions, perform a .docx
After reviewing the chapter on Recognizing Contributions, perform a .docx
 
After reviewing the background materials and doing your own research.docx
After reviewing the background materials and doing your own research.docxAfter reviewing the background materials and doing your own research.docx
After reviewing the background materials and doing your own research.docx
 
After reviewing the articles and videos, please address the followin.docx
After reviewing the articles and videos, please address the followin.docxAfter reviewing the articles and videos, please address the followin.docx
After reviewing the articles and videos, please address the followin.docx
 
After reviewing Georgia v. Randolph and Fernandez v. Californi.docx
After reviewing Georgia v. Randolph and Fernandez v. Californi.docxAfter reviewing Georgia v. Randolph and Fernandez v. Californi.docx
After reviewing Georgia v. Randolph and Fernandez v. Californi.docx
 
After reviewing chapter 11 of the E-Text and the Required Resources .docx
After reviewing chapter 11 of the E-Text and the Required Resources .docxAfter reviewing chapter 11 of the E-Text and the Required Resources .docx
After reviewing chapter 11 of the E-Text and the Required Resources .docx
 
After reading Library ArticlesDevine, K., Kloppenborg, .docx
After reading Library ArticlesDevine, K., Kloppenborg, .docxAfter reading Library ArticlesDevine, K., Kloppenborg, .docx
After reading Library ArticlesDevine, K., Kloppenborg, .docx
 
After reading Trifles by Susan Glaspell complete the following works.docx
After reading Trifles by Susan Glaspell complete the following works.docxAfter reading Trifles by Susan Glaspell complete the following works.docx
After reading Trifles by Susan Glaspell complete the following works.docx
 
After reading through Chapter 1, the focus was on targeting the five.docx
After reading through Chapter 1, the focus was on targeting the five.docxAfter reading through Chapter 1, the focus was on targeting the five.docx
After reading through Chapter 1, the focus was on targeting the five.docx
 
After reading There Is No Unmarked Woman, by Deborah Tannen, a.docx
After reading There Is No Unmarked Woman, by Deborah Tannen, a.docxAfter reading There Is No Unmarked Woman, by Deborah Tannen, a.docx
After reading There Is No Unmarked Woman, by Deborah Tannen, a.docx
 
After reading the U.S. Constitution and the Amendments respond t.docx
After reading the U.S. Constitution and the Amendments respond t.docxAfter reading the U.S. Constitution and the Amendments respond t.docx
After reading the U.S. Constitution and the Amendments respond t.docx
 
After reading the two short primary source documents listed below, c.docx
After reading the two short primary source documents listed below, c.docxAfter reading the two short primary source documents listed below, c.docx
After reading the two short primary source documents listed below, c.docx
 
After reading the section titled Dominant Microprocessor Company In.docx
After reading the section titled Dominant Microprocessor Company In.docxAfter reading the section titled Dominant Microprocessor Company In.docx
After reading the section titled Dominant Microprocessor Company In.docx
 
After reading the section titled Dominant Microprocessor Compan.docx
After reading the section titled Dominant Microprocessor Compan.docxAfter reading the section titled Dominant Microprocessor Compan.docx
After reading the section titled Dominant Microprocessor Compan.docx
 
After reading the paper for this week, Steinfield C, LaRose R, C.docx
After reading the paper for this week, Steinfield C, LaRose R, C.docxAfter reading the paper for this week, Steinfield C, LaRose R, C.docx
After reading the paper for this week, Steinfield C, LaRose R, C.docx
 
After reading the Martin Luther King, Jr. speech in the attached lin.docx
After reading the Martin Luther King, Jr. speech in the attached lin.docxAfter reading the Martin Luther King, Jr. speech in the attached lin.docx
After reading the Martin Luther King, Jr. speech in the attached lin.docx
 
After reading the material from Shafer-Landau concerning the appeal .docx
After reading the material from Shafer-Landau concerning the appeal .docxAfter reading the material from Shafer-Landau concerning the appeal .docx
After reading the material from Shafer-Landau concerning the appeal .docx
 
After reading the IMAA article this week on Effective Manageme.docx
After reading the IMAA article this week on Effective Manageme.docxAfter reading the IMAA article this week on Effective Manageme.docx
After reading the IMAA article this week on Effective Manageme.docx
 
After reading the essay, Why Rational People Buy into Conspiracy Th.docx
After reading the essay, Why Rational People Buy into Conspiracy Th.docxAfter reading the essay, Why Rational People Buy into Conspiracy Th.docx
After reading the essay, Why Rational People Buy into Conspiracy Th.docx
 

Recently uploaded

STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
gb193092
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Marketing internship report file for MBA
Marketing internship report file for MBAMarketing internship report file for MBA
Marketing internship report file for MBA
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 

College for women department of information science

  • 1. College for Women Department of Information Science Kuwait University College of Computing Sciences and Engineering Department of Information Science COMP1231 Web Programming Assignment #1 Due Date: Friday, February 26th, 11:59 pm
  • 2. Weight: 7% of Final Grade COMP1231 - ASSIGNMENT 1 2 Table of Contents COMP1231 Assignment 1 ............................................................................................... ............................. 3
  • 3. Function 1: Student Information ............................................................................................... .................... 4 Function 2: Calculate Change ............................................................................................... ........................ 5 Function 3: Miles to Kilometers ............................................................................................... .................... 5 Function 4: Find Min and Max ............................................................................................... ...................... 6 Function 5: Count Occurrences............................................................................ ......................................... 6 Function 6: Convert Number Grade to Letter Grade .................................................................................... 7 Function 7: Reverse the Order of the Array ............................................................................................... ... 7 Function 8: School Days Remaining ............................................................................................... ............. 7 Function 9: Count Vowels ............................................................................................... ............................. 8
  • 4. Function 10: Alphabetical Order...................................................................................... ............................. 8 Submission Procedure and Rules ............................................................................................... ................. 10 Submission Procedure ............................................................................................... .............................. 10 COMP1231 - ASSIGNMENT 1 3 COMP1231 Assignment 1
  • 5. Assignment Type: Individual Assignment 1. Description In this assignment, you are to develop a JavaScript file that contains the implementation of 10 functions. Each function is represented as one step, and marks will be awarded on the completion of each step (each function). Each function is independent and solves a unique problem, as such, treat and implement each function in isolation of the others, that’s is, you should only focus on one problem at a time. PLEASE NOTE: Input validation is NOT required for any function parameter – You may assume that all input parameters provided to your functions, are all valid. 2. Objective • Write decision-making statements and control structures to solve problems • Apply programming logic to solve basic to intermediate problems • Testing and debugging
  • 6. 3. Learning Outcomes: After conducting this assignment students will / will be able to: 1. Acquainted with implementing JavaScript functions 2. Follow instructions, and to implement various requirements 4. Instructions: 1. You are to create ONE JavaScript file which must be named <STUDENT_ID>-functions.js, where STUDENT_ID represents your student number. 2. The implementation for your 10 JavaScript functions must be completed within your <STUDENT_ID>- functions.js file. You are NOT permitted to use any external files or libraries. Using any external libraries will result in a final grade of ZERO for your assignment submission. 3. Your JavaScript functions file must be configured for strict mode (“use strict”)
  • 7. The pages that follow provide the description of the 10 JavaScript functions that you must implement. COMP1231 - ASSIGNMENT 1 4 Function 1: Student Information function _one() Create a JavaScript function that meets the following requirements: • Creates the following variables that assign your unique profile information: o your_name o number_of_courses (this semester),
  • 8. o program o part_time_ job (true/false). • Create a Boolean variable, set to true or false, based on whether you have a part time job. Store the string “have” or “don’t have” into another variable, based on the Boolean. • Display your student information to the cosole (console.log()) as illustrated below: "My name is ???. I’m in the ??? program. I’m currently taking ??? courses." I ??? have a part time job. Where “???” should be replaced with your variable data COMP1231 - ASSIGNMENT 1 5
  • 9. Function 2: Calculate Change function _two(cents) Create a JavaScript function that meets the following requirements: • Is passed an integer parameter, representing a number of Canadian cents. • The function uses the parameter to determine the smallest number of Canadian quarters, dimes, nickels and pennies that are equal to the given (parameter) amount. • Displays the calculated information as illustrated below: Function 3: Miles to Kilometers function _three(miles, kilometers) Create a JavaScript function that meets the following requirements: • Receives two distances, one distance in miles and the other, a distance in kilometers value. • Converts the miles to the equivalent kilometer value
  • 10. • Converts the kilometer value to the equivalent miles • Displays the calculated information as illustrated below: COMP1231 - ASSIGNMENT 1 6 Function 4: Find Min and Max function _four( array ) Create a JavaScript function that meets the following requirements:
  • 11. • Receives an integer array as a parameter • The function transverses the array to determine the minimum and maximum values in the array. • Displays the calculated information as illustrated below: ************** STEP 4 ************** Calling _four([-8, -1, -87, -14, -81, -74, -20, -86, -61, -10]); The minimum value in the array is: -87, the maximum value is - 1 Function 5: Count Occurrences function _five(string, char) Create a JavaScript function that meets the following requirements: • Accepts two input parameters, a string and a character letter. • The function determines the number of occurrences of the character in the string. • Displays the result to the console as illustrated below. ************** STEP 5 **************
  • 12. Calling _five(“map”, “p”); The word map has 1 occurrences of the character p COMP1231 - ASSIGNMENT 1 7 Function 6: Convert Number Grade to Letter Grade function _six( grade ) Create a JavaScript function that meets the following requirements: • Is passed a numeric grade, calculating and displaying the corresponding letter grade based on: 100 - 90 = ‘A+’, 89 - 85 = ‘A’, 84 - 80 = ‘A’, 79 -76 = ‘B+’, 75
  • 13. – 73 = ‘B’, 72 – 70 = ‘B-’, 69 – 66 = ‘C+’, 65 – 63 = ‘C’, 62 – 60 = ‘C-’, 59 – 56 = ‘D+’, 55 – 53 = ‘D’, 52 – 50 = ‘D-’, < 50 = ‘F’ • Displays the result to the console as illustrated below. Function 7: Reverse the Order of the Array function _seven(array) Create a JavaScript function that meets the following requirements: • Receives character array • The function reverses the order of the of the character array. • Displays the results to the console as illustrated below: ************** STEP 7 ************** Calling _seven([j, p, g, F, c, x, A, c, q, I]); Original order array = [j, p, g, F, c, x, A, c, q, I]
  • 14. Reversed order array = [I, q, c, A, x, c, F, g, p, j] Function 8: School Days Remaining function _eight() COMP1231 - ASSIGNMENT 1 8 Create a JavaScript function that meets the following requirements: • Receives no input parameters • Determines the number of days until the end of the school year • Please note the last day of the W2021 School Calendar is: Friday, April 23rd, 2021 • Displays the result to the console as illustrated below Function 9: Count Vowels
  • 15. function _nine(word) Create a JavaScript function that meets the following requirements: • Accepts a string parameter, counting the number of vowels within the string. • The function should be case insensitive, handling both upper and/or lowercase letters. • Displays the result to the console as illustrated below. ************** STEP 9 ************** Calling _nine(“flugelhorn”); Vowel count: A=0, E=1, I=0, O=1, U=1, Y=0 Function 10: Alphabetical Order function _ten(my_string)
  • 16. Create a JavaScript function that meets the following requirements: COMP1231 - ASSIGNMENT 1 9 a. Create a JavaScript function that accepts a string parameter, then organizes the string so it’s in alphabetical order. b. The function is case insensitive, that is, it does not distinguish any difference between upper or lower case. c. Displays the result to the console as illustrated below. ************** STEP 10 ************** Calling _ten(“Sameer”); The string converted in alphabetical order is: aeemeS COMP1231 - ASSIGNMENT 1 10
  • 17. Submission Procedure and Rules Please ensure to remove all instances of the following from your final submission solution: • document.write() • innerHTML() • alert() • any commented code • You should only have one console.log() per function, so any debug related console output that you may have used must be removed Submission Procedure 1. In order to complete this assignment, you will need to create the following TWO files. I. <STUDENT_ID>-functions.js As mentioned in the assignment instructions, this is where your functions will be implemented. A template of this file has been provided to you.
  • 18. II. main.html This file represents the HTML file that includes and calls your JavaScript file and functions. You must download and use the main.html file from following location: https://comp1231.gblearn.com/common/assignmentTemplate/as1 /main.html This template contains instructions as to what exactly needs to be modified in this file. Students will be required to download https://comp1231.gblearn.com/common/assignmentTemplate/as1 /main.html and add their student id (matching student_id-functions.js file) and function names. 2. A JavaScript tester file will be made available that you can utilize to assist with the testing of your solution. The file is called s21a1tester.js and is already referenced within the main.html. The test file will call your functions and help you with the validation of your solution. The file is served from gblearn server, and as a consequence you will require an internet connection to run the tester. 3. You must upload both your files (main.html and student_id- functions.js) to the following directory in your
  • 19. GBlearn account on or before the due date: /comp1231/assignments/assignment1/ 4. You must also submit your JavaScript file on my.gblearn.com under comp1231/assignment 1. Avoiding this step will result in a mark of ZERO for your assignment submission. All files/folders must be spelled exactly as specified above (all lowercase without any spaces) 5. Late submissions are graded at a -10% penalty per day (five day maximum) We are going to use Moss (https://theory.stanford.edu/~aiken/moss/ ) to detect similarities in code among all students. There will be zero tolerance for plagiarism. Please be aware. GOOD LUCK! https://comp1231.gblearn.com/common/assignmentTemplate/as1 /main.html https://comp1231.gblearn.com/common/assignmentTemplate/as1 /main.html https://theory.stanford.edu/~aiken/moss/