Question: Problem 2 and 3 please Problem 2 (use functions call by reference,) Write a program to call a function GetCoordinates that prompts the user to

 Problem 2 and 3 please Problem 2 (use functions call by

Problem 2 and 3 please

Problem 2 (use functions call by reference,) Write a program to call a function GetCoordinates that prompts the user to input the two coordinates, X and Y of a point A. Then the program calls a function t to generate randomly the coordinates X1 and Yl of a new point B as follows: XI in the range x and x+40. .Yl in the range y and y +20 At the end the program should call the function Display to output the coordinates of the two points A and B Problem 3: Write a c++program to input two positive numbers, X and Y (XY). The programm should prompt the user to choose from the following menu: (write functions call by reference) 1. Compute X! / Y! 2. Compute the sum of all palindrome numbers between 1 and Y. 3. Compute the sum of all even numbers between X and Y 4. Exit

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!