HTML/JavaScript Web Application Answers

Questions answered by Experts: 588

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

the goal of this coding exam is to quickly get off you the ground with the array method every().

input

  • the input will be single line containing an array of objects candidatesList

output

  • the output should be single line containing an array with names of the selected candidates.


input1

[{'name': 'Blake Hodges', 'points':[76, 98, 88, 84]}

output1

['Blake Hodges]


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});


process.stdin.on("end", (_) => {

 inputString = inputString.trim().split("\n").map((str) => str.trim());

 main();

});


function readLine() {

 return inputString[currentLine++];

}


function main() {

 const candidatesList = JSON.parse(readLine().replace(/'/g, '"'));



  

 // Write your code here

}



Bob a builder has come to you to build a program for his business. He needs to determine the square footage of a room in order to buy materials and calculate costs. Bob charges $125 per square metre. The program is going to ask the user to enter the name of a room. It will then ask for the width and length of the room (in meters) to be built. The program will calculate the room area and use this information to generate an approximate cost. Your program will display the room, the total area and the approximate cost to the screen.


WEB230 JavaScript 1 Assignment 3 - Quiz Average In this assignment we will write a JavaScript program to calculate the average of a set of quiz marks. Instructions 1. Create variable containing an array that will contain five or more numbers that represent the marks on quizzes. It is assumed that all quizzes will be out of 10 so the numbers must be values between 0-10. 2. Create a function that will take the array as an argument and return the average of the quizzes. 3. Output a text message with the values of the quizzes, space seperated without brackets. Use a template literal when constructing the output strings (AKA back-ticks, template literals are explained in the section on Strings in Chapter 1). 4. Output a text message with the final average rounded to one decimal place. Again use a teplate literal. 


the goal of this code is quickly to get off the ground with classes.

given playerName, Nitro and speed are inputs write a super class Race with property and methods


inputs

  • the first line of input containing as string playerName
  • the second line of input containing as string Nitro
  • the third line of input containing as string speed

outputs

  • the output consists of multiple lines with the appropriate texts


sample input1

Alyssa

100


sample output1

Race has started

speed 50; Nitro 50

speed 70; Nitro 60

Alyssa is the winner

speed 0; Nitro 60


sample input2

Joel

100

100

sample output2

Race has started

speed 150; Nitro 50

speed 170; Nitro 60

Joel is the winner

speed 0; Nitro 60


given myString, startString and endString as inputs

your task is to get slice from the myString starting from the startString to the endString and log the sliced string in the console.


the output should be contain sliced string including the startString but not end string


input1

Buckjumping

j

i

output1

jump


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});


process.stdin.on("end", (_) => {

 inputString = inputString.trim().split("\n").map((str) => str.trim());

 main();

});


function readLine() {

 return inputString[currentLine++];

}


function main() {

 const myString = readLine();

 const startString = readLine();

 const endString = readLine();


/* Please do not modify anything above this line */


 // Write your code here


}


write a JS program to

  • filter the candidates who have scored more than 75 points in every even


input

  • the input will be single line containing an array of objects candidatesList

output

  • the output should be single line containing an array with names of the selected candidates.


input1

[{'name': 'Blake Hodges', 'points':[76, 98, 88, 84]}

output1

['Blake Hodges]


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});


process.stdin.on("end", (_) => {

 inputString = inputString.trim().split("\n").map((str) => str.trim());

 main();

});


function readLine() {

 return inputString[currentLine++];

}


function main() {

 const candidatesList = JSON.parse(readLine().replace(/'/g, '"'));



  

 // Write your code here

}





tax criteria

salary tax percentage

>= 50000 5

>= 1000000 10


quick tip

tax = salary * taxPercentage/100


input 1

stuart

developer

840000


output 1

42000


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});


process.stdin.on("end", (_) => {

 inputString = inputString.trim().split("\n").map((str) => str.trim());

 main();

});


function readLine() {

 return inputString[currentLine++];

}


function main() {

 const name = readLine();

 const role = readLine();

 const salary = JSON.parse(readLine());


 function Employee(name, role, salary) {



  // Write your code here


 }


 const employee1 = // Write your code here


/* Please do not modify anything below this line */


 console.log(employee1.getTaxAmount());

}

















given month as an input write a js program to find corresponding season using switch statment

input1

January

output1

winter

input2

may

output2

summer

input3

october

output3

autumn


"use strict";


process.stdin.resume();

process.stdin.setEncoding("utf-8");


let inputString = "";

let currentLine = 0;


process.stdin.on("data", (inputStdin) => {

 inputString += inputStdin;

});


process.stdin.on("end", (_) => {

 inputString = inputString.trim().split("\n").map((str) => str.trim());

 main();

});


function readLine() {

 return inputString[currentLine++];

}


function main() {

 const month = readLine();


/* Please do not modify anything above this line */


 // Write your code here

}











You can get the character (letter) at the nth index in a string by writing stringVar.charAt(n) or simply stringVar[n]. The returned value will be a string containing only one character (for example, "a"). The first character position is index 0, which causes the last one to be found at position stringVar.length - 1. In other words, an 8 character string has length 8, and its characters have positions 0 and 7. 1. Prompt the user for a string. 2. Write a function called three that will: take a string as a parameter return the 3rd character of the string 3. Display the original string and the result of the function, seperated by a colon (:), to the console. 4. Modify the function so that if the string is shorter than 3 characters it will return the string "too short". 5. Modify the function so that if the third character is a space it will return the word "space". Sample Output User enters "Canada", output: Canada: n; User enters "Of course


Write short HTML 5 codes to do the following:1 Headings - h1 to h6


2 Text formatting


3 Preformatted text (Preserve line breaks and spaces)


4 Sub and Superscript text


5 Insert contact information


6 Inserting horizontal lines


7 Create hyperlink


8 Creating a mailto link - A link that sends an e-mail


10


9 Setting width and height of the images11 Aligning images12 Making a simple table - The most basic form of a table13 Setting the dimension of a table14 Specify the table caption15 Tables with borders - Adding the default table borders16 Creating an unordered list17 Creating an ordered list18 Creating text input fields19 Creating password input fields20 Creating HTML5 new input fields21 Checkboxes and radio buttons22 Select boxes - A drop-down list23 Select box with a pre-selected value24 Grouping of options inside a select box25 Enable multiple selection inside a select box26 Textarea - A multi-line text input field27 Creating butto

LATEST TUTORIALS
APPROVED BY CLIENTS