Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi, can someone help me with the following? I am new to javascript and would love to see how to do these codes, so i

Hi, can someone help me with the following? I am new to javascript and would love to see how to do these codes, so i could implement it to future projects.
Thanks for your time!
The Following are based on Javascript image text in transcribed
image text in transcribed
image text in transcribed
mathFun.html (20pts) Create a JavaScript program that calculates the maximum, minimum, mean, median and standard deviation values of a set of numbers as well as the number of even numbers, odd numbers, and power-of-2 numbers. o The definition of standard deviation is shown as following where array numbers store the values of a set of numbers, and mean is the mean of the numbers. std = (numbers[i] - mean) {=0 Using prompt pop-up box, ask a user to enter positive numbers one at a time. Also tell them at if they enter a -1 that means they are finished. Display the result in a nicely formatted table in the body of the website. stringFun.html (20pts) Using an input box to receive string from users (no quotation mark needed when user enter the string). For each of the following fun activities, create a button associate with a function. When user click the button, do the input validation first if needed, then display the warning message or results. a. reverseName, that asks the user to enter a person's name in first-last order and displays the name in last-comma-first order. For example, if the user enters "Thomas Jefferson" the output should be "Jefferson, Thomas stringFun.html (20pts) Using an input box to receive string from users (no quotation mark needed when user enter the string). For each of the following fun activities, create a button associate with a function. When user click the button, do the input validation first if needed, then display the warning message or results. a. reverseName, that asks the user to enter a person's name in first-last order and displays the name in last-comma-first order. For example, if the user enters "Thomas Jefferson" the output should be "Jefferson, Thomas" b. getInitiallist, that asks the user to enter a comma-separated list of names. The function should display the initials of all the names in the list. For example: Enter a list of names, separated by commas: Lisa Alexander, Tony Pat, Ross Smith, Max Blair The initials are LA TP RS MB C. WordCount, that asks the user to enter a sentence and display the number of words in it. For example, the input "The quick brown fox jumps over the lazy dog." should return 9. d.createUsername, that asks the user to enter the full name, then display corresponding username. A username consists of: The last name in lowercase, followed by The first name's initial letter in lowercase, followed by The ordinal value of the first name's final letter For example, the name "Tony Alexander" should generate the username alexandert 121". caesarCipher.html (15pts) A Caesar cipher is a simple substitution cipher based on the idea of shifting each letter of the plaintext message a fixed number called the key) of positions in the alphabet. For example, if the key value is 2, the word "Sourpuss" would be encoded as "Uqwtrwuu" (i.e. each character is advanced through the alphabet by 2). You may allow characters towards the end of the alphabet to "fall off" the end. The original message can be recovered by "decoding" it using the negative of the key. Your program should ask the user to enter a message and an integer key, applies the caesar cipher to the message, and then displays the result. (decoding it back to the original is optional). fizzBuzz.html (20pts) Write a program that receive a number n in range of 20 to 50 from user (you need do input valiation), then prints the numbers from 1 to n. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 12c SQL

Authors: Joan Casteel

3rd edition

1305251032, 978-1305251038

More Books

Students also viewed these Databases questions

Question

=+ 2. Do you have a license and do you have insurance?

Answered: 1 week ago