Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1- Write a program that calculates and displays values for ywhen y = xz / (x-z)

ID: 3608860 • Letter: 1

Question

1- Write a program that calculates and displays values for ywhen y = xz / (x-z) your program should calculate y for values of x rangingbetween 1 and 5 and values of z ranging between 2 and 6. The xvariable should control the outer loop and be incremented in stepsof 1 and z should be incremented in step of 1. Your program shouldalso display the message fumction undefined when the x and z valuesare equal. 2(a)- Write a program to reverse the digits of a positiveinteger number. For example, if the number 8735 is entered, thenumber displayed should be 5378. (Hint: Use a do statement andcontinuously strip off and display the units digit of the number.If the variable num initially contains the number entered, theunits digit is obtained as (num % 10). After a units digit isdisplayed, dividing the number by 10 sets up the number for thenext iteration. Thus, (8735 % 10) is 5 and (8735/10) is 873. The dostatement should continue as long as the remaining number is notzero. (b)- Run the program written in exercise 2(a) on a computerand verify the program using appropriate test data. 1- Write a program that calculates and displays values for ywhen y = xz / (x-z) your program should calculate y for values of x rangingbetween 1 and 5 and values of z ranging between 2 and 6. The xvariable should control the outer loop and be incremented in stepsof 1 and z should be incremented in step of 1. Your program shouldalso display the message fumction undefined when the x and z valuesare equal. 2(a)- Write a program to reverse the digits of a positiveinteger number. For example, if the number 8735 is entered, thenumber displayed should be 5378. (Hint: Use a do statement andcontinuously strip off and display the units digit of the number.If the variable num initially contains the number entered, theunits digit is obtained as (num % 10). After a units digit isdisplayed, dividing the number by 10 sets up the number for thenext iteration. Thus, (8735 % 10) is 5 and (8735/10) is 873. The dostatement should continue as long as the remaining number is notzero. (b)- Run the program written in exercise 2(a) on a computerand verify the program using appropriate test data.

Explanation / Answer

please rate - thanks part 1 #include int main() {double y; int x,z; cout