A program will ask the user to enter integer numbers six (6) times. After getting those input numbers, the program will produce the sum of all the ones, tens and hundreds of all the input numbers. Create a program that satisfies the said events. Sample output: Enter Six Integers: 51 1282 2236 229 120 17 Sum of all Ones: 1 + 2 + 6 + 9 + 0 + 7 = ___ Sum of all Tens: 5 + 8 + 3 + 2 + 2 + 1 = ___ Sum of all Hundreds: 0 + 2 + 2 + 2 + 1 + 0 = ___
- A
program will ask the user to enter integer numbers six (6) times. After getting those input numbers, the program will produce the sum of all the ones, tens and hundreds of all the input numbers. Create a program that satisfies the said events.
Sample output:
Enter Six Integers: 51 1282 2236 229 120 17
Sum of all Ones: 1 + 2 + 6 + 9 + 0 + 7 = ___
Sum of all Tens: 5 + 8 + 3 + 2 + 2 + 1 = ___
Sum of all Hundreds: 0 + 2 + 2 + 2 + 1 + 0 = ___
2. A rectangle is 4 times as long as it is wide. If the length is increased by 4 inches and the width is decreased by 1 inch, the area will be X_AREA square inches. If X_AREA is entered by the user, create a program that will determine what were the dimensions (length and width) of the original rectangle?
3.There are b boys in the class. This is three more than four times the number of girls. If the number of boys in the class is entered by the user, create a program that will identify how many girls and total population in the class.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images