Write a c program that detects and reports on areas

Assignment Help Computer Engineering
Reference no: EM132196186

Write a C program that detects and reports on areas of brightness in the night sky...

You should preprocess your data to eliminate noise in following manner: for every negative value you encounter, average the (maximum of) 8 squares around it and replace the value with the average (rounded off to the nearest whole number; use nearbyint from math.h).

If one of the surrounding squares also is negative, use the value of 0 in computing the average.

Your input will consist of a single integer s representing the size of the grid followed by s Ã- s data values. Your output should be presented exactly like the sample run (using your name, of course, instead of mine).

You also must use functions to input your data into an array, to preprocess your array, and one to find and report the bright spots.

In other words you should have at least 3 separate functions defined that each are passed your two-dimensional data array where one function only inputs the array, one function only preprocesses the data to eliminate noise, and one function only finds and reports the bright spots.

These functions must all be called from main. You must define your array local to your main function and pass it into all functions that need it. You may not declare and use any global data (other than possibly preprocessor definitions to define the maximum size of the sky and debugging flags if used).

Reference no: EM132196186

Questions Cloud

Display the contents of a file in curses mode : If the contents of the file are too big to fit on the screen, then your program needs to allow the user to scroll through the output.
Create a 2-d array that are populated by random numbers : Write a C++ program that creates a 2-dimensional array of 10x5 elements that are populated by random numbers between 0 and 49.
Women in pre-modern christian societies like : What were the lives like for women in Pre-Modern Christian Societies like?
Find the maximum of an integral data set : The program will first ask the user to input the number of data values in the set and finally should display a pointer that points to the maximum value.
Write a c program that detects and reports on areas : You should preprocess your data to eliminate noise in following manner: for every negative value you encounter, average the (maximum of) 8 squares around it.
Write a c program to find the count of words : Write a C program to find the count of words and optionally the longest and or shortest words in a string input by the user or coming from a file.
Explain washington legacy to independence : Analyze the reasons why Congress selected Washington as commander-in-chief. Explain Washington's legacy to independence.
Write a c program that fills a two dimensional array element : Write a C program that fills a two dimensional array element with the character 'O' (capital Oh) when the sum of the row and column index.
Make a program to prints out the even integers : Write a c++ program that prints out the even integers between 2 and 100.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Which skills are employers seeking

Beyond the technical skills your degree does/will provide, what other skills are employers seeking? Have a look at job advertisments such as those in CareerOne. Other than technical skills, which skills are employers seeking?

  Cloud computing security policy

Cloud Computing Security Policy

  Define the nonattacking queens problem

Design and implement a recursive program that solves the NonAttacking Queens problem. That is, write a program to determine all ways in which eight queens.

  Determine the effectiveness of a single-pass cross-flow heat

Develop a computer program to numerically determine the effectiveness of a single-pass cross-flow heat exchanger as a function of NTU and Cmin/Cmax.

  How should privacy be managed on these sites

Find a privacy policy for a popular social networking website such as those mentioned above. Are the privacy policies of these sites adequate?

  Which array types can hold object references

What is the default initialization value for a integer array.

  Find the shortest sequence of mips instructions

Find the shortest sequence of MIPS instructions that extracts bits 16 down to 11 from register $t0 and use the value of this field to replace bits 31 down to 26 in register $t1 without changing the other 26 bits of register $t1

  Which syscall is a must for every program

When a syscall is called which register must have the syscall number? Which syscall is a must for every program? Why?

  Design an application that either sums or averages

make a menu bar with a file menu that includes a Perform Action command and an Exit command. The Perform Action command computes either the sum or the average of the rows or columns in the array and displays the result in a message box. The Exit c..

  Create your own simple program using a repetition structure

Create your own simple program using a repetition (i.e., Loop) structure. You decide the theme. Provide an overview (i.e., Program Design) of what your repetition structure is doing

  Make a java application that accepts a positive integer

make a Java application that accepts a positive integer n > 1 as a command line parameter and outputs all strictly increasing integer sequences starting with 1 and ending with n.

  Create a two-dimensionsl array depending on user choices

design an application that either sums or averages the rows or columns of a two-dimensionsl array depending on user choices. Use following data for the array.

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