Write JavaScript programs for the following problems;
- To read a number and to check and display whether it is greater than 100 or not.
- To convert temperatures from Celsius to Fahrenheit or vice versa.
- To calculate multiplication and division of two numbers.
- To read marks for 3 subjects and to calculate and display the percent obtained. Also display the correct position based on the following criteria;
- 80%-100% Distinction
- 60%-79% First Division
- 40%-59% Second Division
- Below 40% Fail
- To read a character and count the number of 'b' characters (for boy) and 'g' characters (for girl). The read process should repeat until the character 'x' is entered. (Hint: use do-while loop)
Instructions:
- Make a separate HTML file for each problem above and name them like question_1.html, question_2.html, and so on.
- Create a single file for all your JavaScript code and name it as scripts.js. Use reference to this file from all HTML files.
- Try using only the materials that we covered in the class so far. Avoid using any complex JavaScript functions and objects.
- Problem #1 has already been done in the class. Make necessary changes so that all the JavaScript code goes to scripts.js file.