Back to problems

Calculate Bowling Game Score

Algorithm · Tradedesk · Medium

Problem: Calculate Bowling Game Score Write a program that computes the final score of a standard ten-pin bowling game, given a sequence of rolls. A game consists of exactly 10 frames. Scoring Rules Open frame When the two rolls in a frame knock down fewer than 10 pins combined, the frame score is simply the sum of those two rolls. Spare When the two rolls in a frame knock down exactly 10 pins, and the first roll is not a strike (i.e., less than 10), it is called a spare.…

Checking your access…