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.
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.
|