In Sketchware: How to create a calculator for any simple formula?

Create a simple formula calculator Android app in Sketchware

Here is a tutorial to calculate using any simple formula, for users of Sketchware Android app.
I'll take the example of calculating volume of a cone.Formula is: Vcone = 1/3 × pi × r2 × h

Step 1
Download Sketchware

Step 2
Go to my projects and start a new project.
Fill details in Project Settings:-
Package name: com.cone
Project name: conevolume
App name: Cone Volume
App icon:
App version: 1.0

Step 3
Create View of your app. It is saved as main.xml. The process is simple. In the view field drag and drop 'linear', 'textview', 'button' and 'edittext' to places where you want them to appear.
In my project I have inserted 5 'linear', 4 'textview', 3 'edittext' and 2 'button'.

Edit the 'textview' fields to write details. Modify text of 'button' to write calculate, Reset, etc. Change background color of 'linear'. Modify Edittext to remove 'hint', and change 'input type' to 'number decimal'. I have modified Edittext1 and Edittext2 to take input of radius and height of cone, and Edittext3 is for volume output.


Step 4
After your view is set, click on 'Logic'.
You will find a screen as in picture below.
Click on onCreate and drag and drop 'set Enable' view into the field. Now choose 'Edittext3' and make setEnable 'false'


Step 5
Now go to 'Button 1 onClick'. Add three new 'variables'. I have added 'r', 'h' and 'vol'. Drag if - else control into field. Now add: if not length of Edittext1 and Edittext2 is > 0, show message ..., else... The picture below shows how to do it.

Now within 'else' field, set Variable 'r' to, toNumber Edittext1, and so on for all input fields. Set output variable 'vol' to your formula pi * r^2 * h / 3. Then set Edittext3 to your output variable 'vol'. It is shown in the picture below.
Step 6
Go to 'Button2 onClick', which is reset button and use 'settext' view for all three 'Edittext' to set them to empty.
Step 7
Now Compile and run the App. Your app is ready.

You can send the apk to your Email account to get the apk file. Or you can save it to your mobile directly using 'ES File explorer' app.

This video below is a tutorial on how to make an app for simple calculations:


Here is a video of a temperature converter created in Sketchware:


For any queries please write below.

