Home /
Expert Answers /
Computer Science /
declare-double-variables-x1-y1-x2-and-y2-and-reach-variable-from-input-in-that-order-find-the-m-pa148
(Solved): Declare double variables x1, y1, x2, and y2, and reach variable from input in that order. Find the m ...
Declare double variables x1, y1, x2, and y2, and reach variable from input in that order. Find the midpoint between point (x1, y1) and point (x2, y2) and assign the result to xMid and yMid.
CHALLENGE 2.11.3: Integer division and modulo. ACTIVITY Jump to level 1 Declare double variables x1, y1, x2, and y2, and read each variable from input in that order. Find the midpoint between point (x1, yl) and point (x2, y2) and assign the result to xMid and yMid The calculation is: midpoint = (- ?+2 91 +92) 1 2 2 Ex: If the input is 2.0 1.5 3.5 4.0, the output is: (2.75, 2.75) 1 #include 2 #include 3 using namespace std; 4 5 int main() { 6 double xMid; 7 double yMid; 8 9 Additional variable declarations go here */ / Your code goes here */ << yMid << ")" << endl; cout << fixed <<