Question: This question has 4 parts. 1a-d. Again, it's one question with 4 parts. All parts need to be answered correctly. You must: Comment and Format

 This question has 4 parts. 1a-d. Again, it's one question with

This question has 4 parts. 1a-d. Again, it's one question with 4 parts. All parts need to be answered correctly. You must: Comment and Format and Must make sure about indenting. If you don't follow these steps, it will be flagged for review.

This is on Dialog Boxes, loops and Strings- So make sure to use these methods.

This is on Dialog Boxes, loops and Strings Exercise 1a. Show a program containing 2 for loops that prints the following lines using while loops then change to for loops 123456789 10 810 12 14 16 18 20 22 24 26 Exercise 1b. Write a Java program that uses three input dialog boxes to get three integer values from the user. The program then determines the sum and average of the three values and uses a message dialog box to show the results. Test the program with two sets of data and include the results in this report. Make sure to make your message/input dialogs neat and easy to read in this report (you will need to copy/paste them in your document) Sample output: Input Enter the first value: Enter the second value: Enter the third value The sum is 30 The averege is 10.0 Cancel Cancel Exercise 1c. Write a program containing 3 while loops that prints the following lines and show the output for each 9 8 7 6 5 4 3 21 0 1 3 5 7 9 11 13 15 17 19 0 2 4 6 8 10 12 14 16 18 Exercise 1d. Write a program containing 3 for loops that does the same as exercise 2. Show the output from each loop

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!