Hey everyone!
I've been working on this for two weeks now, and I’m still stuck with no results. ![:tired_face: :tired_face:](https://community.appinventor.mit.edu/images/emoji/google/tired_face.png?v=12)
Can anyone help me figure out where I'm going wrong with programming this flight time HH:MM calculator? It's driving me crazy!
I need to add or subtract multiple hours in the HH:MM format, and when I click "=", I should see the result displayed in a read-only textbox.
If someone could provide a corrected .aia file or at least a screenshot of the corrections, that would be absolutely amazing!
Thanks so much for your help—I’m still new to MIT App Inventor and really appreciate any guidance! ![:pray: :pray:](https://community.appinventor.mit.edu/images/emoji/google/pray.png?v=12)
![:airplane: :airplane:](https://community.appinventor.mit.edu/images/emoji/google/airplane.png?v=12)
Calcolatrice.aia (1.8 MB)
ABG
2
Before diving into the math, I notice you do not take into account
- time zone crossing
- International Date Line crossing.
Yet you call this a flight time calculator?
I don't need any time zone conversion, it's just a calculator to add or subtract multiples flight time HH:MM from a logbook.
For example I put in the read only textbox some values using the keypad and the textbook should show all the calculations and the result.
01:30
+
00:30
+
00,30
Total is 02:30
Its just a simple calculator but my knowledge with programming is still weak and I don't know how to build the code in MIT app inventor.
ABG
6
Here's a version using generic blocks and value procedures:
Calcolatrice.aia (1.8 MB)
Thanks guys, I try your solutions soon and I let you know
ABG
8
If you need a running sum, also see
Thanks man is working, now I can study and learn from it.