Design a program that will gather a group of floating point

Assignment Help JAVA Programming
Reference no: EM131270262

Project

This project focuses on the use of 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 project requirements include:

1. Design and implement a Java program that will gather a group of floating point numbers and determine the sum and average of the data entered. The program should use separate methods for inputting the data, calculating the sum, calculating the average, and displaying the results. A sentinel value should be used to indicate the user has completed entering their numbers. The output should display a message that includes the count of the numbers entered, the sum of the numbers and the average of the numbers. If the sum of the numbers is greater than 100, a warning message should be displayed indicating "values have exceeded a sum 100".

2. Additional requirements include:

a. Use JOptionPane.showInputDialog() methods for your user to input their data
b. Use JOptionPane.showMessageDialog() methods to display your messages.
c. Include a comprehensive set of application test data that you used to test your program. Similar to Project 1, your test data can be shown in a table that includes input data, expected output, actual output and pass/fail results from the test.

Submission requirements:

Your deliverables include a Java file and a Word document. The Java file should be named Yournamep2.java. Your word document should include your test table and be named Yournamep2.doc. Your completed assignment should be submitted to your Project 2 assignment area no later than the due date listed in the syllabus.

Reference no: EM131270262

Questions Cloud

Write boolean equations for the next state and output : Describe in words what the state machine in Figure 3.69 does. Using binary state encodings, complete a state transition table and output table for the FSM. Write Boolean equations for the next state and output and sketch a schematic of the FSM.
Operations and the economy : The US economy is clearly a lot better than the collapse in 2008. The big three automakers are actually all profitable. The Maryland state budgets are dismal but you can see the growth in terms of new construction all over the state, both residential..
How many states does the fsm have : You are designing an elevator controller for a building with 25 floors. The controller has two inputs: UP and DOWN. It produces an output indicating the floor that the elevator is on. There is no floor 13. What is the minimum number of bits of sta..
Dead weight loss a rising from monopoly equilibrium : The marginal cost is graphed below, what is special or interesting about this marginal costfunction? Verify the monopolist equilibrium is (Q=20,P=60). What is the perfectly competitive equilibrium? Calculate dead weight loss a rising from the mono..
Design a program that will gather a group of floating point : Design and implement a Java program that will gather a group of floating point numbers and determine the sum and average of the data entered.
Describe key elements of the role that congress plays : Describe key elements of the role that Congress plays within the U.S. federal system, with particular focus on Congress' ability to reflect the will of the people. Support your argument with at least two concrete examples.
Domestic and international markets : How does international trade affect the prices in the domestic market and decisions related to firms to compete in both domestic and international markets?
Environmental protection laws : We live in a country where environmental protection laws provide often questionable "protection" for US citizens. While you must evaluate whether you believe the following sources are accurate or not, here is a sampling current issues that affect you..
Calculate the average of the five grades passed in : Calculate the average of the 5 grades passed in and display the average with 1 decimal place and also display the letter grade.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Which is the best character high value

When updating a master file with data from a transaction file, what should happen for an addition record when a match is found in the master file?

  Short java paper

Using the simplified OOD methodology:

  Write a c program that accepts a month and day

Write a C program that accepts a month and day (for example, June 14) from the keyboard as input. Store this information in a string called date

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Compare and determine the smallest number

The main method that begins execution of Java application

  What would be classes of the following objects

What types of values do the following modules/methods return, and what type of arguments do they take?

  Object from question 1 manage its display

Write a Java statement to have the object from question 1 manage its display area by dividing it into 3 rows which have 4 columns each.

  Implement the fraction class

Implement the Fraction Class, Add the following functions into the definition of the Fraction class above main. The main function already has the calls to those functions written. You must write the required functions into the Fraction class such..

  What is the range of all primitive data types

What is the range of all primitive data types. Default value (for fields/instance variable ) for any Object type is null. What is the Java API(Application Programming interface)?

  Write a program that simulates a simple calculator

Write a program that simulates a simple calculator. It reads two integers and a character. If the character is a +, the sum is printed; if it is a -, the difference is printed; if it is a *, the product is printed; if it is a /, the quotient is pr..

  How many years we think that animal should live

Every animal also has a life expectancy, which is how many years we think that animal should live. The following rules show how to determine the life expectancy

  Create a class to encapsulate the data and behavior

Create a class to encapsulate the data and behavior of a product in a store's inventory. The class should have the following data for an inventory item

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd