MPORTANT NOTE Use Ms Visual Studio for PROGRAMMING PROBLEM s

MPORTANT NOTE: Use Ms Visual Studio for PROGRAMMING PROBLEM solutions ONLY and attach all code and Console Window result printouts. PROBLEM 1. (a) write a for statement to populate an array, double val [NUMcoUNT], for the following case: Use a counter named double count that has an initial value of 16.0, a final value of 0.4, and a decrement of 0.4 and populate the val array with the value of count. What is the size, 12 +5 points] NUMcOUNT of the array val

Solution

1. int numcount=0;

double count;
for(count=16.0;count>=.4;count-=.4)
{
array[numcount]=count;
numcount++;
}
after this loop the numcount will be equal to 39.

2. the function header consists of 4 parametes.
   types- int, char, int, double in order.
   sequence is num, deflag, val1 and val2.
   this fucntion is a void type therefore, there will not be any a return type for this function

for further queries kindly get back.

 MPORTANT NOTE: Use Ms Visual Studio for PROGRAMMING PROBLEM solutions ONLY and attach all code and Console Window result printouts. PROBLEM 1. (a) write a for

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site