Define statements to define the constants, C/C++ Programming

the problem description.

The order of the C Program should be as follows:

Variables and constants

  • Use #define statements to define the constants.
  • Use arrays to store the data, median values, median map and counts.

Read Data

  • Read each individual data item from the file using an appropriate method into a two dimensional array.
  • Close the file when finished.

Median

  • Calculate and store the median for each row and column.
  • Determine and store the values for the Median Map.
  • Calculate the counts for each row and column in the Median Map where the value is 1, 0 or -1.
  • Display the Median Map and counts.

 PART D - MATLAB

Using an appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description.

The order of the MatLab Program should be as follows:

Variables and constants

  • Use two dimensional arrays to store the data, medians and maps.

Read Data

  • Read each individual data item from the file using an appropriate method into a two dimensional array.
  • Close the file when finished.

Median

  • Calculate and store the median for each row and column for an unknown number of rows and columns.
  • Determine and store the values for the Median Map.
  • Calculate the counts for each row and column for the values 1, 0  and -1
  • Display the Median Map and counts.
Posted Date: 3/8/2013 5:58:13 AM | Location : United States







Related Discussions:- Define statements to define the constants, Assignment Help, Ask Question on Define statements to define the constants, Get Answer, Expert's Help, Define statements to define the constants Discussions

Write discussion on Define statements to define the constants
Your posts are moderated
Related Questions

C Program for FUNCTION OF FIND THE FACTORIAL float factorial(float); void main() {           float i=0,c=0;           clrscr();           printf("ENTER THE DIGI

Define Static Storage Class in C Programming? The Static declarations have distinct and important uses. This allows the local variable to keep its previous value when the block

Define Array of Structures? An Array of Structures is an assortment of the same data types which are declared as structures. It is useful to store large and different number of


i need my home work

Create a class Word, representing a word. Two words should be considered equal if they consist of the same sequence of letters and we consider upper case and lower case as equal. F

i am using mobile phone if i want to communicate via massage but that should be very secret

Explain Formatted Input Output with File Pointer? Likewise there are equivalents to the functions scanf and printf which write or read data to files. These are called fscanf a

Input Format: First line starts with T, which is the number of test cases. Each test case contains a string (S). Output Format: For each test case print the minimum number of ch