Threesuns

Email the Instructor

Contact

All Semesters

Semesters

All Courses

Courses

2016Fall

08.17.15 - 12.13.15

Introduction to Computer Programming

CSYS1203

Tuesday
05:30 PM - 08:20 PM

Dice Odds

Lab07

Objective: Practice working with arrays

pastdue

Submit Your Solution

Lab07

Request a Copy of your Solution

Lab07

Requirements

Pseudocode is structured and valid10 pts
Solution is valid and would find correct output30 pts
Total40 pts

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.