{"id":2671,"date":"2021-09-30T12:21:48","date_gmt":"2021-09-30T12:21:48","guid":{"rendered":"https:\/\/computerscienced.co.uk\/site\/?page_id=2671"},"modified":"2022-01-20T13:27:17","modified_gmt":"2022-01-20T13:27:17","slug":"ks3-parson-puzzle-6-vb-net-random-number-guessing-game","status":"publish","type":"page","link":"https:\/\/computerscienced.co.uk\/site\/parsons-puzzles\/ks3-parson-puzzle-6-vb-net-random-number-guessing-game\/","title":{"rendered":"KS3 Parson Puzzle 6 VB.net &#8211; random number guessing game"},"content":{"rendered":"\n<p><strong>Code \/ algorithm aim<\/strong><\/p>\n\n\n\n<p>The code should choose a random number between 1 and 100.  The guess variable should be set up and set to 0.  <\/p>\n\n\n\n<p>The program should loop continuously until the correct number is guessed by the player.  The player should be prompted to enter their guess into the console and if the number is too low will be told &#8220;Too low&#8221; or if the number is too high will be told &#8220;Too high&#8221;.  If the user guesses the correct number they will be told they are correct and the correct number will be visible to them.   <\/p>\n\n\n\n<div class=\"wp-block-pb-accordion-item c-accordion__item js-accordion-item no-js\" data-initially-open=\"false\" data-click-to-close=\"true\" data-auto-close=\"true\" data-scroll=\"false\" data-scroll-offset=\"0\"><h2 id=\"at-26710\" class=\"c-accordion__title js-accordion-controller\" role=\"button\">Instructions<\/h2><div id=\"ac-26710\" class=\"c-accordion__content\">\n<p>All the code that you need has been given below.  Simply organise the code blocks into the correct order so that the code follows the algorithm aim above.  <\/p>\n\n\n\n<p>You can organise the blocks by clicking on the arrows on the right hand side to place them above or below the other blocks.    <\/p>\n<\/div><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>Imports System\n\nModule Program\n\n\n    Sub Main(args As String())<\/code><\/pre>\n\n\n<div class=\"h5p-iframe-wrapper\"><iframe id=\"h5p-iframe-41\" class=\"h5p-iframe\" data-content-id=\"41\" style=\"height:1px\" src=\"about:blank\" frameBorder=\"0\" scrolling=\"no\" title=\"KS3 Parson puzzle 6 VB.net\"><\/iframe><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>    End Sub\n\nEnd Module<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Code \/ algorithm aim The code should choose a random number between 1 and 100. The guess variable should be&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2597,"parent":224,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"disable_featured_image":true,"footnotes":""},"class_list":["post-2671","page","type-page","status-publish","has-post-thumbnail","hentry"],"blog_post_layout_featured_media_urls":{"thumbnail":["https:\/\/computerscienced.co.uk\/site\/wp-content\/uploads\/2021\/09\/undraw_right_places_h9n3.svg",150,150,true],"full":["https:\/\/computerscienced.co.uk\/site\/wp-content\/uploads\/2021\/09\/undraw_right_places_h9n3.svg",1108,759,false]},"categories_names":null,"comments_number":"0","_links":{"self":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/2671","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=2671"}],"version-history":[{"count":1,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/2671\/revisions"}],"predecessor-version":[{"id":2672,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/2671\/revisions\/2672"}],"up":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/pages\/224"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/media\/2597"}],"wp:attachment":[{"href":"https:\/\/computerscienced.co.uk\/site\/wp-json\/wp\/v2\/media?parent=2671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}