Question: Android Studio Code: Provide a working android studio code i.e java and xml code for the activity below: 1. Ask user to select 3 points

Android Studio Code:

Provide a working android studio code i.e java and xml code for the activity below:

1. Ask user to select 3 points on color wheel:

Point one: blank (zero concentration)

Point 2: standard (user inputs concentration)

Point 3: unknown (unknown concentration)

2. Obtain RGB (red, green, blue) color values for each point selected by user

3. convert RGB values to Hue values

(The formula for Hue depends on how RGB values relate to each other. In other words, it depends on which one represents the Max(RGB) and Min(RGB) values.)

(A) If R G B | Hue = 60 x [(G-B)/(R-B)]

(B) If G > R B | Hue = 60 x [2 - (R-B)/(G-B)]

(C) If G B > R | Hue = 60 x [2 + (B-R)/(G-R)]

(D) If B > G > R | Hue = 60 x [4 - (G-R)/(B-R)]

(E) If B > R G | Hue = 60 x [4 + (R-G)/(B-G)]

(F) If R B > G | Hue = 60 x [6 - (B-G)/(R-G)]

4.Obtain concentration of unknown point by plotting hue values vs concentration to obtain calibration curve. Plug in hue values to obtain concentration of unknown. Concentration of unknown = [(Hue of unknown-Hue of blank)/((Hue of standard-Hue of blank)/Concentration of standard))].

5. send output to user for the solved concentration of unknown via calculations made in step 4.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!