Question: In python, using this coding skeleton: For example: ## skeleton code for RobCo Advertising Adstravaganza! ## Initial Commit: when I'm done, I can go eat
In python, using this coding skeleton:


For example:







## skeleton code for RobCo Advertising Adstravaganza! ## Initial Commit: when I'm done, I can go eat some Fancy Lads Snack Cakes, ## maybe drink some cola. Better check in my code first RCK - def open file() ' ' "prompt for file name, open file, return file pointer"' ## Some lines to help with formatting ## filename = input ("Input a file name : ") ## print ("Unable to open file. Please try again.") pass # return fp def revenue (num sales, sale price): ' ' ' revenue = sales * price ' ' ' pass def cost_of_goods_sold (num ads, ad_price, num sales, production cost): ' ' 'costs of goods sold = advertising total + production total' ' ' pass def calculate_ROI (num_ads, ad price, num sales, sale_price, production cost): ""'ROI - (Revenue - Cost of goods sold)/Cost of goods sold' '' pass def main(): ## open the file ## some print lines to match formatting in Mimir tests print( print("RobCo AdStats M4000") print("--- print() ## read the file ## extract the data ## print each product's best selling ad sales number, and best ROI ## Here are two print lines to assit with formatting to match Mimir tests ## print ( " {:27s)(X11s)".format ( "Best-Performing Ad","sales")) ## print (" {:27s)(x11s)". format (''Best ROI", "percent ")) pass if name -"main": main() ## skeleton code for RobCo Advertising Adstravaganza! ## Initial Commit: when I'm done, I can go eat some Fancy Lads Snack Cakes, ## maybe drink some cola. Better check in my code first RCK - def open file() ' ' "prompt for file name, open file, return file pointer"' ## Some lines to help with formatting ## filename = input ("Input a file name : ") ## print ("Unable to open file. Please try again.") pass # return fp def revenue (num sales, sale price): ' ' ' revenue = sales * price ' ' ' pass def cost_of_goods_sold (num ads, ad_price, num sales, production cost): ' ' 'costs of goods sold = advertising total + production total' ' ' pass def calculate_ROI (num_ads, ad price, num sales, sale_price, production cost): ""'ROI - (Revenue - Cost of goods sold)/Cost of goods sold' '' pass def main(): ## open the file ## some print lines to match formatting in Mimir tests print( print("RobCo AdStats M4000") print("--- print() ## read the file ## extract the data ## print each product's best selling ad sales number, and best ROI ## Here are two print lines to assit with formatting to match Mimir tests ## print ( " {:27s)(X11s)".format ( "Best-Performing Ad","sales")) ## print (" {:27s)(x11s)". format (''Best ROI", "percent ")) pass if name -"main": main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
