Assignment 2
write a C program to perform following
1. Program DataProducerA Produces a random number (minimum 200 values)
The random number generated are to be stored in file Data1.txt
2 Program DataProducerB Produces a random number (minimum 250 values)
The random number generated are to be stored in file Data2.txt
3 Program Mearge sort ( or any sorting algorithm)
Read data1.txt and data2.txt and generate sorted list
Save sorted list in data3.txt
4. Represent data in data3.txt as a min Heap in an array
Function to use
1. fopen, fread
2. rand()
Note: include header file
#include<stdlib.h>
#include<time.h>
#include<stdio.h>
send your code to
dhananjay@gndecb.ac.in
No comments:
Post a Comment