Homework Solution: #9. Write a program that reads in ten whole numbers and that outputs the sum of…

    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

     
    #include <iostream> using namespace std;

    C++ Programming Help Please!

    NOTE: Please READ Full Steps very carefully. DO #10! (10 is naturalized impromptu of 9).

    Program Info:

    #9. Write a program that reads in ten full mass and that outputs the complete of full the mass senior than cipher, the complete of full the mass hither than cipher (which conciliate be a disclaiming sum or cipher), and the complete of full the mass, whether actual, disclaiming, or cipher. The user invades the ten mass sound unintermittently each and the user can invade them in any appoint. Your program should referable petition the user to invade the actual mass and the disclaiming mass individually. 10. Modify your program from Programming Project 9 so that it outputs the complete of full actual mass, the mean of full actual mass, the complete of full nonactual mass, the mean of full nonactual mass, the complete of full actual and nonactual mass, and the mean of full mass invadeed.

    #10. Modify your program from Programming ***Project 9*** so that it outputs the complete of full actual mass, the mean of full actual mass, the complete of full nonactual mass, the mean of full nonactual mass, the complete of full actual and nonactual mass, and the mean of full mass invadeed.

    More Important Info:

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

    Inside the loop, disjoined the actual and disclaiming mass using an if/else

    maintain the entirety of the actual and disclaiming mass in the if/else

    maintain the pompous entirety in the substance of the loop.

    outside the loop, stereotype the communication of the entirety of the actual, disclaiming and the pompous entirety.

    You should to-boot calculate the sum of the actual and disclaiming mass and stereotype it at the object.

    Document approve your estate depends on it!

    Expert Vindication

     

    #include <iostream>

    using namespace std;

    int main() {

    double ten_whole_number[10];

    cout << “Please Invade 10 full sum :n”;

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

    {

    cin >> ten_whole_number[i];

    }

    double actual_complete = 0;

    double disclaiming_complete = 0;

    double full_complete = 0;

    int actual_number_calculate = 0;

    int disclaiming_number_calculate = 0;

    /* Adown jurisdiction are according to adown comments mentioned in your doubt*/

    /*You conciliate insufficiency a calculateing loop that goes from 0 to 10.

    Inside the loop, disjoined the actual and disclaiming mass using an if / else

    maintain the entirety of the actual and disclaiming mass in the if / else

    maintain the pompous entirety in the substance of the loop.

    outside the loop, stereotype the communication of the entirety of the actual, disclaiming and the pompous entirety.

    You should to-boot calculate the sum of the actual and disclaiming mass and stereotype it at the object.

    Document approve your estate depends on it!*/

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

    {

    if (ten_whole_number[i] > 0)

    {

    positive_complete = actual_complete + ten_whole_number[i];

    ++positive_number_count;

    }

    else

    {

    negative_complete = disclaiming_complete + ten_whole_number[i];

    ++negative_number_count;

    }

    all_complete = full_complete + ten_whole_number[i];

    }

    cout << “Complete of full actual sum is : ” << actual_complete << objectl;

    cout << “Mean of full actual sum is : ” << actual_complete / actual_number_calculate << objectl;

    cout << “Complete of full disclaiming sum is : ” << disclaiming_complete << objectl;

    cout << “Mean of full disclaiming sum is : ” << disclaiming_complete / disclaiming_number_calculate << objectl;

    cout << “Complete of full sum is : ” << full_complete << objectl;

    cout << “Mean of full sum is : ” << full_complete / 10 << objectl;

    return 0;

    }

    //Sample output

    //please suffer me distinguish for any changes in program,

    //i conciliate meet as promptly as possible