From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3cb31983495c2fde,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.236.170 with SMTP id uv10mr5468694pbc.4.1334922772915; Fri, 20 Apr 2012 04:52:52 -0700 (PDT) Path: r9ni77884pbh.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Will Newsgroups: comp.lang.ada Subject: Ada95 Help 2D arrays Date: Fri, 20 Apr 2012 04:46:35 -0700 (PDT) Organization: http://groups.google.com Message-ID: <31137140.191.1334922395977.JavaMail.geo-discussion-forums@ynjb15> NNTP-Posting-Host: 134.240.94.59 Mime-Version: 1.0 X-Trace: posting.google.com 1334922772 30861 127.0.0.1 (20 Apr 2012 11:52:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 20 Apr 2012 11:52:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=134.240.94.59; posting-account=CZZpzgoAAAAoaHoNNp9zhY9EzQgEmxhU User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-04-20T04:46:35-07:00 List-Id: I really need help with the problem below... any ideas? I was thinking abo= ut passing each row and column into their own arrays or something but I am = not even sure how to go about doing that. Please send me your ideas if you= can help. Thanks again, willmann817 Many people across America participate in Superbowl pools. Your pool is run= a little differently from most. Instead of buying individual squares from = a grid, you purchase a row and a column. After painstaking research, you ha= ve assigned an integer score to each square representing the probability of= that event occurring. You want to buy the row and column with the maximum = combined score, calculated by adding all the individual scores in that row = and column. For example, consider the following grid: 10 20 30 40 20 30 20 20 30 20 10 10 40 20 10 40 Your best option is to choose the first row and the first column, giving yo= u a combined score of 190. Write a function Best_Combined_Score(Grid) that takes an Int_Matrix and ret= urns the maximum combined score, as described above. You can assume that th= e grid is square, and that it contains only positive integers.