Question: Help please 1. Array: Write a code segment that defines one array of 16 double-type elements, reads its values from user, and computes the number
1. Array: Write a code segment that defines one array of 16 double-type elements, reads its values from user, and computes the number of elements that are non-negative. 1 of 2 Array: Write a c from user, and computes the maximum values for each column. ode segment that defines one 2-D array of 6 x 4 int-type elements, reads its values 3. Function: Write a function that check whether one input integer is a perfect number Hint: One perfect number equals to the sum of all its divisors (except itself). For example, 6 is one perfect number, 10 is not. Function: Write a function that displays one rectangle of same symbol with three parameters specifying the width, height, and symbol. 5. Struct: Create a struct named MyTime to keep track of time in days, hours, minutes, and seconds. 6. Struct: Write two functions that conduct the conversion between the elapsed time in seconds to MyTime data. For example, if the elapsed time is 4000 seconds, the converted result in MyTime will be 0 day, 1 hour, 6 minutes, and 40 seconds. 7. Pointer: Suppose the addresses of variables x, y, and z are 10ee, 10e4, and 1008, respectively. Write the final values of x, y, z, p, and p for the following code segments a. int x-100, y 200, z300; int * p&x p15e; b. int x-100, y 200, z-300; int p- &x; c. float x12.5, y-9.0, z-2.0; 8. Pointer: Implement a function with the following prototype char* findAllDigits(char str)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
