+21622886281
App Inventor Simple application

Create a calculator application with App Inventor

Presentation of App Inventor

App Inventor is a visual, blocks-based programming language and online platform for creating mobile apps for Android devices. It was developed by MIT’s Media Lab and is now maintained by the Massachusetts Institute of Technology (MIT). It allows users with little or no programming experience to create their own mobile apps by dragging and dropping visual blocks that represent programming concepts. App Inventor is also open-source, which means that anyone can access, modify, and distribute the software. It is intended to help educators and students learn programming and is widely used in classrooms and educational institutions.

It is possible to create a calculator application using App Inventor. To do this, you would first need to design the user interface of the calculator using the built-in components such as Buttons and TextBoxes. You would then need to create event handlers for the various buttons using blocks. These event handlers would specify the behavior of the calculator, such as performing mathematical operations when the buttons are pressed.

To create the calculator‘s interface you can use a Layout manager, such as a HorizontalArrangement or a TableArrangement, to organize the buttons and Textbox. You can add Buttons for numbers and mathematical operations (e.g. +, -, *, /). A Textbox can be used to display the results of calculations.

Once the interface is set, you can proceed to set up the event handlers to make the calculator functional. you can use the blocks to specify the behavior of the calculator when the buttons are pressed. For example, when the user presses the « 1 » button, an event handler would be triggered that would add the number « 1 » to the current value in the TextBox. When the user presses the « + » button, an event handler would be triggered that would add the current value in the TextBox to a running total, and so on.

You can also include additional functionality to the calculator, such as a memory function (e.g. « M+ » and « M-« ) or a clear function (e.g. « C »).

It’s worth noting that, App Inventor doesn’t have a built-in functionality to perform complex mathematical operations such as trigonometry, logarithms, etc.

Purpose of this tutorial:

In this tutorial we will create a calculator application with App Inventor that does the following 4 operations: sum (+), product (*), subtraction (-) and division (/).

We propose to make a small simple calculator, with the following visual:

Calculator Application Programming

To program the application, App Inventor proposes to use The Space Blocks which allows to create a program in the form of a block diagram. Very simple to use but requires some programming logic.

Here is the calculator program realized in the Blocks space of the App Inventor:




18 commentaires

calculator that shows history 13-11-2323

I just like the helpful info you provide in your articles. I'll bookmark your weblog and test again here regularly. I'm somewhat sure I'll learn lots of new stuff right here! Best of luck for the following!

free scientific calculator 10-11-2323

Hi there, I found your website by means of Google even as looking for a similar subject, your web site got here up, it looks good. I've bookmarked it in my google bookmarks. Hello there, simply changed into aware of your weblog thru Google, and located that it is truly informative. I am gonna watch out for brussels. I'll appreciate when you continue this in future. Lots of other folks will be benefited out of your writing. Cheers!

calculator with history online 10-11-2323

Howdy! This blog post could not be written any better! Going through this post reminds me of my previous roommate! He always kept preaching about this. I am going to send this information to him. Fairly certain he's going to have a very good read. Thanks for sharing!

Brigida 08-11-2323

Good response in return of this question with real arguments and telling the whole thing on the topic of that.

Online Scientific Calculator Free 05-11-2323

Hi to all, it's genuinely a nice for me to visit this web page, it consists of precious Information.

calculator online free full screen 05-11-2323

naturally like your web site however you need to check the spelling on quite a few of your posts. A number of them are rife with spelling problems and I to find it very troublesome to tell the reality however I will certainly come again again.

online Calculator with Tape Display 05-11-2323

I like the helpful info you provide in your articles. I'll bookmark your weblog and check again here frequently. I am quite sure I'll learn lots of new stuff right here! Best of luck for the next!

online calculator Scientific 24-10-2323

This design is spectacular! You most certainly know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost...HaHa!) Great job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!

Online Calculator With History Shown 12-09-2323

Nice blog here! Also your website loads up fast! What web host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as quickly as yours lol

calculator online with tape 04-09-2323

Outstanding post but I was wanting to know if you could write a litte more on this topic? I'd be very thankful if you could elaborate a little bit further. Many thanks!

calculator with tape online 01-09-2323

Thanks in support of sharing such a nice idea, post is pleasant, thats why i have read it fully

use scientific calculator online 31-08-2323

It's hard to find experienced people on this topic, however, you sound like you know what you're talking about! Thanks Also visit my blog post - use scientific calculator online

online calculator with tape display 29-08-2323

Thanks for your marvelous posting! I truly enjoyed reading it, you might be a great author. I will be sure to bookmark your blog and will often come back later in life. I want to encourage one to continue your great writing, have a nice holiday weekend!

calculator with history Online 29-08-2323

It is not my first time to pay a visit this web page, i am browsing this website dailly and obtain nice facts from here daily.

calculator online advanced 29-08-2323

I love reading through a post that will make people think. Also, thanks for permitting me to comment!

free scientific calculator 29-08-2323

I’m not that much of a online reader to be honest but your blogs really nice, keep it up! I'll go ahead and bookmark your site to come back in the future. Cheers

online free calculator full screen 17-08-2323

Nice post. I used to be checking constantly this blog and I'm inspired! Extremely helpful info particularly the closing phase :) I maintain such info a lot. I was seeking this certain info for a long time. Thank you and best of luck.

Calculator That Shows History 15-08-2323

What's up, yup this piece of writing is really good and I have learned lot of things from it about blogging. thanks.


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top