Question: help with a study guide Reflections (5 points each) 1. Briefly (in one paragraph or less) describe all the steps involved in creating a program

help with a study guide
help with a study guide Reflections (5 points each) 1. Briefly (in
one paragraph or less) describe all the steps involved in creating a

Reflections (5 points each) 1. Briefly (in one paragraph or less) describe all the steps involved in creating a program with the tools we've used. 2. Why do we indent code? 3. Why do we comment code? 4. Why do we use functions? 5. Why do we name variables meaningfully? Details (4 points each) 6. What is the difference between a statement and an expression? 7. j = 5* i; contains both a statement and an expression. Explain. 8. Explain the difference between int and float. 9. Explain the difference between float and double 10. Explain the difference between the while and the do-while loops. Problems: 5 points each Each of these very short programs has something wrong with it. Explain what. Your answers should each be one sentence or less Program 1 Program 3 #include #include int main(void) { double square (double x) double x = 9.0; { double y = sqrt(x); return (* * ); } printf("SQRT(%lf) is xlf. ", x, y); int main(void) { return 0; double x = 3.2; } int y y = square(); printf("%lf squared: %lf. ", x, y); return a; } Program 2 #include #include int main(void) { double x = 3.0; double y = 4.8; printf("The sum is Xlf. ", x - y); return 0; } Functions: 40 points Fill in the blank functions to complete this simple program. * printarrays.c. prints some very simple arrays. #include #include include ceath.h> /* Print an array of integers with a title. void print_int_array(int int_array, int , char title) printf("%s ", title); for(int 1.01 Fill an array of integers beginning with the value first, ending with or under the value last. and stepping by step. The final element filled may have value last, but no higher. It is up to the calling function to sake sure that the combination of first, last and step makes sense, and that there is enough space in the array. Returns the number of items in the array, int create_int_step_array(int int_array. Int first, int last, int step) { // Your code goes here - 20 points > * Print the first ten squares of positive even numbers. */ vold print_oven squares(vold) Int squares(10); int n; create_int_step_array(squares. 2. 20, 2); for(int 10; 1 print_int_array(squares, ~, "First ten squares of positive even numbers); > /* Print the first twenty squares of positive odd numbers. void print_odd_squares (void) { // Your code goes here - 10 points > /* Print the first ten cubes of positive integers. vold print_cubes (void) { // Your code goes here - 10 points > int main(void) { print_even_squares(); print_odd_squares(); print_cubes(); return

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!