Using AppInventor to make a simple calculator

0.Read me
It’s not a whole work report, it’s just another way I learn to make a calculator and download it to the phone as an app. Just as an extension.

1.Basic Information

The Link Your Classhttps://bbs.csdn.net/forums/ssynkqtd-04
The Link of Requirement of This Assignmenthttps://bbs.csdn.net/topics/617332156
The Aim of This AssignmentVisual calculator
MU STU ID and FZU STU ID21125333(MU)/832101310(FZU)

This blog mainly gives an overview of how to use AppInventor to make a suggested calculator and implement its external layout. In this article, we use the AppInventor to realize the front-end layout. Details of each step and code explanation are included in the following introduction.

2.Description of problem-solving ideas
In this project, I first think about how to build the front-end visual interface. After the completion of the interface construction, I think about how to combine the back-end code with the front-end keys and achieve functions.
3.AppInventor realize
Front-end:
Back-end:

Notice: The AppInventor don’t need you to write any code, so it’s simpler in a way. Back-end logic design takes the place of code writing.
For each part, this simple calculator can realize add, subtract, multiply and divide. However, it did not have the add, subtract, multiply, and divide by four rules. So I still need to make more detailed changes.
4. Calculator display:

5. Detailed logic part:
A process to deal with the calculation:

Initialization and assign a value to each button:

Process two to define the four button: the add, subtract, multiply and divide:


The realization of the function of the computed buttons:
The realization of the button “clear”:
在这里插入图片描述
6.Summary
Through the design of this calculator, I learned to use app inventor to build a simple front page, at the same time, I understand how to use logic design to realize the program running, but there are still many problems in this calculator, through my friends download and try to find a lot of loopholes, I hope I can gradually improve and improve in the future study.

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值