حسام ٢٠٢١ Using functions, write a full C++ program that reads four integer numbers entered by the user two at a time (num1 & num2, and then num3 & num4). Your program should find and display the sum...

حسام ٢٠٢١ Using functions, write a full C++ program that reads four integer numbers entered by the user two at a time (num1 & num2, and then num3 & num4). Your program should find and display the sum of products (SoP) and the product of sums (PoS) of these numbers to the user.​ NOTEs: • Sum of Products (SoP): get the product of the first two numbers, get the product of the second two numbers, and then add these products together. • Product of Sums (PoS): get the sum of the first two numbers, get the sum of the second two numbers, and then multiply these sums together. Example: if the four numbers entered are 2&3, and then 4&5… The SoP is (2*3)+(4*5)=26, and the PoS is (2+3)*(4+5)=45 Use the following prototypes: int sumOprod(int a, int b, int c, int d); int prodOsum(int a, int b,int c, int d); #include using namespace std; int sumOprod(int a, int b, int c, int d); int prodOsum(int a, int b,int c, int d); int main() {

Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here