What is the line of code


This hands-on lab allows you to follow and experiment with the critical steps of developing a program including the program description, analysis, test plan, design (using both flow chart and pseudocode visualization), and implementation with C code. The example provided uses sequential, selection and repetition statements.
Program Description:

This program will calculate the sum of 10 integers. The program will ask the user to 10 integers. If the sum of the numbers is greater than

1000, a message is printed stating the sum is over 1000. The design step will include both pseudocode and flow chart visualization.

Learning Exercises for you to try:

What would you change in the design and the code if you wanted to sum 20 integers as opposed to 10? (Hint: You should make the

changes and try it)

What is the line of code doing?

Is there other code you could use for the same results (Hint: Recall the increment operator) ?

Try at least 3 different test cases and check the output. How did you change the input values?

What happens if you entered a value other than an integer? (For example a float or even a string)

As always, experiment with the C code and design to continue to learn

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: What is the line of code
Reference No:- TGS01159950

Now Priced at $30 (50% Discount)

Recommended (98%)

Rated (4.3/5)