Objective:
The objective of this homework is to create an app that calculates the ohm’s
law equation.
Ohm’s Law Equations
V = I*R
P = I*V
V – Voltage
I – Current
R – Resistant
P – Power
In this app, the user will input two to the four inputs and you will need to
provide the answers to the other variables of the equations.
For example, if the user inputs numbers for the ‘V’ and ‘I’ you will need to
provide the answers for variables ‘R’ and ‘P’, where R = (V/I) and P = (I*V).
Another example, if the user inputs numbers for ‘I’ and ‘R’, you will need to
provide the answers for the variables ‘P’ and ‘V’, where P = (I2
*R) and V =
(I*R).
Needed Materials:
iOS Developers
Before you start this assignment, you will need to download and install the iOS
SDK and Xcode 4 from [login to view URL] or using the App Store on
Mac OSX.
Android Developers
Before you start this assignment, you will need to download and install the
Android SDK and Eclipse. You can follow this online tutorial from
[login to view URL] to install it.
It is critical that you get the SDK downloaded and functioning as early as possible
in the week. This will allow time in case you have to contact the instructor for
help.
Required Tasks:
• Must be developed in iOS or Android
• Must have inputs for V (Voltage), I (Current), R (Resistance), and P
(Power).
• The inputs must be able to support double or integer values.
• The inputs and outputs must be in a UITextField for iOS or a EditText for
Android.
• Must take two of the four inputs and compute the appropriate answers
to the equations in the Objective section.
• Must display the answers to the equation to the user.
• Should be a total of 9 different combination answers of the inputs.
o V = I*R
o P = I*V
o R = V/I
o I = V/R
o I = P/V
o V = P/I
o P = I2
*R
o I = Sqrt(P/R)
o R = P/(I2
)
• Must change the background color of the app.
• Must put a hint text (Android) or placeholder text (iOS) on each text
field.
• Must have label with title of app. (Doesn’t have to be Homework #1)
• Title label must have different font and text size than default font
Hello,
I already have working Eclipse, SDK and an Android phone.
I'm also Master of Science in EE. I can make this app for you in 1-2 days.
Thank you very much!
Goran