Question: Create a program as follows: Declare three floats as a1, a2, and a3. Create a menu as follows: Option C to call a function
Create a program as follows: Declare three floats as a1, a2, and a3. Create a menu as follows: Option C to call a function named superman that has three pointers of type float as parameters and no return. The function assigns zero to each of a1, a2, and a3. Option S to call a function named batman that has three pointers of type float as parameters and no return. The function will sort, in ascending order, the values in a1, a2, and a3. Option A to call a function named robin that has three pointers of type float as parameters and no return. The function will sort, in descending order, the values in a1, a2, and a3. Option J to call a function named jocker that has three pointers of type float as parameters and no return. The function will double each of the values in a1, a2, and a3. Option P to call a function named catwomen that has three floats as parameters and no return. The function will print to the screen each of the values in a1, a2, and a3 in a formatted manner (right justified with a field width of 12. Ex: al = a2 = a3 = 23.65 99.22 1.56 Option X to exit the program.
Step by Step Solution
3.46 Rating (153 Votes )
There are 3 Steps involved in it
Below is a simple C program that fulfills your requirements c include Function declarations void sup... View full answer
Get step-by-step solutions from verified subject matter experts
