Professional Documents
Culture Documents
Assignment 1
Run-time example:
Enter the name(ID),and at most 3 children's names (separated by
number then '.' Dot)
Mohammad(317856) 1. Yousuf 2. Ibrahim 3. Nabila
2. Write an application that prompts the user for the values, all to
be entered in one line through the keyboard, separated by spaces.
Then the program displays out the count of the values, the
average, the maximum value, the minimum value, and the standard
deviation. The program must be general. The standard deviation
formula is:
Run-time example:
Enter a set of values: 1.2 3 4 5 3.75
There are 5 data
The maximum value is 5
The minimum value is 1.2
The sum is 16.95
Page 1 of 4
The average is 3.39
The standard deviation is 1.4179
Sample Output
Average : 3
Standard Deviation : 1.58
Page 2 of 4
Sample Output
Books :
Title
Let us C
Authors
Richtie
Dennis
Title
Thinking in Java
Authors
Booch
Grade
The Point3D class should have the following methods along with
the constructors. Override the relevant methods.
Page 3 of 4
worker information: name and weekly salary. Supply a test program
to test these classes and methods.
Page 4 of 4