I need a code to do this: (only one condition, you must use an array) How many v
ID: 3618308 • Letter: I
Question
I need a code to do this: (only one condition, you must use an array)How many values are you going to enter (5-25)? 30 //ask the user to enter a value (5-25)Too many values; try again.How many values are you going to enter (5-25)? 2Too few values; try again.How many values are you going to enter (5-25)? 8Please enter value 1: 12.2 //enter the valuesPlease enter value 2: 7.6Please enter value 3: -200.3Please enter value 4: 140.7Please enter value 5: 890.23Please enter value 6: 67.78Please enter value 7: 99.9Please enter value 8: 100.1The sum of the values is 1118.21 // sumThe average is 139.776 //averageThe average of the values > 100 is 377.01 //average of numbers >10012.2 7.6 -200.3 //display numbers entered, but only 3 per line140.7 890.23 67.7899.9 100.1(only one condition, you must use an array)
How many values are you going to enter (5-25)? 30 //ask the user to enter a value (5-25)Too many values; try again.How many values are you going to enter (5-25)? 2Too few values; try again.How many values are you going to enter (5-25)? 8Please enter value 1: 12.2 //enter the valuesPlease enter value 2: 7.6Please enter value 3: -200.3Please enter value 4: 140.7Please enter value 5: 890.23Please enter value 6: 67.78Please enter value 7: 99.9Please enter value 8: 100.1The sum of the values is 1118.21 // sumThe average is 139.776 //averageThe average of the values > 100 is 377.01 //average of numbers >10012.2 7.6 -200.3 //display numbers entered, but only 3 per line140.7 890.23 67.7899.9 100.1
Explanation / Answer
please rate - thanks #include using namespace std; int main() {int i,n,big=0; double num[25],sum=0,sum2=0; coutn; while(n>25||n25) coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.