Question: i need help coding this in language C on codeblocks COP-2270 Lab 7 Write C programs for the problems below. Make sure to include in

i need help coding this in language C on codeblocks i need help coding this in language C on codeblocks COP-2270 Lab

COP-2270 Lab 7 Write C programs for the problems below. Make sure to include in the file the source code in text and the program output as screenshot of. Then, submit this file to Blackboard by the due date. I Problem #1 Write a program that uses a function prototype to calculate the squares of an array of integers. The function takes as arguments the address of an array of integers, and the numbers of elements in the array. Then, it calculates the square of each number and store then back in the first element of the array. The program should display the values in the array before and after calling the function. Problem #2 Write a program that calculates the perimeter, area of the circle, and the volume of the sphere given the radiuses entered by the user. The program should define three function prototypes called circleArea, circlePerimeter, and sphereVolume. They are void functions that take as argument a pointer to double to acces the radius variable. The program should call each function from main to calculate the area, perimeter, and volume respectively. Then, the functions store the result back in the argument, and the program displays the results

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!