Question: As a junior developer at IT Solutions, you are requested to create the following programs. Answer ALL the questions in this section. Question 1 (

As a junior developer at IT Solutions, you are requested to create the following programs.
Answer ALL the questions in this section.
Question 1(20 Marks)
Write a complete Java program called Repeat that uses a for loop structure to prompt the user to enter five numbers. Include an output statement (System.out) to display the sum of all five numbers at the end of the loop and the average.
Question 2(20 Marks)
Write a complete Java program using a while loop structure, name your program Q2. The program prompts the user to enter a series of names, and enters "1" to stop the loop. Output the total number of names entered using a System.out statement. Your sentinel value is "1".
Question 3(20 Marks)
Write a complete Java program called Q3 that prompts the user to input two integer values and outputs the largest and smallest numbers. The program includes JOptionPane for both the input and output statements. (Your program must include decision statements)
Question 4(20 Marks)
Write a Java program called Decision that includes a while loop to prompt the user to enter 5 marks using the JOptionPane statement and a System.out statement to output a message inside the loop highlighting a pass mark >=50 and <=100. Any other mark will output a message stating it's a fail. Example of the expected output is as follows:
55 is a pass
12 is a fail

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!