subject

Given the following pseudocode: Class Coordinate
Private Real _x
Private Real _y

Public Module set_x(Real value)
Set _x = value
End Module

Public Module set_y(Real value)
Set _y = value
End Module

Public Function get_x()
Return _x
End Module

Public Function get_y()
Return _y
End Module

Public Module add(Coordinate c)
Set _x = _x + c. get_x()
Set _y = _y + c. get_y()
End Module
End Class

Module main()
Declare Coordinate c1 = New Coordinate()
Declare Coordinate c2 = New Coordinate()

Call c1.set_x(1.0)
Call c1.set_y(2.0)
Call c2.set_x(3.0)
Call c2.set_y(4.0)

Display c1.get_x(), c1.get_y(), c2.get_x(), c2.get_y()

Call c1.add(c2)

Display c1.get_x(), c1.get_y(), c2.get_x(), c2.get_y()
End Module
What will be the output when the main() module is called? Separate each answer with a single space.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:31
Jennifer has to set up a network in a factory with an environment that has a lot of electrical interference. which cable would she prefer to use? jennifer would prefer to use because its metal sheath reduces interference.
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
This graph compares the cost of room and board at educational institutions in texas.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Write an essay on online collaboration, how to do it, the challenges, resolving the challenges, and consider whether the risks are greater than rewards. ( need )
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
Answers: 3
You know the right answer?
Given the following pseudocode: Class Coordinate
Private Real _x
Private Real _y
<...
Questions
question
Chemistry, 23.10.2019 09:50
question
Social Studies, 23.10.2019 09:50
Questions on the website: 13722363