/* Shops Analysis*/ #include #include #define NUMBER_OF_SHOPS 4 /* Description... Clear the screen Initialize maximum profit to 0 Output heading text to the screen FOR start count equals 0 to start count less than number of shops FOR finish count equals start count to finish count less than number of shops Initialize profit to 0 FOR count equals start count to count less than or equal to finish count Add shop profit to profit Output shop sequence text and profit to the screen IF profit is greater than maximum profit Maximum profit equals profit Store start count Store finish count Output shop sequence text and maximum profit to the screen */ void main() { int shop_profits[NUMBER_OF_SHOPS] = {6, -2, 5, 1} ; int start, finish, count, start_store, finish_store, this_profit, max_profit = 0 ; }