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

  Find out an article which explains how files are organized

find an article that describes how files are organized on a website. what are two best practices regarding web file

  Design an online modified version of the game tic-tac-toe

The Modified Tic-Tac-Toc Game- Design and implement an online modified version of the game Tic-Tac-Toe using Internet domain sockets.

  What is the modulation used in the us tdma

What is the modulation used in the US TDMA (ie, IS-136) system, and what is it in GSM (again, the original version, used in 2G)?

  Describes a function named insidecircle

Describes a function named insideCircle

  Transitions between states of ready run and blocked

The following state transition table is a simplified model of process management, with the labels representing transitions between states of READY, RUN, BLOCKED, AND NONRESIDENT

  Which there are 200 total unites available in the system

A system has five active processes(A-E) and one type of resource, that there are 200 total unites available in the system. the current state of the system is shown in the table below.

  How the design patterns that you found support a key aspect

Discuss how the design patterns that you found support a key aspect of software design such as scalability, adaptability, security, dependability, etc.

  Develop systems administration procedures

Develop systems administration procedures to configure and manage host-based security capabilities (firewalland anti-virus/anti-malware).

  Sketch a diode transistor nand circuit

Sketch a diode-transistor NAND circuit and explain the operation of the circuit. - Explain the concept of minimum β and the purpose of the pull-down resistor.

  You are a network support technician for a college

explain why each step is necessary. Suppose that your troubleshooting methodology leads you to determine that the problems was caused by a malfunctioning gateway. Suggest ways in which the problem could have been prevented.

  Who is to say what can and cannot be posted on the web

There are concerns about Web content at levels. Parents want to protect their children from pornography. Who is to say what can and cannot be posted on the Web?

  Determine maximum frequency at which n-bit counter operate

A flip-flop has a p ns delay from the clock transition until its output changes. Assume a gate delay of g ns for each gate used in the circuit.

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