Threesuns

Email

Contact

All Semesters

Semesters

All Courses

Courses

Introduction to Computer Programming

CSYS1203

3 credits

Labs

Dice Odds

Lab

40 points

Requirements

Pseudocode is structured and valid10
Solution is valid and would find correct output30
Total40 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.