블로그 이미지
개발자로서 현장에서 일하면서 새로 접하는 기술들이나 알게된 정보 등을 정리하기 위한 블로그입니다. 운 좋게 미국에서 큰 회사들의 프로젝트에서 컬설턴트로 일하고 있어서 새로운 기술들을 접할 기회가 많이 있습니다. 미국의 IT 프로젝트에서 사용되는 툴들에 대해 많은 분들과 정보를 공유하고 싶습니다.
솔웅

최근에 받은 트랙백

글 보관함

calendar

        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  


MIT App Inventor



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]



MIT App Inventor Website


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.


LotteryNumber.apk





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.




저작자 표시 비영리 동일 조건 변경 허락
신고

티스토리 툴바