Code Monkey home page Code Monkey logo

eesast-hw2024-mauicalculator's Introduction

EESAST-hw2024-MAUICalculator 作业


2024 THU EESAST 软件部暑期培训 MAUI作业


题目及要求

完善计算器calculator

  • 要求:
    1. 添加DEL按钮,功能:删除上一个输入的数字字符或运算符;当上一个字符为"="时,按下DEL会清空显示屏但不改变所存储的计算结果(即lastNumber的值)
    2. 考虑程序的鲁棒性,在原始代码中,当使用者重复按下运算符时,会将lastNumber作为第二个操作数进行计算,也即按下"AC"、 "1"、 "+"、 "任意运算符"后会显示2,按下 "AC"、 "/"、"任意运算符"会显示NaN,这在一定程度上是不合适的。希望进行如下修改(只考虑"+"、 "-"、 "*"、 "/"):当重复输入运算符时,不进行运算,根据最后输入的运算符进行更新,直至用户输入数字字符。
    3. 添加第二页面(复杂计算模式),选中该页面后,会添加乘方($x^y$)、对数($\lg x,\ln x$)、开根号($\sqrt x$)、阶乘($x!$)、三角函数($\sin,\cos,\tan,...$)等运算符和$\pi$、$e$等数学常数;用户可以随时切换这两个页面并保持各参数不变(如displayLabel.Text、lastNumber等属性)
    4. 如果能美化一下外观就更好啦o(=•ェ•=)m

提交方式

GitHub 提交

截止日期

由zfgg决定

eesast-hw2024-mauicalculator's People

Contributors

grange007 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.