Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Write only the function header (not the body) for the following problems. a.

ID: 3606838 • Letter: 1

Question

1. Write only the function header (not the body) for the following problems. a. A function named calcSphere which takes a radius as pass by value input. It also takes volume and surface area as a pass by reference. The return type is void. b. A function named lowerToZero which takes an integer number as a pass by reference input. The function returns false if the number can no longer be lowered to zero (i.e it has reached zero) and true otherwise. c. A function named readFile which takes a string with the filename as a pass by value, and an array of integers as a pass by reference for parameters. The function shall return true if it succeeded in reading the file, or false otherwise.

use visual studio ....C++ language

Explanation / Answer

#include <iostream>

using namespace std;
//function header or prototypes

//function to calculate the volume and surface area of sphere
void calcSphere(double radius,double *volume ,double *surfaceArea);

//function to check the num is lessthan zero or not
bool lowerToZero(int *num);

//function to load the data of file into arr
bool readFile(string filename,int *arr);

int main()
{

return 0;
}