Sorry bro people do this22.2 pls
Answer:
Please, see the attachment.
Explanation:
First, we have to create two input boxes that allows the user to write the current year in one of them and his/her birth year in the another one. Also, we have to create a label that will show the result of the desired variable. We can write a message "Your age is:" and it will be attached to the result.
For the algorithm, let's call the variables as follows:
CY = Current Year
BY = Birth Year
X = Age of user
When the user inserts the current year and his/her birth year, the program will do the following operation:
X = CY - BY; this operation will give us the age of the user
After this the user will see something like "Your age is:" X.
Answer:
e = 3.97*10^-4
Explanation:
1.8 mm = 0.0018 m
2.6*10^4 mm = 26 m
Elongation is The ratio between the stretched length and the original length.
e = L/L0
This is calculated with Hooke's law:
e = σ/E
Where
σ: normal stress
E: elastic constant
σ = P/A
Where
P: normal load
A: cross section
A = π/4 * d^2
Therefore:
e = P / (A * E)
e = 4 * P / (π * d^2 * E)
e = 4 * 290 / (π * 0.0018^2 * 207*10^9) = 3.97*10^-4
Answer:
See explaination
Explanation:
int RED=10; int BLUE=11; int GREEN=12; int BUTTON1=8; int BUTTON2=9; void setup() { pinMode(RED, OUTPUT); pinMode(BLUE, OUTPUT); pinMode(GREEN, OUTPUT); pinMode(BUTTON1, INPUT); pinMode(BUTTON2, OUTPUT); } void loop() { int BTN1_STATE=digitalRead(BUTTON1); int BTN2_STATE=digitalRead(BUTTON2); if(BTN1_STATE==HIGH) { digitalWrite(BLUE, HIGH); delay(1000); // Wait for 1 second digitalWrite(BLUE, LOW); } if(BTN2_STATE==HIGH) { digitalWrite(RED, HIGH); delay(4000); // Wait for 4 seconds digitalWrite(RED, LOW); } if(BTN1_STATE==HIGH && BTN2_STATE==HIGH) { digitalWrite(GREEN, HIGH); delay(2000); // Wait for 2 second digitalWrite(GREEN, LOW); } }