Question: C++ CSIT 139 /* Write a program that performs the following actions: Generate 4 integer random numbers a, b, c, and d. Read an integer

C++ CSIT 139

/* Write a program that performs the following actions:

Generate 4 integer random numbers a, b, c, and d.

Read an integer original number from a user

Perform the following calculations:

multiply the original number by any integer number, say a

divide the product by any non-zero integer number, say b

multiply the quotient by any integer number, say c

divide the product by any non-zero integer number, say d

divide this quotient by the number originally selected

add to this quotient the number originally selected

subtract from this sum, the expression (a x c)/ (b x d)

display the original number and the difference

*/

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!