Answer:
Explanation:
The code provided had many errors. I fixed the errors and changed the userAgeCheck function as requested. Checking the age of that the user has passed as an input and changing the variables as needed depending on the age. The background color that was changed was for the form field as the question was not very specific on which field needed to be changed. The piece of the code that was created can be seen in the attached image below.
var validColor = "LightGreen";
var invalidColor = "Orange";
var userAgeInput = document.getElementById("userAge");
var formWidget = document.getElementById("userForm");
var userAgeValid = false;
function userAgeCheck(event) {
if ((userAgeInput >= 25) && (userAgeInput <= 35)) {
document.getElementById("userForm").style.backgroundColor = validColor;
userAgeValid = true;
} else {
document.getElementById("userForm").style.backgroundColor = invalidColor;
userAgeValid = false;
}
};
function formCheck(event) {};
if (!userAgeValid) {
userAgeInput.addEventListener("input", userAgeCheck);
formWidget.addEventListener('submit', formCheck);
event.preventDefault();
}
Answer:
Magnetic disks are easier to write and rewrite data on.
Explanation:
Answer: 0.7585Wh
Explanation:
Battery capacity = 205 mAH
Nominal Voltage (V) = 3.7
The overall energy capacity of the battery is measured in watt-hour. Which is the product of the battery capacity in Ampere-hour(AH) and the nominal voltage of the battery in volt (V)
205mAH = 205/1000 = 0.205AH
Therefore, energy capacity:
0.205AH × 3.7 V = 0.7585Wh
This gives us the amount of energy stored in the battery per hour.
Therefore, a battery with nominal voltage of 3.7V and current capacity of 205mAH has a maximum energy capacity of 0.8585Wh.
Hello <span>Enriqueliz5443</span><span>
Answer: Before using the data type string, the program must include the header file string
Hope this Helps!
-Chris</span>