Comments

  1. Hi can you help me pls? Trying to make a app where you get user input, multiply by a number then devide by 2 and display the answer?

    ReplyDelete
    Replies
    1. Watch this: https://youtu.be/AoxJdu33Org

      Delete
    2. In Sketchware: How To Create A Calculator For Any Simple Formula? >>>>> Download Now

      >>>>> Download Full

      In Sketchware: How To Create A Calculator For Any Simple Formula? >>>>> Download LINK

      >>>>> Download Now

      In Sketchware: How To Create A Calculator For Any Simple Formula? >>>>> Download Full

      >>>>> Download LINK tH

      Delete
  2. I am developing own native language Dictionary app..with help of your video youtube..
    I want a picture for every word different pictures ..eg apple image of apple.
    Mango img of mango...can you help me.?

    ReplyDelete
    Replies
    1. I'll make a tutorial for it. And then I will send you link

      Delete
    2. Hallo i need some help l want to make my calculor app with one Textviwe lika a real phone

      Delete
  3. how can make app disable button befor user input number
    or i have 5 input (edittext) if user fill 2 input app fill other 0 auto

    ReplyDelete
    Replies
    1. @ahmed Darwesh
      To disable Button, Use set enable false Block in onCreate. And on Edittext on text changed event (for all Edittext), if length of edittext1.getText is more than 0 and Edittext2.getText is more than 0, use set enable true for button.

      Delete
  4. جيد جدا انا ممتن لك واتابعك كثير شكرا لك

    ReplyDelete
  5. I want to make a financial calculator for making check stubs. How can I make one for Texas taxes

    ReplyDelete
  6. Dear sir

    When I input number in mainActivity
    then how can i show input equally to anotherActivity

    ReplyDelete
    Replies
    1. You have to create file shared preferences component with same name in both activities. Then you can save the input in file Shared preferences using a key, and retrieve it on another Activity.

      Delete
  7. Is very gooooooood i like the sketchware and you sanjeev

    ReplyDelete
  8. This was a really great contest and hopefully I can attend the next one. It was alot of fun and I really enjoyed myself..
    How to make an app

    ReplyDelete
  9. Hello,

    I have a weird problem that I come across when subtracting certain numbers for my calculator app. When I try to subtract .10 from .01, the results are -.0900002. It doesnt do this with all number numbers accept when I'm adding numbers certain together. Can you please tell me how to fix it.

    ReplyDelete
  10. hi ... i need a help in calculation method.

    137 / 20 = 6.85
    i need to split the result value 6.85 in two textboxs i.e. 6 in textview4 and 85 in textview5. (split the value after decimal)
    is it possible in sketchware ?
    Thanks in advance.

    ReplyDelete
  11. Suppose n is your result in decimal format.
    You can get the integer value by using:
    floor (n).
    Floor is a math block.

    You can get the remaining decimal value by subtracting floor(n) from n.

    ReplyDelete
    Replies
    1. Thanks for your reply.
      I followed the floor in match block, but could not found how to substract floor... please guide further.

      Thanks :)

      Delete
  12. how can i set brackets? I.e. (d*i)/10000

    ReplyDelete
    Replies
    1. No need of brackets in sketchware, it automatically adds brackets in code.

      Delete
  13. cluld help me on an app im trying to make for my work. im calculating boardfoot.the formula we use at work is
    W*L÷12+15% =bdft

    i need W and L as an input sa result is the bdft

    i cant seem to get the 15% not 0.15.coz its the 15% of the total of W*L÷12

    ReplyDelete
  14. Small code . I can't see. You can explain me?

    ReplyDelete
  15. Hello i want do 100:250 but it result was 0. what is the problem

    ReplyDelete
    Replies
    1. Since the result is less than 1, use the block toString with decimal.

      Delete
  16. Hello, I wanna make an app to manage my coaching class in which the name of sudent, I batch, and fees history exist

    ReplyDelete
  17. Amigo...tipo..estou tentando faser um app com a seguinte logica : na primeira tela coloco um numero em um edit text, esse numero tem que ser multiplcado pelo resultado de outra multiplicação de duas edit text que esta na segunda tela, e o resultado final deve aparecer em uma textview na terceira tela.. pode me ajudar?

    ReplyDelete
  18. Sanjeev, Hi I need help in creating my app how can i contact you.

    ReplyDelete
  19. Sanjeev, Hi I need help in creating my app how can i contact you.

    ReplyDelete
  20. How to solve this error:
    When the user don't write any number ( or text ) and try to calculate something. The Sketchware show the menssage : Invalid To number block operation : Empty string.

    ReplyDelete
  21. Hello, I would like to appreciate your work. It’s a great platform got to learn a lot. Your data is really worthy. Thank you so much. Keep it up!

     Playbox App For Android

     Playbox Download Android

    ReplyDelete
  22. Sir I want to change data in a list when a user click different images how can i do this??

    ReplyDelete
  23. This comment has been removed by the author.

    ReplyDelete
  24. Bro I need a shooting game please help me🙏🙏🙏🙏🙏

    ReplyDelete
  25. الشرح بالكتابه يساعدني أكثر من الفيديوهات شكراً لك ونرجو المزيد من الشروحات

    ReplyDelete
  26. كنت أبحث عن شروحات سكيتشوير بهذه الطريقة السهله أتمنى لك التوفيق والنجاح

    ReplyDelete
  27. In mobile app development there are some factors which effects cost to develop an app, which you must need to pay attention.

    ReplyDelete
  28. Pls how can I create an app to find the area of shapes

    ReplyDelete
  29. Hi can you please make an tutorial for a app that can convert currency of many countries

    ReplyDelete
  30. sir can you help me to fine a way to change the font of timer in bengali font... i am creating an app which contain all bangla font. but i cant change the number font from english to bengali. please guide me

    ReplyDelete
  31. sir can you help me make an online mobile application. i will give you 200 dollars to make this project.

    ReplyDelete
  32. Als uw website niet gemakkelijk te gebruiken is, zal zelfs een goed visueel ontwerp u niet veel helpen.

    Probeer dus een handige site te hebben met professionele artikelen.

    Nexoz team met jarenlange ervaring staat voor u klaar lieve landgenoten in verschillende delen van Nederland.

    ReplyDelete
  33. بسیار عالی بود. متشکریم.

    تیم تعمیرات لوازم خانگی دو سوت تعمیر در خدمت گذاری حاضر است.

    هنگامی که نوبت به یافتن یک شرکت تعمیر لوازم خانگی می رسد ، دو سوت تعمیر کلیه شرایط را دارد. ما اطمینان حاصل می کنیم که فقط از افراد متخصص و واجد شرایط استفاده کنید که می توانید به آنها وابسته باشید. ما با ارائه ضمانت در کلیه قطعات و تعمیرات در پشت متخصصان خود ایستاده ایم. هنگامی که دو سوت تعمیر را برای سرویس و یا تعمیر لوازم منزل خود انتخاب می کنید ، کاری می کنیم که از تصمیم خود اطمینان داشته باشید.

    ReplyDelete
  34. بی نظیرره واقعا. خیلییی ممنون ازتون بابت به اشتراک گذاری این مطلب.

    خواستن از شما، توانستن از ما

    مشاوره رایگان در آژانس دیجیتال مارکتینگ آرکا جهت رفع چالش های مختلف کسب و کار توسط کارشناسان ما انجام می پذیرد. همچنین مشاورین در تمام ساعات روز آماده پاسخگویی به سوالات شما در جهت پیشبرد اهداف کسب و کار شما می باشد.

    ReplyDelete
  35. I read your blog it's very nice and very helpful, I learn something new every time from this website, Thanks for sharing this information with us. I am also a blogger i guide people on App and Software Development. You can visit my blog here How much to make an app

    ReplyDelete
  36. فوق العاده بود، متشکر از به اشتراک گذاری.

    ریوال با دارا بودن کارشناسان متخصص,تکنولوژی مدرن و طراحی منحصر به فرد توانسته هنری ایده آل و تبلیغاتی موثر به مشتریان خود ارائه دهد.

    ریوال ایجنسی با فعالیت حرفه ای در زمینه های گرافیک، تبلیغات، برنامه نویسی و … یاری گر شما خواهد بود.

    ReplyDelete
  37. جهت ثبت سفارش طراحی لوگو در ریوال آنلاین، با ما تماس بگیرید.

    بخشی از فرآیند برندسازی شرکت ها و مجموعه ها است.

    بیش از 70 درصد تبلیغات برندینگ بر روی آرم های تجاری انجام می شود.

    برای داشتن تبلیغات موثر و کارآمد، کسب و کار شما نیاز به یک لوگوی حرفه ای دارد.

    ممکن است چندین شرکت در ایران وجود داشته باشند که به صورت حرفه ای تمامی خدمات برندینگ را ارائه می دهند.

    از این رو شرکت برندینگ حرفه ای ریوال آنلاین می تواند خدمات مختلف را به عنوان خدمات حرفه ای طراحی لوگو به شما ارائه دهد.

    ReplyDelete
  38. I am very impressed with your post because this post is very beneficial for me and provide a new knowledge to me
    https://axcrack.com/cubase-version-full/
    https://crackbay.org/autodesk-3ds-max/
    https://suripc.com/modbus-poll-crack/
    https://prosvst.com/redshift-render-4-0-43-crack/
    https://crackproz.org/icarefone-for-whatsapp-transfer/
    https://softcrack.org/tableau-desktop-professional-crack/
    https://vstlicense.com/pianoteq-pro-crack/
    http://sehrpc.com/solar-fire-9-serial-number/
    https://cractivator.com/autodesk-infraworks-crack/

    ReplyDelete
  39. طراحی های لوگو با بیان خلاقانه مفهوم برند، تعامل مشتری را تضمین می کند

    ایجاد لوگوی خلاقانه برند شما را مجبور می کند تا بدون زحمت و با پنهان کردن مفهوم برند در لایه های طراحی لوگو و رنگ ها، از دیگران پیشی بگیرد.

    در نتیجه مخاطب با نشستن در ضمیر ناخودآگاه می تواند درآمد خود را تامین کند.

    ReplyDelete
  40. I am very impressed with your post because this post is very beneficial for me and provide a new knowledge to me
    axcrack
    crackbay
    suripc
    prosvst
    crackproz
    softcrack
    vstlicense
    sehrpc
    cractivator

    ReplyDelete
  41. I am very impressed with your post because this post is very beneficial for me and provide a new knowledge to me
    pcfiled
    pcfiled
    pcfiled
    pcfiled
    pcfiled
    axcrack
    axcrack
    axcrack
    axcrack
    axcrack

    ReplyDelete
  42. I am very impressed with your post because this post is very beneficial for and provide a new knowledge to me. Thanks for sharing.
    TweakBit Anti-Malware Crack

    ReplyDelete
  43. I like your all post. You have done really good work. Thank you for the information you provide.
    Getcrack.co
    PhpStorm Crack
    NordVPN Crack
    PassFab For RAR Crack
    FlixGrab Premium Crack
    Drip Fx VST Crack

    ReplyDelete
  44. جهت خرید رپرتاژ قوی برای سئو و بهینه سازی خارجی وب سایت خود به این سایت ها مراجعه کنید:

    smsshok
    websho
    timapoo
    reza-akbari
    bushehrtabligh
    takshabake
    websaran
    torna2
    alegro
    fcdn5

    ReplyDelete
  45. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. crackroom.org I hope to have many more entries or so from you.
    Very interesting blog.
    Acunetix Crack

    ReplyDelete
  46. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the

    past 6 years, but I had no idea of solving some basic issues. I do not know how to

    Download Cracked Pro Softwares
    But thankfully, I recently visited a website named Crack Softwares Free Download
    freedlcrack.com
    Steganos Privacy Suite crack

    ReplyDelete
  47. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Crack Softwares Free Download But thankfully, I recently visited a website named ProCrackHere
    Acunetix Crack

    ReplyDelete
  48. BurnAware Professional Crack is a full-featured and free burning software to create CDs, DVDs and Blu-ray of all types, including M-Disc. Home users can easily burn bootable discs, multisession discs, high-quality audio CDs and video DVDs, make,

    ReplyDelete
  49. Wow, amazing block structure! How long
    Have you written a blog before? Working on a blog seems easy.
    The overview of your website is pretty good, not to mention what it does.
    In the content!
    vstkey.com
    Redshift Render Crack

    ReplyDelete
  50. Wow, amazing block structure! How long
    Have you written a blog before? Working on a blog seems easy.
    The overview of your website is pretty good, not to mention what it does.
    In the content!
    vstpatch.net
    FL Studio Crack
    Waves 13 Complete Crack
    FaBFilter Pro Crack
    WebStorm Crack
    Wondershare Filmora Crack

    ReplyDelete
  51. In Sketchware: How To Create A Calculator For Any Simple Formula? >>>>> Download Now

    >>>>> Download Full

    In Sketchware: How To Create A Calculator For Any Simple Formula? >>>>> Download LINK

    >>>>> Download Now

    In Sketchware: How To Create A Calculator For Any Simple Formula? >>>>> Download Full

    >>>>> Download LINK G1

    ReplyDelete
  52. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. crackdoc.org I hope to have many more entries or so from you.
    Very interesting blog.
    Renee Passnow Crack
    iCareFone for WhatsApp Transfer Crack
    PowerISO Crack
    DigiDNA iMazing Crack
    ysTools SQL Recovery Crack
    AOMEI Partition Assistant Crack

    ReplyDelete

Post a Comment

Popular posts from this blog

Simple car racing android game in Sketchware

A Flash Light App in Sketchware

How to enable upload from webview in Sketchware?

Create a PDF reader android App in Sketchware

Firebase auth in Sketchware for Login Activity