← Back to Printing
Question 96
Score Bar
Score Bar
Print two lines of output from the declared score and maximum: the label Score with a colon, a space, then one star per point scored; the label Missed with a colon, a space, then one dot per point short of the maximum. Build each bar by multiplying a one-character string by a count, and pass the label and the bar as two values to print. Input: none; the values are fixed in the code.
Expected Output:
Score: ******* Missed: ...
= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
PrintingOperators
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.