{"action":"closed","issue":{"url":"https://api.github.com/repos/mamashe/sheila-java-learning/issues/14","labels_url":"https://api.github.com/repos/mamashe/sheila-java-learning/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/mamashe/sheila-java-learning/issues/14/comments","events_url":"https://api.github.com/repos/mamashe/sheila-java-learning/issues/14/events","html_url":"https://github.com/mamashe/sheila-java-learning/issues/14","id":89293100,"number":14,"title":"Create a program that asks the user to enter 10 numbers then prints their sum","user":{"login":"lcabrini","id":98929,"avatar_url":"https://avatars.githubusercontent.com/u/98929?v=3","gravatar_id":"","url":"https://api.github.com/users/lcabrini","html_url":"https://github.com/lcabrini","followers_url":"https://api.github.com/users/lcabrini/followers","following_url":"https://api.github.com/users/lcabrini/following{/other_user}","gists_url":"https://api.github.com/users/lcabrini/gists{/gist_id}","starred_url":"https://api.github.com/users/lcabrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcabrini/subscriptions","organizations_url":"https://api.github.com/users/lcabrini/orgs","repos_url":"https://api.github.com/users/lcabrini/repos","events_url":"https://api.github.com/users/lcabrini/events{/privacy}","received_events_url":"https://api.github.com/users/lcabrini/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-18T13:25:42Z","updated_at":"2015-06-20T21:59:35Z","closed_at":"2015-06-20T21:59:35Z","body":"Create a program that asks the user to enter ten numbers then prints their sum. Each input should be verified to be a valid number (limit yourself to positive integers). If it is not, the user should be asked to enter it again.\r\n\r\nHere is a sample run:\r\n\r\n    $ java Sum\r\n    Please enter 10 positive integers.\r\n\r\n    Enter number #1: 5\r\n    Enter number #2: 1\r\n    Enter number #3: goo\r\n    Sorry but 'goo' is not an integer. Try again.\r\n    Enter number #3: 4.3\r\n    Sorry but '4.3' is not an integer. Try again.\r\n    Enter #3: 6\r\n    Enter #4: 6\r\n    Enter #5: 8\r\n    Enter #6: 0\r\n    Sorry but 0 is not positive. Try again.\r\n    Enter #6: 1\r\n    Enter #7: -55\r\n    Sorry but -55 is not positive. Try again.\r\n    Enter #7: 5\r\n    Enter #8: 2\r\n    Enter #9: 1\r\n    Enter #10: 4\r\n\r\n    Thank you for your input. The sum of the numbers is: 39\r\n\r\nDecide on a folder name that makes sense for this program. Call the main class App."}}