Faculty of Engineering iOS Calculator App: Autumn 2020

Verified

Added on  2022/09/15

|4
|367
|28
Project
AI Summary
This document presents a comprehensive solution for an iOS application project focused on developing a command-line calculator. The project utilizes Swift and Xcode, demonstrating proficiency in program design, array and string manipulation, and handling command-line arguments. The solution incorporates exception handling and automated testing to ensure functionality and robustness. The development process includes creating classes and methods within the Swift environment. The project adheres to the specified requirements, including forking a project template from GitHub, implementing the calculator's functionality, and conducting thorough testing. The document also provides references to relevant resources, including articles and books on iOS development and Swift programming. The solution demonstrates a practical understanding of iOS application development principles and best practices, and the ability to create a functional command-line calculator.
Document Page
Running head: APPLICATION DEVELOPMENT IN THE IOS ENVIRONMENT
iOS Application Development
Command-line calculator
Name of the Student
Name of the University
Author’s Note
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
1
APPLICATION DEVELOPMENT IN THE IOS ENVIRONMENT
Program Design
For the development of the command line calculator xcode is used along with swift language
since it provides different advantage such as:
It can be used as an interpreted scripted language and has less compiling time,
maintenance complexity. The execution time can be improved and can be used for
creating a software application package for selling it to public.
It eliminates the need to switch the language and thus helps in improving the programmer
skill.
The command line calculator is created to work with integer and arithmetic operators for
performing different operations.
Array and string manipulation
Number operator is utilized for string manipulation and spliced array is used for the
substrings. The string syntax is kept readable and created for passing arguments and the calc file
is imported and programmed to use the expressions used by + - / * operators. The command line
argument is validated for testing errors and in case of / a checking is made for the outbound
errors.
Command line arguments
The given schema is edited and the arguments are executed.
Creating classes and methods in Swift
The instance method is defined with the use of classes and specific task is encapsulated
for working with the intended function.
Document Page
2
APPLICATION DEVELOPMENT IN THE IOS ENVIRONMENT
Exception Handling
Try is used for exception handling and bring the data and APIs are used for creation Json
function for data throw.
Automated testing
The testing is performed using XCode and selecting Iphone 5. All the possible
functionality and paths are tested.
Document Page
3
APPLICATION DEVELOPMENT IN THE IOS ENVIRONMENT
Bibliography
Le, T., 2017. iOS Development with Swift programming language: Creating iOS application for
improving personal physical abilities.
Wang, W., 2019. Understanding iOS Programming. In Beginning iPhone Development with
Swift 5 (pp. 1-20). Apress, Berkeley, CA.
Wang, W., 2019. Beginning IPhone Development with Swift 5: Exploring the IOS SDK. Apress.
chevron_up_icon
1 out of 4
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]