Write a program that takes an array

Assignment Help Computer Engineering
Reference no: EM131857387

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.

Reference no: EM131857387

Questions Cloud

Differences in the geology of the earth and the moon : The differences in the geology of the Earth and the Moon. The theory explaining the formation of the Moon.
Design and write a program that reads an array of integers : Design and write a program that reads a 4x4 array of integers from the keyboard and determines whether or not these form a magic square.
Density of a white dwarf : Given that the density of a white dwarf is 109 kg/m3 and that the density of a neutron star is 1017 kg/m3, determine the weights, in tons, of:
Temperatures to fuse heavier and heavier elements : In massive stars, elements heavier than hydrogen, helium, and carbon can be made. Why does it take higher and higher temperatures to fuse
Write a program that takes an array : Write a program that takes an array containing the digitized representation of a picture of the night sky and locates the stars on it.
Blue cloud gets agile : 1. What was the trigger event that led Shel Skinner to adopt Agile?
Prepare a forecast for january and february : A manager of a store that sells and installs spas w to prepare a forecast for January, February, and ants March of next year.
Find and correct the errors in your program : Unfortunately, errors in transmission sometimes occur. Thus, your program should first attempt to find and correct these errors.
What is the relevance of shareholder value-chain activities : What is the relevance of shareholder value-chain activities in consideration of the acquisition of a related business diversification? (Related to LVMH)

Reviews

Write a Review

Computer Engineering Questions & Answers

  What may cause the loss of one control file

Why must a business have its database in ARCHIVELOG mode?

  Discuss the mass flow rate

In film cooling the primary effect is believed to be due to the energy put into or taken out of the boundary layer, rather than the mass of fluid injected.

  Write a paper on rfid standards which apply to your industry

Write a 4 page research paper on the RFID standards which apply to your selected industry. If there are no specific standards that you think apply to your selec

  Design and test your program in an iterative manner

Design and test your program in an iterative manner, building from simple functionality to full functionality. For example, first write a program that inputs characters and just stores them in memory.

  Multicast type connection

In DVMRP, routing messages are transmitted through a multicast type connection (a specific multicast address).

  Create a base class to store characteristics about a loan

Create a base class to store characteristics about a loan. Include customer details in the Loan base class such as name, loan number, and amount of loan.

  Discuss the difference between an anomaly-based

Discuss the difference between an anomaly-based and a misuse-based detection model.which would you se to protect a corporate network

  Clustered pipeline architecture

During instruction execution, there are other places where a physical might be freed. Briefly describe where else we need to put freeing logic and explain why

  How will you go about making sure that the proper skills

Do your classmates have all of the right skills to implement such a project? If not, how will you go about making sure that the proper skills are available to get the job done?

  How to print out the matrices

My main problem is that I don't know how to convert a text file like this into the matrice that I can use. I wasn't taught how to in my previous classes and I think my professor imagine that we know how.

  Define what part of a security incident should be logged

What are some of the symptoms that would make you suspicious that your computer has been attacked

  Make a database with a table called "tblstudents"

The third form uses a FormView control that displays one record at time. give buttons that allow the user to display a new record in the FormView control. The FormView control should also contain an "Add" button. When the user clicks this button, p..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd