Preamble Testing is needed in any field of engineering process for a system with the intent of finding errors, in the field of software engineering. Write a note on testing a program and the things to keep points in mind while testing a program. a. Mention difference between verification and validation. b. Mention difference between top down approach and bottom up approach. c. Latest tools used for software testing
PART B
40 Marks
B1 Develop a C program which defines a structure representing account type having bank_branch, bank_name, acc_holder_name, acc_number, acc_holder_address, available_balance for real time banking application. Write functions to display account information, create new account, to deposit amount in an account, to withdraw amount from an account and to display available options in this application.
B2 Write an interactive C program to read mass of the vehicle, the initial and the final speed in Km/h, the duration of the change of speed in seconds. Compute kinetic energy and braking power. 𝟏
Kinetic energy = 𝟐m (v12 - v22) Breaking power =
𝐜𝐡𝐚𝐧𝐠𝐞 𝐢𝐧 𝐞𝐧𝐞𝐫𝐠𝐲 𝐭𝐢𝐦𝐞 𝐭𝐚𝐤𝐞𝐧
B3 Using pointer feature, write an interactive C program to read the size and elements of a square matrix. Compute and print the sum of individual rows, columns and diagonals. Check if the matrix is identity matrix. Compute the inverse of the matrix
B4 For a set of N data points with a normal (Gaussian) distribution the mean Xmean and standard deviation σ are defined as:
The standard deviation is used in the determination of the probability of occurrence of an event in a system that has a normal distribution. Write a C program to read n data values and compute mean of the values and standard deviation. Write functions to print values to a file and read from the file to display the data, mean and standard deviation.