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, 22.06.2019 23:50
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
Computers and Technology, 23.06.2019 15:00
Idon’t understand the double8 coding problem. it is java
Answers: 1
Computers and Technology, 23.06.2019 21:50
Description: write function lastfirst() that takes one argument—a list of strings of the format "lastname, firstname" —and returns a list consisting of two lists: (a) a list of all the last names (b) a list of all the first names
Answers: 2
Computers and Technology, 23.06.2019 22:00
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
Mathematics, 09.02.2022 02:20
History, 09.02.2022 02:30
Biology, 09.02.2022 02:30
Mathematics, 09.02.2022 02:30
SAT, 09.02.2022 02:30
Mathematics, 09.02.2022 02:30