********Please help to create a \"pseudocode\" and \"UML diagram\" only ********
ID: 3753307 • Letter: #
Question
********Please help to create a "pseudocode" and "UML diagram" only ***********
Build A Report JAVA
Purpose: Exercise, use, Inputs, Outputs, and perform conditional evaluation
Requirements: (Multiple classes/Multiple types of input)
Input:
- Report Owner’s full name and 7 numbers (at least one double and one integer)
- The owner’s name cannot contain any special characters, blank spaces, or numbers
- You must use an if statement and at least one switch statement in your program
- You are not allowed to have static variables or methods in any class except for the class with the main method.
- You have to have at least 2 classes
- You are NOT allowed to use ArrayLists or Vectors, only primitive arrays or string arrays if you want.
Application Operation:
1) Input, via a question in the console, the report owner’s first name as a string and build the last name via input, one character at a time.
- Check, conditionally, to make sure the first name and last name don’t contain any numeric characters, numbers between 0 – 9. If it does you must remove it. The names can not contain any white space either or special characters.
2) Input report name via a request from the console.
3) Input, and display, the total of the numeric input after each input is entered. Average the numeric input, indicate lowest numeric input value and the highest numeric input value for the previous numeric inputs, before the next numeric input is asked for. (Example given in class)
4) Have a program exit input, condition, value available (i.e. if you type -1 the program exists)
5) Create and display a final report that should have the report name, owner and the following:
Numeric output should appear as a table with the following columns: (columns should be underlined)
a) Input Number, b) Highest Number, c) Lowest Number, d) Total (by the row), e) Average Number
6) At the end of the report you must have a grand total for the numeric entries
Explanation / Answer
package javaprg; import java.util.Arrays; public class NumericInput { private double input1; private int input2; private int input3; private int input4; private int input5; private int input6; private int input7; public double getInput1() { return input1; } public void setInput1(double input1) { this.input1 = input1; } public int getInput2() { return input2; } public void setInput2(int input2) { this.input2 = input2; } public int getInput3() { return input3; } public void setInput3(int input3) { this.input3 = input3; } public int getInput4() { return input4; } public void setInput4(int input4) { this.input4 = input4; } public int getInput5() { return input5; } public void setInput5(int input5) { this.input5 = input5; } public int getInput6() { return input6; } public void setInput6(int input6) { this.input6 = input6; } public int getInput7() { return input7; } public void setInput7(int input7) { this.input7 = input7; } public void display(int[] a, int averagenumber){ if(averagenumber > 1 && a.length > 0){ Arrays.sort(a); System.out.println("The minimum is " + a[0]); System.out.println("The maximum is " + maximum(a)); double total =0; for(int k=0;kRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.