Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

%3Cp%3E50.%20Write%26nbsp%3Ba%26nbsp%3Bprogram%26nbsp%3Bwhich%26nbsp%3Ballows%26

ID: 3549030 • Letter: #

Question

%3Cp%3E50.%20Write%26nbsp%3Ba%26nbsp%3Bprogram%26nbsp%3Bwhich%26nbsp%3Ballows%26nbsp%3Bthe%26nbsp%3Buser%26nbsp%3Bto%26nbsp%3Bperform%26nbsp%3Bsimple%26nbsp%3Btasks%3C%2Fp%3E%3Cp%3Eon%26nbsp%3Ba%26nbsp%3Bcalculator.%26nbsp%3BA%26nbsp%3Bseries%26nbsp%3Bof%26nbsp%3Bfunctions%26nbsp%3Ballows%26nbsp%3Bthe%26nbsp%3Buser%26nbsp%3Bto%26nbsp%3Bselect%3C%2Fp%3E%3Cp%3Ean%26nbsp%3Boperation%26nbsp%3Bto%26nbsp%3Bperform%26nbsp%3Band%26nbsp%3Bthen%26nbsp%3Benter%26nbsp%3Boperands.%3C%2Fp%3E%3Cp%3EThe%26nbsp%3Bfirst%26nbsp%3Bfunction%26nbsp%3Bdisplays%26nbsp%3Ba%26nbsp%3Bmenu%2C%26nbsp%3Bgiving%26nbsp%3Bthe%26nbsp%3Buser%26nbsp%3Bthe%3C%2Fp%3E%3Cp%3Echoice%26nbsp%3Bof%26nbsp%3Btyping%26nbsp%3Bin%26nbsp%3Bany%26nbsp%3Bone%26nbsp%3Bof%26nbsp%3Bthe%26nbsp%3Bfollowing%3A%3C%2Fp%3E%3Cp%3E%2B%2C%26nbsp%3B-%2C%26nbsp%3B*%2C%26nbsp%3B%2F%2C%26nbsp%3Bor%26nbsp%3B%25%26nbsp%3Brepresenting%26nbsp%3Bthe%26nbsp%3Busual%26nbsp%3Barithmetic%26nbsp%3Boperators%3C%2Fp%3E%3Cp%3EA%26nbsp%3Brepresenting%26nbsp%3Bthe%26nbsp%3Baverage%26nbsp%3Bof%26nbsp%3Btwo%26nbsp%3Bnumbers%3C%2Fp%3E%3Cp%3EX%26nbsp%3Brepresenting%26nbsp%3Bthe%26nbsp%3Bmaximum%26nbsp%3Bof%26nbsp%3Btwo%26nbsp%3Bnumbers%3C%2Fp%3E%3Cp%3EM%26nbsp%3Brepresenting%26nbsp%3Bthe%26nbsp%3Bminimum%26nbsp%3Bof%26nbsp%3Btwo%26nbsp%3Bnumbers%3C%2Fp%3E%3Cp%3ES%26nbsp%3Brepresenting%26nbsp%3Bthe%26nbsp%3Bsquare%26nbsp%3Bof%26nbsp%3Ba%26nbsp%3Bnumber%3C%2Fp%3E%3Cp%3EQ%26nbsp%3Bindicating%26nbsp%3Bthe%26nbsp%3Buser%26nbsp%3Bwants%26nbsp%3Bto%26nbsp%3Bquit%26nbsp%3Bthe%26nbsp%3Bprogram%3C%2Fp%3E%3Cp%3EThe%26nbsp%3Bprogram%26nbsp%3Breads%26nbsp%3Bthe%26nbsp%3Buser's%26nbsp%3Bresponse%26nbsp%3Binto%26nbsp%3Ba%26nbsp%3Bvariable%26nbsp%3Bof%26nbsp%3Btype%3C%2Fp%3E%3Cp%3Echar.%26nbsp%3BUsing%26nbsp%3Ba%26nbsp%3Bswitch%26nbsp%3Bstatement%2C%26nbsp%3Bthe%3C%2Fp%3E%3Cp%3Eprogram%26nbsp%3Bdetermines%26nbsp%3Bwhat%26nbsp%3Bfunction%26nbsp%3Bto%26nbsp%3Bcall%26nbsp%3Bto%26nbsp%3Bprocess%26nbsp%3Bthe%26nbsp%3Buser's%3C%2Fp%3E%3Cp%3Erequest.%26nbsp%3BFor%26nbsp%3Bexample%2C%26nbsp%3Bif%26nbsp%3Bthe%26nbsp%3Buser%26nbsp%3Benters%26nbsp%3B%2B%2C%26nbsp%3Banother%26nbsp%3Bfunction%26nbsp%3Basks%3C%2Fp%3E%3Cp%3Efor%26nbsp%3Btwo%26nbsp%3Bintegers.%26nbsp%3BThen%26nbsp%3Bit%26nbsp%3Bfinds%26nbsp%3Bthe%26nbsp%3Bsum%26nbsp%3Bof%26nbsp%3Bthe%26nbsp%3Btwo%26nbsp%3Bintegers.%26nbsp%3BIf%3C%2Fp%3E%3Cp%3Ethe%26nbsp%3Buser%26nbsp%3Benters%26nbsp%3BX%2C%26nbsp%3Ba%26nbsp%3Bfunction%26nbsp%3Basks%26nbsp%3Bfor%26nbsp%3Btwo%26nbsp%3Bintegers%26nbsp%3Band%26nbsp%3Bfinds%26nbsp%3Bthe%3C%2Fp%3E%3Cp%3Elarger%26nbsp%3Bof%26nbsp%3Bthe%26nbsp%3Btwo.%26nbsp%3BIf%26nbsp%3Bthe%26nbsp%3Buser%26nbsp%3Benters%26nbsp%3BS%2C%26nbsp%3Ba%26nbsp%3Bfunction%26nbsp%3Basks%26nbsp%3Bfor%26nbsp%3Bone%3C%2Fp%3E%3Cp%3Evalue%26nbsp%3Band%26nbsp%3Bfinds%26nbsp%3Bthe%26nbsp%3Bsquare%26nbsp%3Bof%26nbsp%3Bthat%26nbsp%3Bvalue.%26nbsp%3BIf%26nbsp%3Bthe%26nbsp%3Buser%26nbsp%3Benters%26nbsp%3BQ%2C%3C%2Fp%3E%3Cp%3Ethe%26nbsp%3Bprogram%26nbsp%3Bstops.%3C%2Fp%3E%3Cp%3EFor%26nbsp%3Beach%26nbsp%3Bcalculation%26nbsp%3Bperformed%2C%26nbsp%3Bthe%26nbsp%3Bprogram%26nbsp%3B(i.e.%2C%26nbsp%3Bthe%3C%2Fp%3E%3Cp%3Efunction)%26nbsp%3Bprints%26nbsp%3Bthe%26nbsp%3Buser's%26nbsp%3Boriginal%26nbsp%3Binput%26nbsp%3Band%26nbsp%3Bthe%26nbsp%3Bresult.%3C%2Fp%3E

Explanation / Answer

Question unclear please post again