What you will practice
You'll practice using inputs to interact with users and basic mathematical calculations. These skills serve as the basis of all apps with user interaction.
Introduction
You'll create a simple app to convert temperatures from Celsius to Fahrenheit, and vice-versa. This project should be implemented as a mobile app. See here for the website version of this project.
Requirements
The user will input a temperature in either Fahrenheit or Celsius and press a "convert" button. The converted temperature will then be displayed with the correct unit.
Your UI should include four main elements:
- Input field for the user to type in their temperature - don't forget to validate that the input is a number!
- Dropdown menu or radio button for the user to choose if they are inputting in Celsius or Fahrenheit
- "Convert" button to trigger the temperature conversion
- Display area for the final converted temperature and unit
The following image shows one way to implement the UI. Feel free to interpret the requirements however you'd like!
For an extra challenge: You can add in a third conversion option to convert from and to Kelvin as well.
Suggested Implementation
This project can be implemented as a native iOS app using Swift, a native Android app using Java and the Android SDK, or a multi-platform app using React Native.