Find and correct the errors in your program

Assignment Help Computer Engineering
Reference no: EM131857384

Problem

The Galileo spacecraft sends photos taken in space back to Earth as a stream of numbers. Your job is to take a matrix (two-dimensional array) of the numbers and print it as a negative picture. If the numbers received represent levels of brightness, then one approach to generating a picture is to print a dark character (such as $) when the brightness level is low and print a light character (such as a blank or a period) when the level is high. Unfortunately, errors in transmission sometimes occur. Thus, your program should first attempt to find and correct these errors. Assume that a value is in error if it differs by more than one from each of its four neighboring values. Correct the erroneous value by giving it the average of its neighboring values, rounding it to the nearest integer.

Note that values on the corners or boundaries of the matrix have to be processed differently from the values on the interior. Your program should print a negative image of the corrected picture on a new page.

Reference no: EM131857384

Questions Cloud

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)
What do you think they did about training in thier plants : IN the treatment group firm managers received five months of extensive management training from a large international consulting group.
Healthcare center in a major american city : You have just opened a healthcare center in a major American city. You have a handful of employees and your main business is to provide
Which is more effective in motivation of salespeople : "It depends!" That's the most common response to the question, "which is more effective in motivation of salespeople, money or recognition?

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