Write a method called rollDice. The method is static with an integer return type and an integer parameter. The method wi

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Write a method called rollDice. The method is static with an integer return type and an integer parameter. The method wi

Post by answerhappygod »

Write a method called rollDice. The method is static with an
integer return
type and an integer parameter. The method will simulate dice rolls
equal to
the integer parameter. The method will output the result of each
die roll.
The method will then return the sum value of all the dice rolls. A
dice roll
will be a number from 1 to 6, inclusive.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply