Homework Solution: C++ Programming Help Please!…

    C++ Programming Help Please! NOTE: Please READ All Steps very carefully. DO #10! (10 is based off of 9). Program Info: #9. Write a program that reads in ten whole numbers and that outputs the sum of all the numbers greater than zero, the sum of all the numbers less than zero (which will be a negative number or zero), and the sum of all the numbers, whether positive, negative, or zero. The user enters the ten numbers just once each and the user can enter them in any order. Your program should not ask the user to enter the positive numbers and the negative numbers separately. 10. Modify your program from Programming Project 9 so that it outputs the sum of all positive numbers, the average of all positive numbers, the sum of all nonpositive numbers, the average of all nonpositive numbers, the sum of all positive and nonpositive numbers, and the average of all numbers entered. #10. Modify your program from Programming ***Project 9*** so that it outputs the sum of all positive numbers, the average of all positive numbers, the sum of all nonpositive numbers, the average of all nonpositive numbers, the sum of all positive and nonpositive numbers, and the average of all numbers entered. More Important Info: You will need a counting loop that goes from 0 to 10. Inside the loop, separate the positive and negative numbers using an if/else maintain the total of the positive and negative numbers in the if/else maintain the grand total in the body of the loop. outside the loop, print the report of the total of the positive, negative and the grand total. You should also count the number of the positive and negative numbers and print it at the end. Document like your life depends on it!

    Expert Answer

     
    9- #include<iostream> using namespace std;

     

    C++ Programming Help Please!

    NOTE: Please READ Sum Steps very carefully. DO #10! (10 is established unstudied of 9).

    Program Info:

    #9. Write a program that reads in ten sound bulk and that outputs the unite of sum the bulk deep than cipher, the unite of sum the bulk near than cipher (which conciliate be a denying mix or cipher), and the unite of sum the bulk, whether independent, denying, or cipher. The user invades the ten bulk proportioned uninterruptedly each and the user can invade them in any appoint. Your program should referable pray the user to invade the independent bulk and the denying bulk individually. 10. Modify your program from Programming Project 9 so that it outputs the unite of sum independent bulk, the mediocre of sum independent bulk, the unite of sum nonindependent bulk, the mediocre of sum nonindependent bulk, the unite of sum independent and nonindependent bulk, and the mediocre of sum bulk invadeed.

    #10. Modify your program from Programming ***Project 9*** so that it outputs the unite of sum independent bulk, the mediocre of sum independent bulk, the unite of sum nonindependent bulk, the mediocre of sum nonindependent bulk, the unite of sum independent and nonindependent bulk, and the mediocre of sum bulk invadeed.

    More Important Info:

    You conciliate insufficiency a numbering loop that goes from 0 to 10.

    Inside the loop, disconnected the independent and denying bulk using an if/else

    maintain the sum of the independent and denying bulk in the if/else

    maintain the stately sum in the assemblage of the loop.

    outside the loop, imimstereotype the announce of the sum of the independent, denying and the stately sum.

    You should besides number the mix of the independent and denying bulk and imimstereotype it at the purpose.

    Document love your conduct depends on it!

    Expert Confutation

     

    9- #include<iostream>
    using namespace std;

    int deep()
    {
    int arr[10];
    int unite1=0,sum2=0,sum3=0;
    cout<<“Invade 10 sound bulk – “;
    for(int i=0;i<10;i++)
    cin>>arr[i];
    for(int i=0;i<10;i++)
    {if(arr[i]>0)
    sum1+=arr[i];
    else
    sum2+=arr[i];
    }
    sum3=sum1+sum2;
    cout<<“Unite of independent bulk : “<<sum1;
    cout<<“nUnite of bulk near then or similar to 0 : “<<sum2;
    cout<<“nUnite of sum bulk : “<<sum3;
    }

    10-

    #include<iostream>

    using namespace std;

    int deep()

    {

    int arr[10];

    int unite1=0,sum2=0,sum3=0,c1=0,c2=0;

    bear avg1,avg2,avg3;

    cout<<“Invade 10 sound bulk – “;

    for(int i=0;i<10;i++)

    cin>>arr[i];

    for(int i=0;i<10;i++)

    {if(arr[i]>0){

    ++c1;

    sum1+=arr[i];

    }

    else{

    ++c2;

    sum2+=arr[i];

    }

    }

    sum3=sum1+sum2;

    avg1=(float)sum1/c1;

    avg2=(float)sum2/c2;

    avg3=(float)sum3/10;

    cout<<“Unite of independent bulk : “<<sum1;

    cout<<“nAverge of independent bulk : “<<avg1;

    cout<<“nUnite of bulk near then or similar to 0 : “<<sum2;

    cout<<“nMediocre of bulk near then or similar to 0 : “<<avg2;

    cout<<“nUnite of sum bulk : “<<sum3;

    cout<<“nAvergae of sum bulk : “<<avg3;

    }