HTML/JavaScript Web Application Answers

Questions: 588

Answers by our 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 & Filtering

Submarine
Given two numbers totalTorpedos, torpedosFired as inputs, write a super class Submarine with property and methods as below,
Property Description
isSubmerged It should contain a boolean value to indicate whether the submarine is submerged or not.
Method Description
dive When this method is called, it should set the value of isSubmerged to true and log "Submarine Submerged" text in the console.
surface When this method is called, it should set the value of isSubmerged to false and log "Submarine Surfaced" text in the console.
Add a sub class weaponUnit which extends to Submarine with the below properties and methods,
Create an array of 20 entries.
search these entries by different algorithms.

What is the difference between static and dynamic and enterprise web application


How to perform Sum and Difference in jQuery:


Given two strings inputString and subString as inputs, write a JS program to slice the inputString if it includes the subString. Slice the inputString starting from the subString to the end of the inputString.Input

  • The first line of input contains a string inputString
  • The second line of input contains a string subString


Sample Input 1

JavaScript

S

Sample Output 1

Script

"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 inputString = readLine();

 const subString = readLine();

  

/* complete the function*/

}




i. Login page with username and password


ii. Contact form with Passport picture, Submit button


a. Create a folder with ‘’ My First Project_Student ID’’. Also, use HTML to create the main heading as ‘’MELCOM WEBSITE’’


b. For you to validate the login page and form. It is important to write JavaScript to ensure the accuracy of the form element before submission.


c. Provide five (5) images of your choice and include your Passport picture/image for the entire webpage.


d. Link the pages to each section to ensure effective navigation of the pages.


e. Use your skills in JavaScript to provide dynamism to your pages to meet your design.




Note:


a. You are required to bring texts of your own, paragraph, line break, and headings


b. Use any color of your choice where appropriate also use font style and font size where no further instruction is given.


Given two strings inputString and subString as inputs, write a JS program to slice the inputString if it includes the subString. Slice the inputString starting from the subString to the end of the inputString.


"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++];

}


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


function main() {

 let inputString = readLine();

 const subString = readLine();

  

 /* Write your code here */

  

  }

}



Given an array

  1. myArray of numbers, write a JS program to perform the following steps and log the result. Multiply each value with 9.
  2. Subtract 20 from each value.
  3. Multiply each value with 7.
  4. Log the values of the resulting array separated by a space.


"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++];

}


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


function main() {

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


 /* Write your code here */

  

}



Given an array

myArray of numbers, write a function to square the alternate numbers of the myArray, starting from index 0 using the array method map.Input

  • The input will be a single line containing an array myArray

Output

  • The output should be a single line containing an array with alternate numbers squared

"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++];

}


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


function main() {

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

  

 /* Write your code here */


}


kindly share the following code



Create a React App that displays list of users from an array "Two dimensional" [ values : name, surname, age , location ], create a function to check users age, conditions [ if users age is 18 display 'You are old enough to code' else 'You are not old enough to code'] 



Display :



Name | surname and age - 'if statement results here',


LATEST TUTORIALS
APPROVED BY CLIENTS