Skip to content

Basic calculator called Calcu in Swift. Designed and Developed by Armand Pretorius for NID304.

License

Notifications You must be signed in to change notification settings

ArmandPretorius/calcu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers LinkedIn


Calcu Logo

Calcu

The simple calculator app.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About The Project

home calculator screenshot

Calcu is a simple calculator app with basic memory capabilities. You can also use Calcu to calculate appropriate tips for waiters.

This Project is for my Term 4 elective, Native iOS Development 304, for which we were tasked to create a basic calculator application with memory functionality.

Built With

This iOS application was build using:

Installation

  1. Download and Install Xcode https://developer.apple.com/xcode/ from the App Store (Only available on MacOS)
  2. Clone the repo
git clone https:://github.com/ArmandPretorius/calcu.git
  1. Then open the project in Xcode

Features

Basic Calculator Abilities

home calculator screenshot

Memory log

home calculator screenshot

Tip Calculation

home calculator screenshot

Usage

When opening Calcu, you can calculate basic calculations like adding, subtracting, multiplying and dividing.

Next to the equal sign is a tip button, which gives you three options when clicked on. You can then add 10%, 15% or 20% to your total bill to tip your waiter appropriately.

You can save the answer to your memory, recall the memory, add and subtract from the memory and also clear the memory.

When clicking on the answers, you get presented with the history/log of all your previous calculations. At the bottom you can clear the log.

View Demo

Logic

The application uses NSExpressions to make the calculations The application uses UserDefaults to save the calculation log and memory.

Challenges

  • I would like to make it possible to select a log and use it for the next calculation.
  • I'd also like to add an AC ability.
  • I'd also like to add more gesture based interactions.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/YourAmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/YourAmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Armand Pretorius - @amplified_designs - 170045@virtualwindow.co.za

Project Link: https://github.com/ArmandPretorius/calcu

About

Basic calculator called Calcu in Swift. Designed and Developed by Armand Pretorius for NID304.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages