{"id":480,"date":"2026-09-21T19:44:24","date_gmt":"2026-09-21T19:44:24","guid":{"rendered":"https:\/\/ndovu.org.uk\/cs\/?p=480"},"modified":"2026-11-16T07:35:18","modified_gmt":"2026-11-16T07:35:18","slug":"yr-5-term-1-1-7-stock-market-game","status":"publish","type":"post","link":"https:\/\/ndovu.org.uk\/cs\/yr-5-term-1-1-7-stock-market-game\/","title":{"rendered":"Yr 5 Term 1.1.7 Stock Market Game"},"content":{"rendered":"\n<p><strong>Welcome to Year 5 Computing \u2014 Lesson 7 &amp; 8: Crypto Investment Firm! \ud83d\udcc8\ud83d\udcbb<\/strong><\/p>\n<p>Today, you are the boss of a digital investment firm! You will start with $1500 and must decide how to invest it across three different digital assets. Can you beat the market, or is investing in highly volatile digital assets just gambling?<\/p>\n\n<div style=\"background-color: #e8f5e9; border-left: 5px solid #4caf50; padding: 15px; border-radius: 5px; margin-bottom: 20px;\">\n  <p style=\"margin: 0; font-size: 14px;\"><strong>Target Standards:<\/strong><\/p>\n  <ul style=\"margin-top: 5px; margin-bottom: 0; font-size: 13px;\">\n    <li><strong>CSTA 1B-NI-05:<\/strong> Discuss real-world applications of digital assets and cybersecurity.<\/li>\n    <li><strong>ISTE 1.2.d &amp; 1.5.a:<\/strong> Understand digital technology economics and analyze system variables.<\/li>\n    <li><strong>UK National Curriculum:<\/strong> Evaluate online financial\/informational risks and understand variables in models.<\/li>\n  <\/ul>\n<\/div>\n\n<p><strong>Step 1: Keyboard Warm-up \u2328\ufe0f (10 Mins)<\/strong><\/p>\n<ul>\n  <li>Click here to warm up your fingers: <a href=\"https:\/\/ndovu.org.uk\/type\/\" target=\"_blank\" rel=\"noopener\">Start Typing Practice on Ndovu<\/a>.<\/li>\n  <li>Today&#8217;s keywords: <em>investment, stablecoin, cryptocurrency, NFT, volatile, market.<\/em><\/li>\n<\/ul>\n\n<p><strong>Step 2: Crypto Investment Simulator \ud83d\udcca (25 Mins)<\/strong><\/p>\n<p><strong>Multiplayer Challenge:<\/strong> Work with a partner. Agree on a secret <strong>Market Code<\/strong> (like <em>APPLES-99<\/em>). Both of you type the exact same code into your own computers. This ensures you both experience the exact same &#8220;fake news&#8221; and price crashes so you can compete fairly!<\/p>\n\n<!-- STOCKBROKER SIMULATOR WIDGET -->\n<div id=\"stockbroker-widget\" style=\"max-width: 850px; margin: 20px auto; font-family: Arial, sans-serif; border: 2px solid #ddd; border-radius: 10px; padding: 20px; background-color: #f4f7f6; box-shadow: 0 4px 8px rgba(0,0,0,0.1);\">\n  \n  <!-- Setup Screen -->\n  <div id=\"sim-setup\" style=\"text-align: center; padding: 30px;\">\n    <h2 style=\"color: #0073aa; margin-top: 0;\">Start Your Firm<\/h2>\n    <p>Enter your shared Market Code to generate the market seed:<\/p>\n    <input type=\"text\" id=\"market-code\" placeholder=\"e.g., APPLES-99\" style=\"width: 100%; max-width: 300px; padding: 10px; font-size: 16px; border: 2px solid #ccc; border-radius: 5px; text-align: center; margin-bottom: 15px;\">\n    <br>\n    <button type=\"button\" id=\"btn-start-sim\" style=\"background-color: #4CAF50; color: white; border: none; padding: 12px 30px; border-radius: 5px; cursor: pointer; font-size: 18px; font-weight: bold;\">Enter Market<\/button>\n  <\/div>\n\n  <!-- Game Screen -->\n  <div id=\"sim-game\" style=\"display: none;\">\n    <div style=\"display: flex; justify-content: space-between; background: #0073aa; color: white; padding: 15px; border-radius: 8px; margin-bottom: 20px; font-size: 18px; font-weight: bold; flex-wrap: wrap; gap: 10px;\">\n      <div>Month: <span id=\"ui-month\">1<\/span> \/ 5<\/div>\n      <div>Net Worth: $<span id=\"ui-nw\">1500<\/span><\/div>\n      <div>Cash Available: $<span id=\"ui-cash\">1500<\/span><\/div>\n    <\/div>\n\n    <!-- News Flash Box -->\n    <div style=\"background: #fff9c4; border-left: 5px solid #fbc02d; padding: 15px; border-radius: 5px; margin-bottom: 20px;\">\n      <strong style=\"color: #f57f17; font-size: 14px;\">NEWS FLASH \ud83d\udcf0<\/strong>\n      <p id=\"ui-news\" style=\"margin: 5px 0 0 0; font-size: 16px; font-weight: bold;\">Market opens! Investors are hopeful.<\/p>\n    <\/div>\n\n    <!-- Assets -->\n    <div style=\"display: flex; gap: 15px; flex-wrap: wrap;\">\n      \n      <!-- Crypto -->\n      <div style=\"flex: 1; min-width: 200px; background: #fff; border: 2px solid #ccc; border-radius: 8px; padding: 15px; text-align: center;\">\n        <h3 style=\"margin: 0 0 5px 0; color: #d32f2f;\">Volatile Crypto<\/h3>\n        <p style=\"font-size: 12px; color: #666; margin: 0 0 15px 0;\">Risky. Prices jump and crash.<\/p>\n        <div style=\"font-size: 24px; font-weight: bold; margin-bottom: 15px;\">$<span id=\"pr-c\">100<\/span><\/div>\n        <div style=\"font-size: 14px; margin-bottom: 10px;\">Owned: <strong id=\"qty-c\">0<\/strong><\/div>\n        <div style=\"display: flex; gap: 5px; justify-content: center;\">\n          <button type=\"button\" id=\"btn-buy-c\" style=\"background: #4CAF50; color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-weight: bold;\">Buy<\/button>\n          <button type=\"button\" id=\"btn-sel-c\" style=\"background: #e53935; color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-weight: bold;\">Sell<\/button>\n        <\/div>\n      <\/div>\n\n      <!-- Stablecoin -->\n      <div style=\"flex: 1; min-width: 200px; background: #fff; border: 2px solid #ccc; border-radius: 8px; padding: 15px; text-align: center;\">\n        <h3 style=\"margin: 0 0 5px 0; color: #1976d2;\">Stablecoin<\/h3>\n        <p style=\"font-size: 12px; color: #666; margin: 0 0 15px 0;\">Safe. Pegged to real money.<\/p>\n        <div style=\"font-size: 24px; font-weight: bold; margin-bottom: 15px;\">$<span id=\"pr-s\">10<\/span><\/div>\n        <div style=\"font-size: 14px; margin-bottom: 10px;\">Owned: <strong id=\"qty-s\">0<\/strong><\/div>\n        <div style=\"display: flex; gap: 5px; justify-content: center;\">\n          <button type=\"button\" id=\"btn-buy-s\" style=\"background: #4CAF50; color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-weight: bold;\">Buy<\/button>\n          <button type=\"button\" id=\"btn-sel-s\" style=\"background: #e53935; color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-weight: bold;\">Sell<\/button>\n        <\/div>\n      <\/div>\n\n      <!-- NFT -->\n      <div style=\"flex: 1; min-width: 200px; background: #fff; border: 2px solid #ccc; border-radius: 8px; padding: 15px; text-align: center;\">\n        <h3 style=\"margin: 0 0 5px 0; color: #7b1fa2;\">Digital Art NFT<\/h3>\n        <p style=\"font-size: 12px; color: #666; margin: 0 0 15px 0;\">Wildcard. Driven by hype.<\/p>\n        <div style=\"font-size: 24px; font-weight: bold; margin-bottom: 15px;\">$<span id=\"pr-n\">500<\/span><\/div>\n        <div style=\"font-size: 14px; margin-bottom: 10px;\">Owned: <strong id=\"qty-n\">0<\/strong><\/div>\n        <div style=\"display: flex; gap: 5px; justify-content: center;\">\n          <button type=\"button\" id=\"btn-buy-n\" style=\"background: #4CAF50; color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-weight: bold;\">Buy<\/button>\n          <button type=\"button\" id=\"btn-sel-n\" style=\"background: #e53935; color: white; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-weight: bold;\">Sell<\/button>\n        <\/div>\n      <\/div>\n\n    <\/div>\n\n    <div style=\"text-align: center; margin-top: 25px;\">\n      <button type=\"button\" id=\"btn-next-mo\" style=\"background-color: #333; color: white; border: none; padding: 15px 30px; border-radius: 5px; cursor: pointer; font-size: 18px; font-weight: bold;\">Advance to Next Month \u2794<\/button>\n    <\/div>\n  <\/div>\n<\/div>\n\n<p><strong>Step 3: Evaluating Risk Reflection \ud83d\udcdd (10 Mins)<\/strong><\/p>\n<p>Who had the highest Net Worth in your pair? Answer the questions below to analyze what happened in the market, then download your report and add it to your ongoing Computing Word document.<\/p>\n\n<div style=\"max-width: 850px; margin: 20px auto; font-family: Arial, sans-serif; border: 2px solid #ddd; border-radius: 10px; padding: 20px; background-color: #fff;\">\n  <div style=\"display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px;\">\n    <div style=\"flex: 1; min-width: 200px;\">\n      <label style=\"font-weight: bold; font-size: 14px; display: block;\">Student Name:<\/label>\n      <input type=\"text\" id=\"ref-name\" placeholder=\"e.g., Alex\" style=\"width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box;\">\n    <\/div>\n    <div style=\"flex: 1; min-width: 200px;\">\n      <label style=\"font-weight: bold; font-size: 14px; display: block;\">Final Net Worth ($):<\/label>\n      <input type=\"text\" id=\"ref-score\" placeholder=\"e.g., 2500\" style=\"width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box;\">\n    <\/div>\n  <\/div>\n\n  <div style=\"margin-bottom: 15px;\">\n    <label style=\"font-weight: bold; display: block; margin-bottom: 5px; font-size: 14px;\">1. How did &#8220;fake news&#8221; or public rumors impact the price of the digital assets in your game?<\/label>\n    <textarea id=\"ref-q1\" rows=\"2\" style=\"width: 100%; font-family: Arial, sans-serif; font-size: 13px; padding: 10px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box;\" placeholder=\"Type your answer here...\"><\/textarea>\n  <\/div>\n\n  <div style=\"margin-bottom: 15px;\">\n    <label style=\"font-weight: bold; display: block; margin-bottom: 5px; font-size: 14px;\">2. Did you manage to beat the market using a strategy, or do you think investing in volatile assets is basically gambling? Why?<\/label>\n    <textarea id=\"ref-q2\" rows=\"2\" style=\"width: 100%; font-family: Arial, sans-serif; font-size: 13px; padding: 10px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box;\" placeholder=\"Type your answer here...\"><\/textarea>\n  <\/div>\n\n  <div style=\"text-align: right;\">\n    <button type=\"button\" id=\"btn-dl-report\" style=\"background-color: #0073aa; color: white; border: none; padding: 12px 25px; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: bold;\">\ud83d\udcbe Download Lesson 7 &amp; 8 Report<\/button>\n  <\/div>\n<\/div>\n\n<p><strong>Step 4: Extension &#8211; Continue on Code.org \ud83d\ude80 (10 Mins)<\/strong><\/p>\n<p>If you finished early, let&#8217;s look at the mathematical side of blockchain on Code.org!<\/p>\n<div style=\"background-color: #ffebee; border-left: 5px solid #e53935; padding: 15px 20px; border-radius: 8px; margin-bottom: 20px; text-align: center;\">\n  <p style=\"margin-top: 0; font-weight: bold; font-size: 16px; color: #b71c1c;\">Mission: Blockchain Level 2<\/p>\n  <a href=\"https:\/\/studio.code.org\/courses\/blockchain-2023\/units\/1\/lessons\/2\/levels\/1?section_id=6733809\" target=\"_blank\" rel=\"noopener\" style=\"display: inline-block; background-color: #e53935; color: white; padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; font-size: 16px;\">Launch Code.org Blockchain \u2794<\/a>\n<\/div>\n\n<p><strong>Step 5: Log Off and Reflect \ud83d\udc4b (5 Mins)<\/strong><\/p>\n<ul>\n  <li><strong>Exit Ticket:<\/strong> How did fake news impact the price of your NFT?<\/li>\n  <li>Ensure your Word document is saved in your OneDrive folder, log out securely, and tidy your desk!<\/li>\n<\/ul>\n<script>\n(function(){\nvar seed=\"\";\nvar mn=1;\nvar csh=1500;\nvar qC=0;var qS=0;var qN=0;\nvar pC=100;var pS=10;var pN=500;\nvar nws=[\n\"Tech billionaire tweets about Volatile Crypto!\",\n\"Government threatens to ban digital tokens.\",\n\"New NFT collection goes viral among celebrities!\",\n\"Market is quiet. Stablecoin remains stable.\",\n\"Hackers steal millions from a major exchange!\",\n\"Fake news rumor causes market panic!\"\n];\nfunction hsh(s,m){\nvar h=0;\nfor(var i=0;i!==s.length;i++){\nh=(h*31+s.charCodeAt(i))|0;\n}\nh=(Math.abs(h)*m*12345)%100;\nreturn h;\n}\nfunction upUI(){\ndocument.getElementById(\"ui-month\").innerText=mn;\ndocument.getElementById(\"ui-cash\").innerText=csh;\nvar nw=csh+(qC*pC)+(qS*pS)+(qN*pN);\ndocument.getElementById(\"ui-nw\").innerText=nw;\ndocument.getElementById(\"pr-c\").innerText=pC;\ndocument.getElementById(\"qty-c\").innerText=qC;\ndocument.getElementById(\"pr-s\").innerText=pS;\ndocument.getElementById(\"qty-s\").innerText=qS;\ndocument.getElementById(\"pr-n\").innerText=pN;\ndocument.getElementById(\"qty-n\").innerText=qN;\n}\nfunction initSim(){\nvar bStart=document.getElementById(\"btn-start-sim\");\nif(bStart){\nbStart.addEventListener(\"click\",function(){\nvar v=document.getElementById(\"market-code\").value.trim();\nif(v===\"\"){alert(\"Please enter a Market Code!\");return;}\nseed=v;\ndocument.getElementById(\"sim-setup\").style.display=\"none\";\ndocument.getElementById(\"sim-game\").style.display=\"block\";\nupUI();\n});\n}\nvar bBc=document.getElementById(\"btn-buy-c\");\nif(bBc)bBc.addEventListener(\"click\",function(){\nif(Math.max(csh,pC)===csh){csh-=pC;qC+=1;upUI();}else{alert(\"Not enough cash!\");}\n});\nvar bSc=document.getElementById(\"btn-sel-c\");\nif(bSc)bSc.addEventListener(\"click\",function(){\nif(qC!==0){qC-=1;csh+=pC;upUI();}\n});\nvar bBs=document.getElementById(\"btn-buy-s\");\nif(bBs)bBs.addEventListener(\"click\",function(){\nif(Math.max(csh,pS)===csh){csh-=pS;qS+=1;upUI();}else{alert(\"Not enough cash!\");}\n});\nvar bSs=document.getElementById(\"btn-sel-s\");\nif(bSs)bSs.addEventListener(\"click\",function(){\nif(qS!==0){qS-=1;csh+=pS;upUI();}\n});\nvar bBn=document.getElementById(\"btn-buy-n\");\nif(bBn)bBn.addEventListener(\"click\",function(){\nif(Math.max(csh,pN)===csh){csh-=pN;qN+=1;upUI();}else{alert(\"Not enough cash!\");}\n});\nvar bSn=document.getElementById(\"btn-sel-n\");\nif(bSn)bSn.addEventListener(\"click\",function(){\nif(qN!==0){qN-=1;csh+=pN;upUI();}\n});\nvar bNxt=document.getElementById(\"btn-next-mo\");\nif(bNxt)bNxt.addEventListener(\"click\",function(){\nif(mn===5){\nvar fnw=csh+(qC*pC)+(qS*pS)+(qN*pN);\nalert(\"Game Over! Your Final Net Worth is $\"+fnw+\". Put this in your reflection!\");\nreturn;\n}\nmn+=1;\nvar r=hsh(seed,mn);\nvar nr=hsh(seed,mn*2);\nvar nx=\"Market fluctuates.\";\nif(Math.max(r,70)===r){pC=(pC*1.8)|0;nx=nws[0];}\nelse if(Math.max(r,30)!==r){pC=(pC*0.4)|0;nx=nws[1];}\nelse{pC=(pC*1.1)|0;nx=nws[3];}\npS=10;\nif(Math.max(nr,80)===nr){pN=(pN*3.0)|0;nx=nws[2];}\nelse if(Math.max(nr,40)!==nr){pN=(pN*0.2)|0;nx=nws[4];}\nelse{pN=(pN*0.8)|0;if(nx===nws[3])nx=nws[5];}\nif(pC===0)pC=5;\nif(pN===0)pN=10;\ndocument.getElementById(\"ui-news\").innerText=nx;\nupUI();\n});\nvar bDl=document.getElementById(\"btn-dl-report\");\nif(bDl)bDl.addEventListener(\"click\",function(){\nvar nm=document.getElementById(\"ref-name\").value.trim()||\"Student\";\nvar nw=document.getElementById(\"ref-score\").value.trim()||\"0\";\nvar a1=document.getElementById(\"ref-q1\").value.trim()||\"No answer.\";\nvar a2=document.getElementById(\"ref-q2\").value.trim()||\"No answer.\";\nvar c=document.createElement(\"canvas\");\nc.width=800;c.height=800;\nvar x=c.getContext(\"2d\");\nx.fillStyle=\"#ffffff\";x.fillRect(0,0,c.width,c.height);\nx.strokeStyle=\"#0073aa\";x.lineWidth=15;x.strokeRect(20,20,c.width-40,c.height-40);\nx.lineWidth=4;x.strokeRect(30,30,c.width-60,c.height-60);\nfunction w(t,sx,sy,wl,lh){\nvar ws=t.split(String.fromCharCode(32));var cl=\"\";\nfor(var n=0;n!==ws.length;n++){\nvar tl=cl+ws[n]+String.fromCharCode(32);var m=x.measureText(tl);\nif(Math.max(m.width,wl)!==wl&&n!==0){x.fillText(cl,sx,sy);cl=ws[n]+String.fromCharCode(32);sy+=lh;}\nelse{cl=tl;}\n}\nx.fillText(cl,sx,sy);return sy+lh;\n}\nvar y=80;\nx.fillStyle=\"#0073aa\";x.font=\"bold 32px Arial\";x.textAlign=\"center\";\nx.fillText(\"Investment Risk Report\",400,y);\ny+=70;x.textAlign=\"left\";x.fillStyle=\"#333333\";x.font=\"bold 20px Arial\";\nx.fillText(\"Broker Name: \"+nm,50,y);x.fillText(\"Final Net Worth: $\"+nw,400,y);\ny+=60;x.fillStyle=\"#0073aa\";x.fillText(\"1. Impact of fake news and public rumors:\",50,y);\ny+=30;x.fillStyle=\"#555555\";x.font=\"normal 18px Arial\";y=w(a1,50,y,700,26);\ny+=40;x.fillStyle=\"#0073aa\";x.font=\"bold 20px Arial\";x.fillText(\"2. Beating the market vs Gambling:\",50,y);\ny+=30;x.fillStyle=\"#555555\";x.font=\"normal 18px Arial\";y=w(a2,50,y,700,26);\nvar ln=document.createElement(\"a\");\nln.href=c.toDataURL(\"image\/png\");\nln.download=\"Y5_L78_Report_\"+nm.split(String.fromCharCode(32)).join(String.fromCharCode(95))+\".png\";\ndocument.body.appendChild(ln);ln.click();document.body.removeChild(ln);\nalert(\"Report downloaded! Paste this into your Word Document.\");\n});\n}\nif(document.readyState===\"loading\"){\ndocument.addEventListener(\"DOMContentLoaded\",initSim);\n}else{\ninitSim();\n}\n})();\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to Year 5 Computing \u2014 Lesson 7 &amp; 8: Crypto Investment Firm! \ud83d\udcc8\ud83d\udcbb Today, you are the boss of a digital investment firm! You&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/ndovu.org.uk\/cs\/yr-5-term-1-1-7-stock-market-game\/\">Continue Reading<span class=\"screen-reader-text\">Yr 5 Term 1.1.7 Stock Market Game<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kilabel_text_disclosure":"","_kilabel_text_reviewed_by":"","_kilabel_text_reviewed_on":"","_kilabel_text_responsible":"","iawp_total_views":4,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-480","post","type-post","status-publish","format-standard","hentry","category-year5","entry"],"_links":{"self":[{"href":"https:\/\/ndovu.org.uk\/cs\/wp-json\/wp\/v2\/posts\/480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndovu.org.uk\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndovu.org.uk\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndovu.org.uk\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndovu.org.uk\/cs\/wp-json\/wp\/v2\/comments?post=480"}],"version-history":[{"count":4,"href":"https:\/\/ndovu.org.uk\/cs\/wp-json\/wp\/v2\/posts\/480\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/ndovu.org.uk\/cs\/wp-json\/wp\/v2\/posts\/480\/revisions\/669"}],"wp:attachment":[{"href":"https:\/\/ndovu.org.uk\/cs\/wp-json\/wp\/v2\/media?parent=480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndovu.org.uk\/cs\/wp-json\/wp\/v2\/categories?post=480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndovu.org.uk\/cs\/wp-json\/wp\/v2\/tags?post=480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}