Write a program that takes an array containing the


Problem

You work for the Jet Propulsion Laboratory. Your supervisor wants you to write a program that takes an array containing the digitized representation of a picture of the night sky and locates the stars on it. Each element of the array represents the amount of light hitting that portion of the image when the picture was taken. Intensities range from 0 to 20

A star probably is located in the area covered by the array element Row, Column, if the following is the case: (A(Row, Column) + sum of the 4 surrounding intensities) / 5 > 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, such as:

Display two blanks for the "no star" case. Indicate the presence of a star by a blank, followed by an asterisk. Give the chart a border and label it with the title.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that takes an array containing the
Reference No:- TGS02652888

Expected delivery within 24 Hours