Question: Design and upload pseudocode that will represent a single frame in a bowling game. Your logic should determine if the frame was a strike, spare
Design and upload pseudocode that will represent a single frame in a bowling game. Your logic should determine if the frame was a "strike", "spare" or just the score of the rolls.
A STRIKE is when all pins are knocked down on the first roll of the frame, and it is represented by X no nd roll is taken for this frame.
A SPARE is when all pins are knocked down over the two rolls of a frame, and it is represented by
If neither a STRIKE nor a SPARE occurs, the score for the frame is simply the total number of pins knocked down in the two rolls.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
