Get premium membership and access questions with answers, video lessons as well as revision papers.
Step 1: Initialize the variables that include:
i) Counting Variable – this variable is for tracking the number of values entered. Let it be initialized as: Count = 0
ii) Sum Variable – this is the variable on which the sum values are stored. Let it be initialized as: Sum = 0
Step 2: Reading of values. Let a value be represented by letter “X”
Step 3: Computing the sum; this process is represented as:
Sum = Sum + X
Step 4: Updating the counting variable; this is represented as:
Count = Count + 1
Step 5: Decision Point i.e. establishing whether the Count value is equal to 35
i) If NO, then go back to step 2 to read the next number
ii) If YES, go to step 6
Step 6: Output the total Sum
Kavungya answered the question on May 15, 2019 at 15:01
- Describe the basics of C++(Solved)
Describe the basics of C++
Date posted: May 15, 2019. Answers (1)
- Explain the characteristics of a good C++ program.(Solved)
Explain the characteristics of a good C++ program.
Date posted: May 15, 2019. Answers (1)
- Describe the structure of a C++ program.(Solved)
Describe the structure of a C++ program.
Date posted: May 15, 2019. Answers (1)
- Outline the steps in creating a C++ source file.(Solved)
Outline the steps in creating a C++ source file.
Date posted: May 15, 2019. Answers (1)
- Explain the features of a C++ program.(Solved)
Explain the features of a C++ program.
Date posted: May 15, 2019. Answers (1)
- What are the guidelines to good C++ programming.(Solved)
What are the guidelines to good C++ programming.
Date posted: May 15, 2019. Answers (1)
- Describe programming in C++(Solved)
Describe programming in C++
Date posted: May 15, 2019. Answers (1)
- Write a program for input and output operations(Solved)
Write a program for input and output operations
Date posted: May 15, 2019. Answers (1)
- Write a C++ program that can compute and the sum and average of 15 numbers.(Solved)
Write a C++ program that can compute and the sum and average of 15 numbers.
Date posted: May 15, 2019. Answers (1)
- Describe Identifiers.(Solved)
Describe Identifiers.
Date posted: May 15, 2019. Answers (1)
- Differentiate between signed and unsigned integers.(Solved)
Differentiate between signed and unsigned integers.
Date posted: May 15, 2019. Answers (1)
- Define a variable.(Solved)
Define a variable.
Date posted: May 15, 2019. Answers (1)
- Describe the Typedef in programming.(Solved)
Describe the Typedef in programming.
Date posted: May 15, 2019. Answers (1)
- Describe constants in programming.(Solved)
Describe constants in programming.
Date posted: May 15, 2019. Answers (1)
- Give the three main types of constants.(Solved)
Give the three main types of constants.
Date posted: May 15, 2019. Answers (1)
- Define a selection control structure.(Solved)
Define a selection control structure.
Date posted: May 15, 2019. Answers (1)
- Describe the switch statement.(Solved)
Describe the switch statement.
Date posted: May 15, 2019. Answers (1)
- Describe the loop structure.(Solved)
Describe the loop structure.
Date posted: May 15, 2019. Answers (1)
- Describe the do while control structure.(Solved)
Describe the do while control structure.
Date posted: May 15, 2019. Answers (1)