{"action":"created","comment":{"url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls/comments/51354584","id":51354584,"diff_hunk":"@@ -0,0 +1,55 @@\n+#include <iostream>\n+#include <iomanip>\n+\n+// Assignment one stock pricing and profit\n+\n+int main() {\n+    // Declare Constants\n+    int SHARES_BOUGHT = 1000;\n+    int SHARES_SOLD = 1000;\n+    double COMMISSION_RATE = 0.02;\n+    double PURCHASE_PRICE =45.50;\n+    double SALE_PRICE = 56.90;\n+\n+    // Calculate the cost of the stock\n+    double purchase_cost_of_stock = SHARES_BOUGHT * PURCHASE_PRICE;\n+    // Calculate the selling price of the stock\n+    double sell_price_of_stock = SHARES_SOLD * SALE_PRICE;\n+    // Calculate the purchasing commission\n+    double purchase_commission = purchase_cost_of_stock * COMMISSION_RATE;\n+    // Calculate the selling commission\n+    double sell_commission = sell_price_of_stock * COMMISSION_RATE;\n+    // Calculate the profit/loss\n+    double profit = (sell_price_of_stock - purchase_cost_of_stock) - (sell_commission + purchase_commission);\n+\n+    // Output the following\n+    // The amount of money Joe paid for the stock.\n+    // The amount of commission Joe paid his broker when he bought the stock.\n+    // The amount that Joe sold the stock for.\n+    // The amount of commission Joe paid his broker when he sold the stock.\n+    // Display the amount of profit that Joe made after selling his stock and\n+    // paying the two commissions to his broker. (If the amount of profit that\n+    // your program displays is a negative number, then Joe lost money on the transaction.)\n+\n+    // Set local for the currency","path":"main.cpp","position":34,"original_position":34,"commit_id":"d840a619ada60a0be1723bfdcbdcd4d833910f24","original_commit_id":"d840a619ada60a0be1723bfdcbdcd4d833910f24","user":{"login":"ninjapanzer","id":159591,"avatar_url":"https://avatars.githubusercontent.com/u/159591?v=3","gravatar_id":"","url":"https://api.github.com/users/ninjapanzer","html_url":"https://github.com/ninjapanzer","followers_url":"https://api.github.com/users/ninjapanzer/followers","following_url":"https://api.github.com/users/ninjapanzer/following{/other_user}","gists_url":"https://api.github.com/users/ninjapanzer/gists{/gist_id}","starred_url":"https://api.github.com/users/ninjapanzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninjapanzer/subscriptions","organizations_url":"https://api.github.com/users/ninjapanzer/orgs","repos_url":"https://api.github.com/users/ninjapanzer/repos","events_url":"https://api.github.com/users/ninjapanzer/events{/privacy}","received_events_url":"https://api.github.com/users/ninjapanzer/received_events","type":"User","site_admin":false},"body":"On the other hand I think this is a good place for a comment and it should be expanded to say what locale you are setting.\r\n\r\nOptions like this are often less used then things like `cout` and `const` so sometimes its nice to have a reminder. ","created_at":"2016-01-31T03:14:27Z","updated_at":"2016-01-31T03:14:27Z","html_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-1-Coding/pull/2#discussion_r51354584","pull_request_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls/comments/51354584"},"html":{"href":"https://github.com/WCCCEDU/CPT-180-27-Assignment-1-Coding/pull/2#discussion_r51354584"},"pull_request":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls/2","id":57731602,"html_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-1-Coding/pull/2","diff_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-1-Coding/pull/2.diff","patch_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-1-Coding/pull/2.patch","issue_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/issues/2","number":2,"state":"open","locked":false,"title":"Build stock display app","user":{"login":"bconway02","id":16711800,"avatar_url":"https://avatars.githubusercontent.com/u/16711800?v=3","gravatar_id":"","url":"https://api.github.com/users/bconway02","html_url":"https://github.com/bconway02","followers_url":"https://api.github.com/users/bconway02/followers","following_url":"https://api.github.com/users/bconway02/following{/other_user}","gists_url":"https://api.github.com/users/bconway02/gists{/gist_id}","starred_url":"https://api.github.com/users/bconway02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bconway02/subscriptions","organizations_url":"https://api.github.com/users/bconway02/orgs","repos_url":"https://api.github.com/users/bconway02/repos","events_url":"https://api.github.com/users/bconway02/events{/privacy}","received_events_url":"https://api.github.com/users/bconway02/received_events","type":"User","site_admin":false},"body":"Original build stock calculator app\r\nI included some formatting and determined if the profit was positive or negative.","created_at":"2016-01-30T05:54:24Z","updated_at":"2016-01-31T03:14:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d67b2d9eec0f1bc2093ae9f4cc949c2e2542a50","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls/2/commits","review_comments_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls/2/comments","review_comment_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/issues/2/comments","statuses_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/statuses/d840a619ada60a0be1723bfdcbdcd4d833910f24","head":{"label":"bconway02:bc/build_stock_info","ref":"bc/build_stock_info","sha":"d840a619ada60a0be1723bfdcbdcd4d833910f24","user":{"login":"bconway02","id":16711800,"avatar_url":"https://avatars.githubusercontent.com/u/16711800?v=3","gravatar_id":"","url":"https://api.github.com/users/bconway02","html_url":"https://github.com/bconway02","followers_url":"https://api.github.com/users/bconway02/followers","following_url":"https://api.github.com/users/bconway02/following{/other_user}","gists_url":"https://api.github.com/users/bconway02/gists{/gist_id}","starred_url":"https://api.github.com/users/bconway02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bconway02/subscriptions","organizations_url":"https://api.github.com/users/bconway02/orgs","repos_url":"https://api.github.com/users/bconway02/repos","events_url":"https://api.github.com/users/bconway02/events{/privacy}","received_events_url":"https://api.github.com/users/bconway02/received_events","type":"User","site_admin":false},"repo":{"id":50708672,"name":"CPT-180-27-Assignment-1-Coding","full_name":"bconway02/CPT-180-27-Assignment-1-Coding","owner":{"login":"bconway02","id":16711800,"avatar_url":"https://avatars.githubusercontent.com/u/16711800?v=3","gravatar_id":"","url":"https://api.github.com/users/bconway02","html_url":"https://github.com/bconway02","followers_url":"https://api.github.com/users/bconway02/followers","following_url":"https://api.github.com/users/bconway02/following{/other_user}","gists_url":"https://api.github.com/users/bconway02/gists{/gist_id}","starred_url":"https://api.github.com/users/bconway02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bconway02/subscriptions","organizations_url":"https://api.github.com/users/bconway02/orgs","repos_url":"https://api.github.com/users/bconway02/repos","events_url":"https://api.github.com/users/bconway02/events{/privacy}","received_events_url":"https://api.github.com/users/bconway02/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bconway02/CPT-180-27-Assignment-1-Coding","description":"","fork":true,"url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding","forks_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/forks","keys_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/teams","hooks_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/hooks","issue_events_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/issues/events{/number}","events_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/events","assignees_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/assignees{/user}","branches_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/branches{/branch}","tags_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/tags","blobs_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/git/refs{/sha}","trees_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/statuses/{sha}","languages_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/languages","stargazers_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/stargazers","contributors_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/contributors","subscribers_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/subscribers","subscription_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/subscription","commits_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/commits{/sha}","git_commits_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/git/commits{/sha}","comments_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/comments{/number}","issue_comment_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/issues/comments{/number}","contents_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/contents/{+path}","compare_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/merges","archive_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/downloads","issues_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/issues{/number}","pulls_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/pulls{/number}","milestones_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/milestones{/number}","notifications_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/labels{/name}","releases_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/releases{/id}","deployments_url":"https://api.github.com/repos/bconway02/CPT-180-27-Assignment-1-Coding/deployments","created_at":"2016-01-30T04:21:26Z","updated_at":"2016-01-29T03:55:34Z","pushed_at":"2016-01-30T05:52:10Z","git_url":"git://github.com/bconway02/CPT-180-27-Assignment-1-Coding.git","ssh_url":"git@github.com:bconway02/CPT-180-27-Assignment-1-Coding.git","clone_url":"https://github.com/bconway02/CPT-180-27-Assignment-1-Coding.git","svn_url":"https://github.com/bconway02/CPT-180-27-Assignment-1-Coding","homepage":null,"size":2,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"WCCCEDU:master","ref":"master","sha":"dc9f1cb83199fce5cc2156b1c065936934b423e4","user":{"login":"WCCCEDU","id":13862104,"avatar_url":"https://avatars.githubusercontent.com/u/13862104?v=3","gravatar_id":"","url":"https://api.github.com/users/WCCCEDU","html_url":"https://github.com/WCCCEDU","followers_url":"https://api.github.com/users/WCCCEDU/followers","following_url":"https://api.github.com/users/WCCCEDU/following{/other_user}","gists_url":"https://api.github.com/users/WCCCEDU/gists{/gist_id}","starred_url":"https://api.github.com/users/WCCCEDU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WCCCEDU/subscriptions","organizations_url":"https://api.github.com/users/WCCCEDU/orgs","repos_url":"https://api.github.com/users/WCCCEDU/repos","events_url":"https://api.github.com/users/WCCCEDU/events{/privacy}","received_events_url":"https://api.github.com/users/WCCCEDU/received_events","type":"Organization","site_admin":false},"repo":{"id":50636014,"name":"CPT-180-27-Assignment-1-Coding","full_name":"WCCCEDU/CPT-180-27-Assignment-1-Coding","owner":{"login":"WCCCEDU","id":13862104,"avatar_url":"https://avatars.githubusercontent.com/u/13862104?v=3","gravatar_id":"","url":"https://api.github.com/users/WCCCEDU","html_url":"https://github.com/WCCCEDU","followers_url":"https://api.github.com/users/WCCCEDU/followers","following_url":"https://api.github.com/users/WCCCEDU/following{/other_user}","gists_url":"https://api.github.com/users/WCCCEDU/gists{/gist_id}","starred_url":"https://api.github.com/users/WCCCEDU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WCCCEDU/subscriptions","organizations_url":"https://api.github.com/users/WCCCEDU/orgs","repos_url":"https://api.github.com/users/WCCCEDU/repos","events_url":"https://api.github.com/users/WCCCEDU/events{/privacy}","received_events_url":"https://api.github.com/users/WCCCEDU/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-1-Coding","description":"","fork":false,"url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding","forks_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/forks","keys_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/teams","hooks_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/hooks","issue_events_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/issues/events{/number}","events_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/events","assignees_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/assignees{/user}","branches_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/branches{/branch}","tags_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/tags","blobs_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/git/refs{/sha}","trees_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/statuses/{sha}","languages_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/languages","stargazers_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/stargazers","contributors_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/contributors","subscribers_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/subscribers","subscription_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/subscription","commits_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/commits{/sha}","git_commits_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/git/commits{/sha}","comments_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/comments{/number}","issue_comment_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/issues/comments{/number}","contents_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/contents/{+path}","compare_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/merges","archive_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/downloads","issues_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/issues{/number}","pulls_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls{/number}","milestones_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/milestones{/number}","notifications_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/labels{/name}","releases_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/releases{/id}","deployments_url":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/deployments","created_at":"2016-01-29T03:55:34Z","updated_at":"2016-01-29T03:55:34Z","pushed_at":"2016-01-30T07:15:01Z","git_url":"git://github.com/WCCCEDU/CPT-180-27-Assignment-1-Coding.git","ssh_url":"git@github.com:WCCCEDU/CPT-180-27-Assignment-1-Coding.git","clone_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-1-Coding.git","svn_url":"https://github.com/WCCCEDU/CPT-180-27-Assignment-1-Coding","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls/2"},"html":{"href":"https://github.com/WCCCEDU/CPT-180-27-Assignment-1-Coding/pull/2"},"issue":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/issues/2"},"comments":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/WCCCEDU/CPT-180-27-Assignment-1-Coding/statuses/d840a619ada60a0be1723bfdcbdcd4d833910f24"}}}}