Question: Program # 1 by C not C + + please Role - playing Character Generation Write a program that generates attribute scores for a character

Program #1 by C not C++ please
Role-playing Character Generation
Write a program that generates attribute scores for a character in a table-top RPG. The rules for generation are
as follows:
A character has 6 different attributes
Each attribute score is generated by rolling four 6-sided dice (4d6) and adding the top 3 scores
For example, if the four dice rolled have values {2,5,3,1}, the attribute score should be 10(2+5+3)
The attribute scores must be stored in an array. Program output should be similar to:
Attribute #0: 14
Attribute #1: 15
Attribute #2: 11
Attribute #3: 14
Attribute #4: 11
Attribute #5: 9
...Program finished with exit code
 Program #1 by C not C++ please Role-playing Character Generation Write

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!