What is the output of the following program? (2) #include #include using namespace std; int main() { int quantity[5] = {3, 5, 2, 8, 1 }; double unitCost[5] = {15.00, 20.00, 5.00, 3.00, 75.00}; ...


What is the output of the following program? (2)


#include #include

using namespace std;


int main()


{



int quantity[5] = {3, 5, 2, 8, 1 };



double unitCost[5] = {15.00, 20.00, 5.00, 3.00, 75.00};



double price[5];



double billingAmount = 0;



for (int i = 0; i <>



{



price[i] = quantity[i] * unitCost[i];



billingAmount = billingAmount + price[i];



}



cout <><>


cout <><><>



<><>



<>



for (int i = 0; i <>



cout <><><>



<><><>





cout <>



$" <>



return 0;


}





May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here