This project focuses on demonstrating your understanding of sequential, selective and repetitive programming statements, methods, and modular programming. Before attempting this project, be sure you have completed all of the

This project focuses on demonstrating your understanding of sequential, selective and repetitive programming statements, methods, and modular programming. Before attempting this project, be sure you have completed all of the reading assignments listed in the syllabus to date, participated in the weekly conferences, and thoroughly understand the examples throughout the chapters. The program requirements include: Create a Java Application naming the Project PRJ2[Last Name][First Initial]. As an example, if your name was Xavier Smith, then the project would be named PRJ2SmithX. Design and implement a Java program that will gather floating point numbers and determine the sum and average of the data entered. Declare all necessary identifiers. Inside a while loop: Accept decimal numbers using a Dialog Input box. Sum the decimal numbers as they are entered. When the sum of the entered decimal numbers is above a total of 100 for the first time: Display a message with a Message Dialog informing the user that the total number is 100. In addition to the warning also display in the Message Dialog the actual total sum at that point. Do not show this message again for any additional entries above 100. Keep a counter for the number of times a new decimal number. Have a prompt asking the user when to end entering decimal numbers. Use a sentinel to end the loop in combination with a prompt. After the loop, call a calculation method that will return the average from the sum and counter. [An example of the construction of a method with its “calling code” is listed at the end of the assignment.] Call another method that will display the results of the processing in the program that will have three lines in a single Message Dialog box containing The total number of entries. The sum of all the entries. The average of the number of entries. nt: A new line is displayed after each \n in the println in the Message Dialog. Once the assignment works correctly, create three screen shots of the results using different data and name the file PRJ2SmithXShot. Cut and paste various Message windows to a single document. The completed project consists of the java file (PRJ2SmithX.java), the test data document (PRJ2TestSmithX.docx), and the screen shot file (PRJ2SmithXShot). Submit each of these files to your WebTycho Project 2 assignment area no later than the due date listed in the syllabus. Additional requirements include: Use JOptionPane.showInputDialog() methods for your user to input their data. Use JOptionPane.showMessageDialog() methods to display your messages. Include a comprehensive set of application test data that you used to test your program. Your test data can be shown in a table that includes prompt, input, expected output, actual output and pass/fail results from the test.

Do you need us to help you on this or any other assignment?


Make an Order Now