Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help creating this code in language C that can run. COP-2270 Lab 7 Write C programs for the problems below. Make sure to
I need help creating this code in language C that can run.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started