Question
1. program to calculate the sum of all the odd numbers from 1 to 100. You should use a loop structure to perform the calculation.
1. program to calculate the sum of all the odd numbers from 1 to 100. You should use a loop structure to perform the calculation.
2. program to calculate the sum of all the even numbers from 1 to 200. You should use a loop structure to perform the calculation.
3. program to calculate the sum of all numbers from 1 to 30. You should use a loop structure to perform the calculation
4. Develop a JavaScript application that will determine the gross pay for each of five employees. The company pays straight time for the first 40 hours worked by each employee and time and a half for all hours worked in excess of 40 hours. You should input the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee and should determine and display the employee's gross pay.
You should perform your calculation for 5 employees using a loop.
5. program to find the larger of 2 numbers and print it on the screen. The user should input the two numbers.
6. program that computes the sum of the squares of all the numbers from 1 to , where is an integer entered by the usEr.Your program should not use a loop.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started