LABORATORY EXERCISE (Lab-III)1
Lab-II: Signal Processing Software System_v2 (SPSS.2)
Concepts and syntax to be used: Functions, random number
generation, looping and control, arrays, comparison operations,
linear search operations
Problem Statement: Consider Lab II, version 1 of your SPSS. In
this Lab III assignment, you will implement all the operations in
Lab II using C Functions. Thus, you need to do the following:
You must declare the signal arrays in the main function and pass
the arrays and any other required variables to the functions as
needed.
(i) Signal Generation function
(ii) Max and Min search function
(iii) Filtering function
(iv) Zero_Count function
(v) Statistics reporting function
You must keep your main(){…} function as simple as possible.
Use this suggestion, if you wish! We suggest the following to
facilitate your design and implementation. The output variables for
parts (ii), (iii) and (iv) are to be declared as global variables/arrays
so that the respective functions can directly write their output to
those global arrays/variables. Then use these global variables to
1 TE2101/TEE2101 Programming Methodology Exercise for Lab III for Sem 1 AY18/19;
2
generate statistics using Statistics reporting function. Read the
following remarks that facilitates your design.
Remarks: For this lab assignment, it is suggested that you draw a
flow-chart at a high level to capture the flow of the operations,
input and output parameters to facilitate your design. You need not
draw any detailed flow-chart as in Lab II. Show clearly the passing
of parameters and results to and from the functions.
Clearly write comments for your code. Comments carry marks.
You should reuse your own code developed for version 1. The
codes in your respective functions will be crosschecked with your
codes in Lab II assignment.
版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。