HTML/JavaScript Web Application Answers

Questions: 680

Answers by our Experts: 648

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

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.

Sample Input

[ 12, 2, 2, 4, 1 ]

Sample Output

616 -14 -14 112 -77

"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 nestedArray of arrays, write a JS program to multiply the values in the sub-array if at least one of its values is even else return zero.

Sample Input 1

[ [ 12, 1, 2, 4, 1 ], [ 18, 20, 30, 45 ], [ 49, 11, 13, 21 ] ]

Sample Output 1

[ 96, 486000, 0 ]

Sample Input 2

[ [ 0, 1 ], [ 1, 3, 4 ] ]

Sample Output 2

[ 0, 12 ]

"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 nestedArray = JSON.parse(readLine());

 /* Write your code here */

}




Your organization won different contracts for a proposals on multimedia projects that involve the designing of websites. These websites should have 4 web pages.

1. Emlanjeni Boat Cruises (EBC offer boat rides)

1.1 Identify the type of a website you will be designing (static or dynamic website). Justify your choice.

1.2 Suggest THREE web site objectives for the project you have chosen

1.3 Design a storyboard for the web site project(for each web page you will develop, make use of graphics to show how the content will be organized).

1.4 Design the surface structure of your web project.

1.6 Develop the website you designed in 1.1 to 1.4. Your website should be developed using the following:

A) HTML

B) CSS for web styling (use external or internal CSS)

C) The website should have a table, ordered list, unordered list

D) Use at least two types of content like: text, graphics, animation, videos)

F) Creativity or going an extra mile and put additional features on the site

Write a Javascript program that asks the user to enter up to 10 golf scores, which are to be stored in an array. You should provide a means for the user to terminate input prior to entering 10 scores. The program should display all the scores on one line and report the average score. Handle input, display and the average calculation with three separate array processing functions

Write a javascript program that asks the user to enter his or her first name and then last name, and then constructs, stores, and displays a third string consisting of the user’s last name followed by a comma, a space, and first name. Use string objects and methods from the string header file. A sample run could look like this: Enter your first name: Paul Enter your last name: Smith Here’s the information in a single string: Smith, Paul 


Write a javascript program that asks the user to enter up to 10 golf scores, which are to be stored in an array. You should provide a means for the user to terminate input prior to entering 10 scores. The program should display all the scores on one line and report the average score. Handle input, display, and the average calculation with three separate array processing functions. 


(Tic-Tac-Toe) Create a class Tic-Tac-Toe that will enable you to write a program to play Tic-Tac-Toe. The 

class contains a private 3-by-3 two-dimensional array. Use an enumeration to represent the value in 

each cell of the array. The enumeration’s constants should be named X, O and EMPTY (for a position 

that does not contain an X or an O). The constructor should initialize the board elements to EMPTY. 

Allow two human players. Wherever the first player moves, place an X in the specified square, and place 

an O wherever the second player moves. Each move must be to an empty square. After each move, 

determine whether the game has been won and whether it’s a draw. Also, allow the player to specify 

whether he or she wants to go first or second.


Write a javascript program that asks the user to enter his or her first name and then last name, and then 

constructs, stores, and displays a third string consisting of the user’s last name followed by a comma, a 

space, and first name. Use string objects and methods from the string header file. A sample run could 

look like this:

Enter your first name: Paul

Enter your last name: Smith

Here’s the information in a single string: Smith, Paul


Write a javascript program that asks the user to enter up to 10 golf scores, which are to be stored in an 

array. You should provide a means for the user to terminate input prior to entering 10 scores. The 

program should display all the scores on one line and report the average score. Handle input, display, 

and the average calculation with three separate array processing functions


Create a React app that allows users to register { name, surname, age, location } and validate the inputs, store registration data inside an array, display list of users on the next component called Users. Allow users to click on current registered users to display a selected user data on the next component called UserInfo, a user should be able to update data/information of registered user.


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS