20169211 2016-2017-2 《移动平台开发实践》 第十周实验总结

实验一:简易计算器

实验要求

实现一个简易计算器Calc,支持+ - * / 和%运算, 从命令行传入计算数据,比如:

java Calc 2 + 3 结果为 2 + 3 = 5
java Calc 8 - 3 结果为 8 - 3 = 5
java Calc 2 * 3 结果为2 * 3 = 6
java Calc 10 / 2 结果为10 / 2 = 5
java Calc 10 % 3 结果为10 % 3 = 1

实现代码

代码连接

实验截图

实验二:mini dc

实验要求

实现Linux下dc的功能,计算后缀表达式的值。

实现代码

代码连接

实验截图

实验三:第一个Android Studio程序

修改res目录下的activity_main.xml文件


<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.study.helloandroid.MainActivity">

posted @ 2017-05-07 17:53  20169211_李超  阅读(313)  评论(1)    收藏  举报