Question: Basic JavaScript. 1 . Write a script that asks the user to enter 2 numbers, and then output their product. 2 . Write a script

Basic JavaScript.
1. Write a script that asks the user to enter 2 numbers, and then output their product.
2. Write a script that prompts the user for a radius, then the volume of a sphere of that radius should be
calculated and printed.
3. Write a script that prompts the user to keep entering numbers (entering 0 to end) and keep track of the
minimum value entered. At the end, output the minimum value entered.
4. Write a script that will prompt the user to enter numbers (entering nothing i.e. clicking OK, should end
the input process), then sort the numbers using your favorite sorting algorithm and output the sorted
values using document.write (you will need to use an array to store the values entered by the user).
Note: If you have not completed Data Structures, research Bubblesort as a good baseline
sorter to implement for this purpose.
5. Write a script that uses a for loop to output the first 30 Fibonacci numbers.
Recall that Fibonacci numbers start with 0,1, then the previous 2 values are added to get the
next (0,1,1,2,3,5,8,13,21,..etc.). Hint: f[n]=f[n-1]+f[n-2].

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!