Need Help Solving 2 Problems Using Javascript Coding Exercise Roll Pair Dice Numbers Add G Q43801815
I need help solving these 2 problems using JavaScript coding
- In this exercise, you will roll a pair of dice until thenumbers add up to a given number. You can assume that the givennumber is 2, 3, 6, or 12. Using pseudocode, write an algorithm thatreturns the number of times the dice is rolled to achieve thisnumber.
- Create a JavaScript function based on the algorithm in questionone.
Expert Answer
Answer to I need help solving these 2 problems using JavaScript coding In this exercise, you will roll a pair of dice until the nu…
OR