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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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