Question: During the semester, we looked at an algorithm for a Who Wants to Be a Millionaire style game. This algorithm is provided below, adapted only
During the semester, we looked at an algorithm for a Who Wants to Be a Millionaire style game. This algorithm is provided below, adapted only to use Australian currency notation: MILLIONAIRE ALGORITHM PRIZE $100 Do 8 times If (Answer is correct) (PRIZE 2 PRIZE) else (PRIZE S0, Break) Soucehtps /teachinglondoncomputing.files.wordpress.com/2014/07/cs4fnissue1_pr 3_1.pd a) Assume a contestant correctly answers all 8 questions. What would be the final prize value accrued? b) Explain what would happen if the PRIZE value were initially set to $0 cDo-While, While, and For loops all allow sections of code to repeat. Identify which one of these loops would be most appropriately used to implement this algorithm so it repeats exactly 8 times. Justify your response
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
