{"id":1576,"date":"2020-12-13T15:15:07","date_gmt":"2020-12-13T15:15:07","guid":{"rendered":"https:\/\/computerscienced.co.uk\/site\/?page_id=1576"},"modified":"2022-05-30T14:01:02","modified_gmt":"2022-05-30T14:01:02","slug":"christmas-programming-task","status":"publish","type":"page","link":"https:\/\/computerscienced.co.uk\/site\/christmas-programming-task\/","title":{"rendered":"Christmas programming task"},"content":{"rendered":"\n<div class=\"wp-block-media-text alignwide is-stacked-on-mobile\" style=\"grid-template-columns:22% auto\"><figure class=\"wp-block-media-text__media\"><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"707\" src=\"https:\/\/computerscienced.co.uk\/site\/wp-content\/uploads\/2021\/11\/undraw_christmas_mode_g81u.svg\" alt=\"\" class=\"wp-image-2984 size-full\"\/><\/figure><div class=\"wp-block-media-text__content\">\n<p class=\"has-normal-font-size\">Instead of writing out the naughty and nice list this year, Santa has decided to digitise the list on his computer.  Unfortunately he has been too busy to learn programming so has turned to you to complete his work for him.  <\/p>\n\n\n\n<p>Santa needs a program that can check names on the naughty list and has laid out the specifics of the program he would like below.   <\/p>\n<\/div><\/div>\n\n\n\n<p><strong>Create a program that does the following:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Asks the user their name<\/li><li>Asks the user what they would like for Christmas from a specified list of items <strong>EG<\/strong> [Xbox, PS5 etc etc]<\/li><li>Displays a specific remark about the item they have chosen<\/li><li>Asks the user if they have been naughty or nice this year<\/li><li>If they have been naughty, they get shown a pre-populated naughty list with their name on it and the program will exit<\/li><li>If they have been nice Santa will ask them if they would like to report anyone for being naughty<\/li><li>The user will be able to add as many names as they need to the naughty list.<\/li><li>When the user is done they get a cheery farewell from Santa and the program will exit.<\/li><\/ul>\n\n\n\n<h2 class=\"has-contrast-color has-text-color has-background wp-block-heading\" style=\"background-color:#0693e3\">Challenge<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>If the user enters the name \u201cElvis the Elf\u201d they get taken to a secret menu system where Elvis can add, delete or search for names in the naughty or nice list and export the lists as text files.&nbsp; &nbsp;<\/li><\/ul>\n\n\n\n<h2 class=\"has-contrast-color has-text-color has-background wp-block-heading\" style=\"background-color:#0693e3\">Success criteria<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>The program is written using procedures or functions<\/li><li>The program uses Python lists or arrays<\/li><li>Use of suitable loops where necessary<\/li><li>Contains suitable prompts for the user<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-100 is-style-outline is-style-outline--1\"><a class=\"wp-block-button__link has-accent-background-color has-background\" href=\"https:\/\/computerscienced.co.uk\/site\/online-python-ide\/\"><strong>Click here to start this task in our online IDE<\/strong><\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Instead of writing out the naughty and nice list this year, Santa has decided to digitise the list on his&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"disable_featured_image":false,"footnotes":""},"class_list":["post-1576","page","type-page","status-publish","hentry"],"blog_post_layout_featured_media_urls":{"thumbnail":"","full":""},"categories_names":null,"comments_number":"0","_links":{"self":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/1576","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/comments?post=1576"}],"version-history":[{"count":5,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/1576\/revisions"}],"predecessor-version":[{"id":4814,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/1576\/revisions\/4814"}],"wp:attachment":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/media?parent=1576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}