1 / 10

Programming: Taking it to the next level

Programming: Taking it to the next level. Logic programming : 1. Create a new form and add in the code below. Information: we are now using an integer data type. Notice how some of the code is indented – this makes it easier to read.

asher
Download Presentation

Programming: Taking it to the next level

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programming: Taking it to the next level

  2. Logic programming : 1. Create a new form and add in the code below. Information: we are now using an integer data type. Notice how some of the code is indented – this makes it easier to read.

  3. 2. You should get something like this – try different values.

  4. 3. Now try something a little more complex. Try all the values - what do you get? Notice the last else – its not else if!

  5. 4: Now try this : Create a programme that will give you the name of the Bond movie when you select the car in the movie. You might have to do some research! Aston Martin DB5 Sunbeam Alpine Lotus Esprite

  6. 5: Now it gets difficult – you are going to help James Bond break into Fort Knox

  7. 6: First you need to know how to programme loops. Warning: don’t do too many loops if you have a message in the loop – it will take a long time to run. The programme should loop a number of times and give you a different message each time

  8. 7: Your task is to help James Bond find the combination to the safe in Fort Knox – it could be anything from 1 to 9999. 8: You will have to use a loop to go through all the combinations , each loop must check against the real combination (enter via a text box) and tell you when its found the right one (logic programming). 9: One has been made for you – but can you make your own?

  9. Well done – we are now going to start a project….

More Related