Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions