Ask Question
17 May, 08:58

An online game is played with two dice. In this context, explain what is meant by decomposition in a simple way.

+4
Answers (1)
  1. 17 May, 10:08
    0
    Their value is random, so you need to generate two numbers between 1 & 6.

    You may need to display the numbers

    The main part of the program needs to know the numbers to limit what the user may do next.

    That's most of the first level of decomposition. You need to keep decomposing (breaking into smaller simpler pieces) (think of an outline) and deciding what objects, functions, data structures and logic you're going to code this.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “An online game is played with two dice. In this context, explain what is meant by decomposition in a simple way. ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers