The application basically calculates acceleration by inputting Initial and final velocity and time and then use a formula to calculate acceleration. However, since the value
for Alternative solution. You can use extension a native type. You can test with playground.
extension String { func add(a: Int) -> Int? { if let b = Int(self) { return b + a } else { return nil } } }
"2".add(1)