From 2ae9124a1af61951984b18caf2a2d59443e407b4 Mon Sep 17 00:00:00 2001 From: codeSTACKr Date: Sat, 3 Oct 2020 17:12:21 -0500 Subject: [PATCH 1/2] updated calculator-app --- Projects/1-Beginner/Calculator-App.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Projects/1-Beginner/Calculator-App.md b/Projects/1-Beginner/Calculator-App.md index be10ecbb..abd8125c 100644 --- a/Projects/1-Beginner/Calculator-App.md +++ b/Projects/1-Beginner/Calculator-App.md @@ -53,10 +53,9 @@ number. ## Example projects -- [BHMBS - JS-Neumorphic-Calculator](https://barhouum7.github.io/JS-Neumorphic-Calc.github.io/) - [Javascript iOS Style Calculator](https://codepen.io/ssmkhrj/full/jOWBQqO) - [Javascript Calculator](https://codepen.io/giana/pen/GJMBEv) - [React Calculator](https://codepen.io/mjijackson/pen/xOzyGX) - [Javascript-CALC](https://github.com/x0uter/javascript-calc) -- [Sample Calculator](https://sevlasnog.github.io/sample-calculator) - [Python Calculator](https://github.com/kana800/Side-Projects/tree/master/1-Beginner/calculator) +- [codeSTACKr JavaScript Calculator](https://codepen.io/codeSTACKr/pen/BaygGev) From af5ccbbba78d7944eb2ce8b12e302b7b77ae2144 Mon Sep 17 00:00:00 2001 From: codeSTACKr Date: Sat, 3 Oct 2020 17:16:36 -0500 Subject: [PATCH 2/2] updated calculator-app --- Projects/1-Beginner/Calculator-App.md | 51 +++++++++++++-------------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/Projects/1-Beginner/Calculator-App.md b/Projects/1-Beginner/Calculator-App.md index abd8125c..c4f1666b 100644 --- a/Projects/1-Beginner/Calculator-App.md +++ b/Projects/1-Beginner/Calculator-App.md @@ -5,7 +5,7 @@ Calculators are not only one of the most useful tools available, but they are also a great way to understand UI and event processing in an application. In this problem you will create a calculator that supports basic arithmetic -calculations on integers. +calculations on integers. The styling is up to you so use your imagination and get creative! You might also find it worth your time to experiment with the calculator app on your @@ -17,34 +17,33 @@ mobile device to better understand basic functionality and edge cases. ## User Stories -- [ ] User can see a display showing the current number entered or the -result of the last operation. -- [ ] User can see an entry pad containing buttons for the digits 0-9, -operations - '+', '-', '/', and '=', a 'C' button (for clear), and an 'AC' -button (for clear all). -- [ ] User can enter numbers as sequences up to 8 digits long by clicking on -digits in the entry pad. Entry of any digits more than 8 will be ignored. -- [ ] User can click on an operation button to display the result of that -operation on: - * the result of the preceding operation and the last number entered OR - * the last two numbers entered OR - * the last number entered -- [ ] User can click the 'C' button to clear the last number or the last -operation. If the users last entry was an operation the display will be -updated to the value that preceded it. -- [ ] User can click the 'AC' button to clear all internal work areas and -to set the display to 0. -- [ ] User can see 'ERR' displayed if any operation would exceed the -8 digit maximum. +- [ ] User can see a display showing the current number entered or the + result of the last operation. +- [ ] User can see an entry pad containing buttons for the digits 0-9, + operations - '+', '-', '/', and '=', a 'C' button (for clear), and an 'AC' + button (for clear all). +- [ ] User can enter numbers as sequences up to 8 digits long by clicking on + digits in the entry pad. Entry of any digits more than 8 will be ignored. +- [ ] User can click on an operation button to display the result of that + operation on: + _ the result of the preceding operation and the last number entered OR + _ the last two numbers entered OR \* the last number entered +- [ ] User can click the 'C' button to clear the last number or the last + operation. If the users last entry was an operation the display will be + updated to the value that preceded it. +- [ ] User can click the 'AC' button to clear all internal work areas and + to set the display to 0. +- [ ] User can see 'ERR' displayed if any operation would exceed the + 8 digit maximum. ## Bonus features -- [ ] User can click a '+/-' button to change the sign of the number that is -currently displayed. -- [ ] User can see a decimal point ('.') button on the entry pad to that -allows floating point numbers up to 3 places to be entered and operations to -be carried out to the maximum number of decimal places entered for any one -number. +- [ ] User can click a '+/-' button to change the sign of the number that is + currently displayed. +- [ ] User can see a decimal point ('.') button on the entry pad to that + allows floating point numbers up to 3 places to be entered and operations to + be carried out to the maximum number of decimal places entered for any one + number. ## Useful links and resources