Skip to content

MMathew93/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

exactly what you'd expect from the name

02/01/2020 10:30am Welp I am starting the calculator project today, I ended up messng up some other stuff while trying to set this thing up today, so we are off to a great start. I have basic functions set up for basic math and have begun doing the CSS, which I think will def take up a lot of time.

02/01/2020 12:00pm Calculator sizing, and positioning look great, need to get buttons working next.

02/01/2020 02:20pm Okay so I set up a lot of things, but I'm pretty stuck on the display function and holding variabes, I've done it before...I think, trying to get that working now...

02/01/2020 06:05pm Got some assistance with storing the variables for the display, realized my switch statement was incorrect as I had the 'btn' variable listed with no actual .id or .className to refer to. All in all not to bad for today, hope to finish soon.

02/03/2020 09:00pm Skipped Sunday as I was busy, did a lot of Edabit practice instead. Started late today around 7ish due to some other obligations, fixed the calculator display, got the clear function working as well as back space, working on the actual function storing which I have an idea ready for it. Still need to work on updating the display string to update on every input...

02/04/2020 09:55pm I managed to get the equations working as well as the top string to save all inputs. I updated the clear and backspace to fix these new additions accordingly. We are now in the end ame so to speak with trying to get the equal sign button to work. I have an idea of splitting the input string by a regex of equations and then calling each operand function from there, we'll have to see if that works or not later...

02/06/2020 10:45pm Calculations are working, opted for a while loop on calculations to run the whole string, unsure if that is the best method. Need to address multiple operator clicks, and multiple eneter clicks that cause the string to not clear as well as implement decimal into the calculator. I will also need to update the backspace for the decimal too.

02/08/2020 10:10am Fixed some minor bugs mainly associated with the input hard restting to '0'. I have a few more to squash, however I have a lunch date set, will get this finished this afternoon. Need to get buttons to disable as well.

02/08/2020 05:08pm Very long lunch, came back and got most if not all the bugs addressed, I may have missed 1 or two or forgot how to replicate them. Calculator is pretty much done, however the decimal does not work. I think I need to re-do my entire while code to get it working. Will review it.

About

exactly what you'd expect from the name

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published