Multiple Functions
Due: 9/24/03 at 1:00 pm
Write a Java application that provides
the following capabilities:
General Program requirements:
The completed assignment should be sent to
[email protected]
The following is a sample execution of an acceptable program:
Please enter an integer x1:> 2
Please enter an integer x2:> 3
Please enter an integer y1:> 8
Please enter an integer y2:> -5
The distance between the points (2,3) and (8,-5) is:
13.03
Would you like the distance between two other points (1-yes, 2-no) :> 1
Please enter an integer x1:> 2
Please enter an integer x2:> 3
Please enter an integer y1:> 8
Please enter an integer y2:> -a
ERROR --- Y2 must be numeric !
Please enter an integer x1:> 4
Please enter an integer x2:> 3
Please enter an integer y1:> 6
Please enter an integer y2:> 3
The distance between the points (4,3) and (6,3) is:
3.16
Would you like the distance between two other points (1-yes, 2-no) :>
2
goodbye!
Specific Requirements
1) Prompt users for up to 10 number.
2) Calculate the Arithmetic mean
3) Calculate the Standard deviation
4) Display answer for both calculations
The following is a sample execution of an acceptable program:
Please enter up to 10 integer values:> 20, 23, 25, 26
The arithmetic mean is: 23.5
The standard deviation is: 2.6457513
Specific Requirements:
1) Prompt users entered string.
2) Count number of vowels in string
Example Execution
Character Sorting
The string of character entered is: > "Thebrownfoxjumpedoverthelazydog"
The number of vowels in string = 10
Specific requirements:
1) Prompt users for the value of x.
2) Calculate ex
3)Prompt users for the number of terms (n)
4) Calculate the infinite series
The following is a sample execution of an acceptable program:
Please enter an x value:> 2
Please enter number of terms (n):> 3
The value of ex = 7.38
The value of the infinite series = 6.33
Please enter number of terms (n):>4
The value of the infinite series = 6.35