Question: Question 13 (1 point) Given the following pseudocode Class Coordinate Private Real x Private Real y Public Module set x (Real value) alue End Module




Question 13 (1 point) Given the following pseudocode Class Coordinate Private Real x Private Real y Public Module set x (Real value) alue End Module Public Module set y (Real value) set yv alue End Module Public Function ge tx() Return x End Module Public Function ge t_yo) Returny End Module Public Module add ( Coordinate c) x + c.get_x( y + c.get y) set x= End Module End Class Module main() Declare Coordinate c1 = New Coordinate() Declare Coordinate c2New Coordinate() Call cl.set x(1.0 Call c1.set y(2.0) Call c2.set x (3.0) Call c2.set y(4.0) Display cl.get_x , cl.get_y(), c2.get_x(), 2.get_y Call cl.add (c2) Display cl.get_x , cl.get_y(), c2.get_x(), 2.get_y End Module What will be the output when the main) module is called? Separate each answer with a single space
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
