Question: The program should compile without error and run gracefully Observe the usual guidelines regarding the initial comment section, indenting, and so on. In addition, .In
The program should compile without error and run gracefully Observe the usual guidelines regarding the initial comment section, indenting, and so on. In addition, .In if-else statements, indent statements to be executed for if or else condition three spaces. Align else or else if with corresponding if. Indent statements within loops. Indent nested loops. . Start with the following function prototype: //Function P void powersofnumbers(double *a, double *b, double *c) Write a C program that accepts three inputs from the user of type double: double x, y,z; Call the function using: powersofnumbers(&x, &y, &z); Write the function powersofnumbers so that it does the following: 1) takes the 2nd power (square) of the contents of the first address passed in and stores it in that original address 2) takes the 3rd power (cube) of the contents of the second address passed in and stores it in that original address 3) takes the 4th power of the contents of the third address passed in and stores it in that original address Do not use the variable names x, y, z inside the function powersofnumbers (although it is okay to reference them in comments if needed). Test with the following user-entered values: x: 3.0 y: 4.0 Display the resulting values of x, y, z to the user as output. Take a screen capture of these results. x to the 2nd power: y to the 3rod z to the 4th power: power
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
