MIT App Inventor - Android App - Mega Millions Jackpot number generator
2017. 1. 30. 05:11 |
Today I've developed Mega Millions Jackpot number generator using MIT App Inventor.
MIT App Inventor is GUI Android Mobile App Development tool.
Wikipedia
App Inventor for Android
App Inventor for Android is an open-source web application originally provided by Google, and now maintained by the Massachusetts Institute of Technology (MIT).
It allows newcomers to computer programming to create software applications for the Android operating system (OS). It uses a graphical interface, very similar to Scratch and the StarLogo TNG user interface, which allows users to drag-and-drop visual objects to create an application that can run on Android devices. In creating App Inventor, Google drew upon significant prior research in educational computing, as well as work done within Google on online development environments.[1]
What is MIT App Inventor?
MIT App Inventor is an innovative beginner's introduction to
programming and app creation that transforms the complex language of
text-based coding into visual, drag-and-drop building blocks. The simple
graphical interface grants even an inexperienced novice the ability to
create a basic, fully functional app within an hour or less.
This is the Mega Jackpot Number generator what I've developed today.
This is the apk file. so you can install in your android phone if you have.
See the graphical design of the app here.
Here is core logic of the app.
The first 'for' statement is the one to get 5 quick pick numbers.
The second 'for' statement makes list who has numbers from 1~75.
3rd 'for' statement will remove 70 items from the list randomly.
so we will get 5 jackpot numbers for Mega Million.
The good point of this logic is simplification.
If you pickup random numbers from the 75 list then you need to use double 'for' statement to sort the numbers.
The logic is going to be much more complicated.
Above logic is much simpler because it is already sorted.
'IoT > Arduino' 카테고리의 다른 글
[Arduino] 3rd project. 4X4X4 LED Light Cube (1) | 2017.06.05 |
---|---|
[Arduino Project 2] LED Light stand for 3D Crystal laser cube Ver. 0.4 (0) | 2017.05.08 |
[I don't like you] practice project for the project 'I like you' (0) | 2017.05.07 |
Updated Source Code - Automated Mung Bean Sprouts Growing Machine (0) | 2017.01.27 |
Arduino Project 1 - Automated Mung Bean Sprouts Growing Machine (0) | 2017.01.23 |
[Arduino] Motion Sensor and Water Level Sensor (0) | 2017.01.17 |
[Arduino] Joystick, LED Dot Matrix and ADXL335 Module (0) | 2017.01.17 |
[Arduino] Ultrasonic, Keypad and Temperature and Humidity Sensor (0) | 2017.01.15 |
[Arduino] 7 Segment, Servo, LCD and Thermometer (0) | 2017.01.14 |
[Arduino] Using 74HC595 8-bit serial-in/serial or parallel-out shift register (0) | 2017.01.12 |