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

C program to change feet and inches into meter, Aim: To implement a progra...

Aim: To implement a program to convert distance given in feet and inches into meters and centimeters and vice versa. Code:                         class mcm; class

My program, palindrome program with minimum character replacements

palindrome program with minimum character replacements

Write code to implement constructor, Study the following  class diagram, ad...

Study the following  class diagram, additional information  and answer  the  questions that follow: MovieTicket movieName: string TicketPrice: doub

Program of sorting algorithms , The program sorting.cpp contains a main f...

The program sorting.cpp contains a main function for testing the operation of several sort algorithms over various data sizes and data set organisations. The program understands

CarDealership, ABC Car Dealership needs your help to update the ordering sy...

ABC Car Dealership needs your help to update the ordering system. This car dealer is selling four types of vehicles: Sedan, Truck, SUV, and mini Van. And each type of vehicle can h

.luminous jewels, Byteland county is very famous for luminous jewels. Lumin...

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Pointer, how to use a pointer variable?

how to use a pointer variable?

Program, Write a ‘C’ program to accept any 3 digit integer number from the ...

Write a ‘C’ program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.

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