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

Assignment Help:

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.

Related Discussions:- Define statements to define the constants

What is an incomplete type in c++, Incomplete types refer to pointers in wh...

Incomplete types refer to pointers in which there is no availability of the execution of the referenced location or it points to some location whose value is not available for modi

Define register simply with bit fields, Define register with bit fields? ...

Define register with bit fields? We could define register simply with bit fields: struct DISK_REGISTER { unsigned ready:1; unsigned error_occured:1; unsigned disk_spinni

Why php is sometimes called as embedded scripting language, Why PHP is some...

Why PHP is sometimes called as embedded scripting language? PHP is a high level language that is used to allow users to write and understand it in human readable form and also

College, #question.College life is tough. Eating pizza for every meal is h...

#question.College life is tough. Eating pizza for every meal is hitting you hard. You are looking at working out to stay healthy. You found a web site that tells you how many ca

Determine the capacitor voltage by c program, Write a program to determine ...

Write a program to determine V c for a given value of time (t)   #include stdio.h #include math.h void main() {      char prompt;   float vs,cr,t,vc;   /* input time */

Gaming tracks company for a mobile game developing, We want Guys For Job in...

We want Guys For Job in Gaming Tracks Company for a mobile game developing Project Description: I want a team of game developers for life-time as mobile dev team in my compan

Store first n natural no in a file - c program, Program is to store first n...

Program is to store first n natural no in a file: Write a program to  store first n natural no in a file void main()     {     fstream file;     file.open("studen

.program, Write a c++ program to find the sum of 0.123 ??103 and 0.456 ??10...

Write a c++ program to find the sum of 0.123 ??103 and 0.456 ??102 and write the result in three significant digits

Algorithm, Write an algorithm to print all even numbers in descending order...

Write an algorithm to print all even numbers in descending order and draw the flowchart.

Write Your Message!

Captcha
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