Threesuns

Email

Contact

All Semesters

Semesters

All Courses

Courses

Introduction to Computer Programming

CSYS1203

3 credits

Labs

Dice Odds Extra Credit

Lab

0 points

Requirements

Pseudocode is structured and valid0
Solution is valid and would find correct output0
Total0 pts

Objective

Practice working with Arrays

Instructions

Design a program in pseudocode that will calculate the odds of rolling any total when two six sided dice are rolled.

The output of the program should contain all of the possible totals of the two rolled dice and the odds/percentage chance of rolling each of those particular totals.

Example output

2: 2.77%
3: 5.69%
4: 8.35%
5: 11.58%
6: 13.86%
7: 16.67%
8: 13.54%
9: 11.05%
10: 8.26%
11: 5.64%
12: 2.58%

Your pseudocode should be structured and valid.