def display welcome () : print ("The Test Scores program") print ("Enter 'x to exit") print ("") def get_scores (): score total = 0 counter =0 while True: score = input ("Enter test score: ") if score...


Rewrite code


def display welcome () :<br>print (= 0 and score <= 100:="" score_total="" +="score" counter="" +="1" else:="" print="" ("test="" score="" must="" be="" from="" 0="" through="" 100.="" "="" +="" "score="" discarded.="" try="" again.="" ")="" def="" process_scores="" (score_total,="" count)="" :="" #="" calculate="" average="" score="" average="score" total="" count="" #="" format="" and="" display="" the="" result="" print="" ()="" print="" ("score="" total:="" print="" ("number="" of="" scores:="" print="" ("average="" score:="" ".="" ,="" score_total)="" ,="" count)="" ,="" average)="" %3d="" def="" main="" ()="" :="" display_welcome="" ()="" score_total,="" count="get_scores" ()="" process="" scores="" (score_total,="" count)="" print="" ("")="" print="" ("bye!")="" #="" if="" started="" as="" the="" main="" module,="" call="" the="" main="" function="" if="" name="" main="" ":="" -="" main="" ()="" "/="">
Extracted text: def display welcome () : print ("The Test Scores program") print ("Enter 'x to exit") print ("") def get_scores (): score total = 0 counter =0 while True: score = input ("Enter test score: ") if score == "x": return score_total, counter else: score = int (score) if score >= 0 and score <= 100:="" score_total="" +="score" counter="" +="1" else:="" print="" ("test="" score="" must="" be="" from="" 0="" through="" 100.="" "="" +="" "score="" discarded.="" try="" again.="" ")="" def="" process_scores="" (score_total,="" count)="" :="" #="" calculate="" average="" score="" average="score" total="" count="" #="" format="" and="" display="" the="" result="" print="" ()="" print="" ("score="" total:="" print="" ("number="" of="" scores:="" print="" ("average="" score:="" ".="" ,="" score_total)="" ,="" count)="" ,="" average)="" %3d="" def="" main="" ()="" :="" display_welcome="" ()="" score_total,="" count="get_scores" ()="" process="" scores="" (score_total,="" count)="" print="" ("")="" print="" ("bye!")="" #="" if="" started="" as="" the="" main="" module,="" call="" the="" main="" function="" if="" name="" main="" ":="" -="" main="">

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here