Question: Answer using pointers and stdio.h Problem 2: Develop a C program that swaps the values of two floats. Your program should: a) Ask the user

 Answer using pointers and stdio.h Problem 2: Develop a C programAnswer using pointers and stdio.h

Problem 2: Develop a C program that swaps the values of two floats. Your program should: a) Ask the user to enter two real numbers, which are stored in a, b. b) Call a function named swap that swaps the values of a and b. This function has the following void swap (float p a, float *p b) Sample Output: Input: Enter a and b: 12.84 34.2 Output: a 34.20, b = 12.84 Problem 3: Develop a C program that processes a file called "grades.txt" containing a list of student grades and outputs the minimum, maximum, and average grade contained within that file. Your program should make use the following function prototype: void grades (FILE inp, int *p min, int "p_max, float "P_ave) Sample Output: Input File: 2 3 9 10 15 17 25 30 40 45 78 81 90 Outputi Min: 2, Max: 90, Ave: 34.23

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!