Question: Please write in C Programming; 1 - Given the following: int arr [ 2 0 0 ] ; Write a for loop that populates the

Please write in C Programming;
1- Given the following:
int arr[200];
Write a for loop that populates the array with the
following sequence:
4,8,12,16,20,dots..,796,800,804
2- Given the following sequence:
036912dots30
Declare an array of integers called "multi" of the length
required to store the above sequence. Declare the
required variable(s) and write a for loop that stores the
above values in the array.
3- Declare a 10x10 array and set the array elements to the
following values.
0,1,2,3,4,5,6,7,8,9
10,11,12,13,14,15,16,17,18,19
Declare the required variables and write the code
required to initialize and print out all the array value
with one row per line of output.
4- Given an array with 200 rows and 800 columns. The
array already contains data. Write the code required to
output the sum of all the elements in the last 50 rows.
5- Write the function definition of a function named "sale"
as follows: The function accepts two arguments of type
float, one is the item total and the other is the sale tax
percentage (out of 100%). The function should return
the amount of tax calculated for the purchase.
6- Write the function definition of a function that
repeatedly asks for the user's age and when the age
entered is higher than zero and less than 150(age
should be an integer), then the function should return
that age.
7- Write a function named "robot". This function has two
integer parameters named "forward" and "reverse" and
a return of type integer. If the value passed to forward is
1 and to reverse is 0 then the return should be 127. If
the value passed to forward is 0 and to reverse is 1 then
the return should be -127. If both are 0 or both have
nonzero values, then the return should be 0.
 Please write in C Programming; 1- Given the following: int arr[200];

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!