Question: Write in JAVA Don't copy paste from chatgpt 1 . Write a program with a while loop that will display numbers in the range 1

Write in JAVA
Don't copy paste from chatgpt
1. Write a program with a while loop that will display numbers in the range 1 to 30, divisible by 3.
2. Prepare a program that prints even numbers in the range 1 to 30. Use a for loop and a continue
statement.
3. Prepare an alphabet function that takes the letter x as an argument and displays the letters 'a' to x.
Use a while loop.
4. Write a program that uses do - while statements to add integers from 1 to x.
5. Prepare a function that uses the for statement to sum the even numbers in the range 0 to x.
Use the modulo% operator.
6. Prepare a program that displays numbers from -100 to 100 in descending order. Numbers
should be divisible by 2, but not divisible by 3 and 8. Complete the task using the continue
statement.
7. During the ski jumping competition the competitor receives style marks from 5 judges. The
final grade for style is equal to the sum of the three that will remain after rejecting the extreme marks (i.e. the smallest and the largest). Write a program that reads 5 numbers from 0
to 20 into an array, and then calculates the style marks according to the rules above.
8. Write an algorithm that will fill the square table as shown below and display n rows and columns.
Below is an example for n equal to 5
11111
12222
12333
12344
12345
9. Implement the algorithm that calculates the fibonacci numbers using the recursive and iterative method

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 Databases Questions!