Given the following pseudocode:
Class Coordinate
Private Real _x
Private Real _y
<...
Computers and Technology, 24.03.2021 16:50 aranza78
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.
Answers: 3
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
Computers and Technology, 23.06.2019 04:31
This graph compares the cost of room and board at educational institutions in texas.
Answers: 1
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
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
Chemistry, 23.10.2019 09:50
Arts, 23.10.2019 09:50
Chemistry, 23.10.2019 09:50
Social Studies, 23.10.2019 09:50
Mathematics, 23.10.2019 09:50
World Languages, 23.10.2019 09:50