Line# Code (buggy line is 3025) 3021 3022 3023 3024 3025 3026 3027 int iNode = g
ID: 3721099 • Letter: L
Question
Line#
Code (buggy line is 3025)
3021
3022
3023
3024
3025
3026
3027
int iNode = getGraphNode(me);
if (iNode >= 0) {
if (m_Selection.getSelected().size() > 0) {
if (m_Selection.getSelected().contains(iNode)) {
m_BayesNet.setPosition(iNode, (int) ((m_nPosX / m_fScale - m_nPaddedNodeWidth / 2)),
(int) ((m_nPosY / m_fScale - m_nNodeHeight / 2)), m_Selection.getSelected());
}
Fix it Please?? in line 3025
Line#
Code (buggy line is 3025)
3021
3022
3023
3024
3025
3026
3027
int iNode = getGraphNode(me);
if (iNode >= 0) {
if (m_Selection.getSelected().size() > 0) {
if (m_Selection.getSelected().contains(iNode)) {
m_BayesNet.setPosition(iNode, (int) ((m_nPosX / m_fScale - m_nPaddedNodeWidth / 2)),
(int) ((m_nPosY / m_fScale - m_nNodeHeight / 2)), m_Selection.getSelected());
}
Explanation / Answer
As per line number 3025 , i will provide the solution ..Please test and let me know if anything wrong let me know. and if you provide total program , i will provide perfect solution.
solution 1-- m_BayesNet.setPosition(iNode, (int) (((m_nPosX / m_fScale -
solution 2-- as per bodmas formula , you should follwing BODMAS(brackets of division, multiplication, addition, subtraction)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.