Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

2. Identify issues/causes for the apparent conflict.

Answered: 1 week ago