1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Ainat [17]
3 years ago
8

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

Computers and Technology
1 answer:
Hunter-Best [27]3 years ago
8 0
You want to throw 2 dice and get (or show?) their value.
    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 use to code this.
You might be interested in
Eight what makes one character
garri49 [273]
8 bits make a byte or a character.
7 0
3 years ago
LAB: Winning team (classes)
andrey2020 [161]

Answer:

The function is as follows:

def get_win_percentage(self):

       return self.team_wins / (self.team_wins + self.team_losses)

Explanation:

This defines the function

def get_win_percentage(self):

This calculates the win percentage and returns it to main

       return self.team_wins / (self.team_wins + self.team_losses)

<em>See attachment for complete (and modified) program.</em>

Download txt
6 0
3 years ago
What is an advantage and disadvantage to file compression
Softa [21]
I dont know many but heres a few
Advantage: storage space
disadvantage: possibility of corruption and lost files
7 0
4 years ago
​ A wire service is also known as a ____.
charle [14.2K]
The answer is C press agency
4 0
4 years ago
Solve this for brainlest​
saw5 [17]

Answer:

which chapter is this

Explanation:

6 0
3 years ago
Other questions:
  • Explain free space allocation?
    9·1 answer
  • Write a Java program to print the result in the series 10, 15, 20, 25, ..., 50. Hint: You can use an iteration statement for wri
    9·1 answer
  • The addElement operation for the linked implementation must determine the parent of the next node to be inserted. Why?
    5·1 answer
  • The following processes are being scheduled using a preemptive, round-robin scheduling algorithm. Each process is assigned a num
    6·1 answer
  • We need ____ pointers to build a linked list.
    6·1 answer
  • Betty removed a web page from her website. Some users were browsing on her website. One of them clicked on a particular link and
    15·1 answer
  • A consumer wants to add a hard drive to their computer to store video from their camera. Which of the following would represent
    9·1 answer
  • URGENT!! thank you!!!!!
    9·1 answer
  • How bridges are built over water
    14·1 answer
  • Which security protocol for wireless networks attempts to establish the same security for them as would be present in a wired ne
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!