For this exercise, create a 1D array that holds 10 integers. Assume the user will input positive integers between 1 and 100. Ônce the array has been filled, add the values stored at each index to create a sum. As always: Remember, the class name should be Lab8A. The user input is indicated in bold. Sample Output #1: Please enter 10 integers: Integer 1: 4 Integer 2: 10 Integer 3: 50 Integer 4: 21 Integer 5: 5 Integer 6: 13 Integer 7: 8 Integer 8: 18 Integer 9: 1 Integer 10: 2 The sum is 132

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 3RQ
icon
Related questions
Question

c++ language using just one for loop 

Lab8A: Warmup
For this exercise, create a 1D array that holds 10 integers. Assume the user will input positive integers
between 1 and 100. Once the array has been filled, add the values stored at each index to create a sum.
As always:
Remember, the class name should be Lab8A.
The user input is indicated in bold.
Sample Output #1:
Please enter 10 integers:
Integer 1: 4
Integer 2: 10
Integer 3: 50
Integer 4: 21
Integer 5: 5
Integer 6: 13
Integer 7: 8
Integer 8: 18
Integer 9: 1
Integer 10: 2
The sum is 132
Transcribed Image Text:Lab8A: Warmup For this exercise, create a 1D array that holds 10 integers. Assume the user will input positive integers between 1 and 100. Once the array has been filled, add the values stored at each index to create a sum. As always: Remember, the class name should be Lab8A. The user input is indicated in bold. Sample Output #1: Please enter 10 integers: Integer 1: 4 Integer 2: 10 Integer 3: 50 Integer 4: 21 Integer 5: 5 Integer 6: 13 Integer 7: 8 Integer 8: 18 Integer 9: 1 Integer 10: 2 The sum is 132
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,