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 Class | https://bbs.csdn.net/forums/ssynkqtd-04 |
---|---|
The Link of Requirement of This Assignment | https://bbs.csdn.net/topics/617332156 |
The Aim of This Assignment | Visual calculator |
MU STU ID and FZU STU ID | 21125333(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.