Question: Please answer in Kotlin programming language for this assignment, you are going to create a Kotlin class that stores photo metadata. This metadata class will
Please answer in Kotlin programming language
for this assignment, you are going to create a Kotlin class that stores photo metadata. This metadata class will use computed properties and as well as methods to allow users to find out data about the photo that was not previously stored in the original camera data.
Your Kotlin class should include properties for the following:
- aperture
- ShutterSpeed
- ev
- iso
- lux
The property names MUST BE named exactly as written above. The class MUST BE stored in a separate file named PhotoMetadata.kt and the class MUST BE named PhotoMetadata.
(a)aperture = 4, (t)shutterspeed = 1/60, iso = 200, solve for ev and lux.
EV is a value that should be derived using a getter. It should be set based on the following formula: ev = log^2(a^2/t) + log^2 (iso/100)
ev is exposure value, a is aperture value, and t is time (shutter speed).
Finally, the lux value is calculated via the following formula:
lux = 2.5 * 2^ev
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
