
Election Sim Flashcard
Flashcard
•
Information Technology (IT)
•
University
•
Hard
Wayground Content
FREE Resource
Student preview

13 questions
Show all answers
1.
FLASHCARD QUESTION
Front
How many District Votes should there be in total? Options: 1 (inclusive) -> 1000 (inclusive), 1 (inclusive) -> 1000, 1 -> 1000 (inclusive), 1 -> 1000
Back
1 (inclusive) -> 1000 (inclusive)
2.
FLASHCARD QUESTION
Front
How do you make a random 1 (inclusive) -> 1000 (inclusive)? Options: rand.nextInt(1000), rand.nextInt(1000 + 1), rand.nextInt(1000) + 1, rand.nextInt(1) + 1000
Back
rand.nextInt(1000) + 1
3.
FLASHCARD QUESTION
Front
How many class constants should the students make?
Back
6
4.
FLASHCARD QUESTION
Front
How do you round a variable (num) to 2 decimal places? Options: (int) Math.round(num) , (int) Math.round(num / 100) * 100.0; , (int) Math.round(num * 100) / 100.0 , Math.round(num * 100)
Back
(int) Math.round(num * 100) / 100.0
5.
FLASHCARD QUESTION
Front
How should you calculate final vote percentages? Options: Sum each simulation's vote count for each party, divide by number of simulations; Sum each simulation's vote percantage for each party, divide by number of districts; Sum each simulation's vote count for each party, divide by number of districts; Sum each simulation's vote percantage for each party, divide by number of simulations
Back
Sum each simulation's vote percantage for each party, divide by number of simulations
6.
FLASHCARD QUESTION
Front
How many random objects should students create?
Back
1
7.
FLASHCARD QUESTION
Front
How many parties are running for election in this assignment?
Back
2
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?