< previous page
page_769
next page >
Page 769
Sample Input:
0 3 4 0 0 0 6 8
5 13 6 0 0 0 2 3
2 6 2 7 3 0 10 0
0 0 4 15 4 1 6 0
0 0 7 12 6 9 10 4
5 0 6 10 6 4 8 0
A star is probably located in the area covered by the array element a
[i][j]
if the following is the case:
(a[i][j]
+ sum of the 4 surrounding intensities) / 5.0 > 6.0
Ignore possible stars along the edges of the array.
Input:
A title
An array of intensities
Output:
The desired output is a star map containing asterisks where you have found a star and blanks elsewhere. For example,
- - - - - - - - - - - - - - - - - - - - - - - - -
:
:
: *
:
: *
:
: * * *
:
:
Print two blanks for the no star case. The presence of a star should be indicated by a blank, followed by an asterisk. The chart should have a border and be labeled with the title.
< previous page
page_769
next page >