हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

Initially, farmer, goat, grass, wolf = L, L, L, L, and the farmer crosses the river with a goat. Model the action with an assignment statement. - Computer Science

Advertisements
Advertisements

प्रश्न

Initially, farmer, goat, grass, wolf = L, L, L, L, and the farmer crosses the river with a goat. Model the action with an assignment statement.

संक्षेप में उत्तर

उत्तर

  1. — farmer, goat,grass,wolf = L,L,L,L.
  2. Farmer,goat: = R,R
  3. – farmer,goat,grass,wolf = R,R,L,L
  4. – farmer: = L
  5. — farmer,goat,grass,wolf = L,R,L,L
  6. farmer,grass: = R,R
  7. — farmer,goat,grass,wolf = R,R,R,L
  8. farmer,goat: = L,L
  9. — farmer,goat,grass, wolf = L,L,R,L
  10. farmer, wolf: = R,R
  11. — farmer,goat,grass, wolf = R,L,R,R
  12. farmer: = L
  13. — farmer,goat,grass,wolf = L,L,R,R
  14. farmer, goat: = R,R
  15. — farmer,goat,grass,wolf = R,R,R,R
shaalaa.com
Abstraction
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: Specification and Abstraction - Evaluation - Section - B [पृष्ठ ८६]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 6 Specification and Abstraction
Evaluation - Section - B | Q 3. | पृष्ठ ८६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×