Skip to content

suark/greencalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Brian Kraus
Jun 28, 2019
ee465a3 · Jun 28, 2019

History

27 Commits
Jun 27, 2019
Jun 28, 2019
Jun 28, 2019
Jun 27, 2019
Jun 28, 2019
Jun 28, 2019
Jun 27, 2019
Jun 27, 2019
Jun 27, 2019
Jun 27, 2019
Jun 28, 2019
Jun 27, 2019
Jun 28, 2019
Jun 28, 2019
Jun 28, 2019
Jun 27, 2019
Jun 27, 2019
Jun 28, 2019
Jun 27, 2019
Jun 27, 2019
Jun 28, 2019
Jun 27, 2019

Repository files navigation

Green Calc

"In a Galaxy far, far away on a planet called Sam lives a species called Sung that is very different from humans. They only have 3 fingers instead of 5. As a result, they use different numerical system than inhabitants of planet Earth. Sungs only recognize shades of green and are very keen on seeing your solution for a base 6 calculator implemented using React Native technology."

Breakdown

  1. "They only have 3 fingers instead of 5"
  2. "only recognize shades of green"
  3. "base 6 calculator"

Analysis:

  1. Assumption: The user has 3 literal fingers, so no thumb.
  2. Assumption: All colors used must be some recongnizable shade of green.
  3. Assumption: Numbers are entered in base6 and always viewed in base6.

In order to combine my assumptions and the requirements, I'm going to do this in the following way:

  • All colors will be shades of green
  • Numbers will appear only in heximal form
  • I'll assume the user holds their three fingers over the screen and presses all the buttons in the left column with left finger, middle column - middle finger, and right column - right finger
  • It works with fractions
  • It will handle negative Numbers
  • Will handle order of operations, left to right BEDMAS
  • If you divide by 0, the result is Infinity

To Use:

  1. npm install
  2. react-native run-ios or react-native run-android

To Test:

  1. npm run test

Result

About

A calculator for aliens

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published