Question: Declare double variables x 1 , y 1 , x 2 , and y 2 , and read each variable from input in that order.
Declare double variables x y x and y and read each variable from input in that order. Find the midpoint between point x y and point x y and assign the result to xMidpoint and yMidpoint.
The calculation is: midpointxxyy
Ex: If the input is then the output is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
