Question: 3:31 PM eecs.wsu.edu ntl Verizon I. Learner Objectives: At the conclusion of this programming assignment, participants should be able to: Apply repetition structures within algorithms
3:31 PM eecs.wsu.edu ntl Verizon I. Learner Objectives: At the conclusion of this programming assignment, participants should be able to: Apply repetition structures within algorithms *Construct while , for 0, or do-while loops in C 8Apply pointers, output parameters, and/or arrays in C sCompose C programs consisting of sequential, conditional, and iterative statements Eliminate redundancy within a program by applying loops and functions Create structure charts for a given problem Determine an appropriate functional decomposition or top-down design from a structure chart s Generate random numbers for use within a C program Before starting this programming assignment, participants should be able to: Analyze a basic set of requirements and apply top-down design principles for a e problem e Customize and define C functions e Apply the 3 file format: 1 header file and 2 source files e Open and close files e Read, write to, and update files Apply standard library functions: fopen 0, fclose ), fscanf ), and fprintf O e Compose decision statements if conditional statements) e Create and utilize compound conditions Summarize topics from Hanly & Koffman Chapter 4 &5 including: e What are counting, conditional, sentinel-controlled, flag-controlled, and end file controlled loops What are while O. do-while (), and for ( ) loops e What is a selection or conditional statement e What is a compound condition e What is a Boolean expression e What is a flowchart Ill. Overview & Requirements: Develop and implement an interactive two-player Yahtzee game. Yahtzee is a dice game that was invented by Milton Bradley and Edwin S. Lowe in 1956. The challenge of the game is to outduel the other player by scoring the most points. Points are obtained by rolling five 6-sided die across thirteen rounds. During each round, each player may roll the dice up to three times to make one of the possible scoring combinations. Once a combination has been achieved by the player, it may not be used again in future rounds, except for the Yahtzee combination may be used as many times as the player makes the combination. Each scoring combination has different point totals. Some of these totals are achieved through the accumulation of points across rolls and some are obtained as fixed sequences of values. The Rules of Yahtzee: The scorecard used for Yahtzee is composed of two sections. A upper section and a lower section. A total of thirteen boxes or thirteen scoring combinations are divided amongst the sections. The upper section consists of boxes that are scored by summing the value of the dice matching the faces of the box. If a player rolls four 3's, then the score placed in the 3's box is the sum of the dice which is 12. Once a player has chosen to score a bax, it may not be changed and the combination is no longer in play for future rounds. If the sum of the scores in the upper section is greater than or equal to 63, then 35 more points are added to the players overall score as a bonus. The lower section contains a number of poker like combinations. See the table provided below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
