Since resistance and current are inversely proportional, when the resistance doubles, the current is cut in half.
Answer:
a) range check
Explanation:
Validation can be defined as an automatic computer check that is designed to ensure any data entered is sensible, consistent, feasible and reasonable.
Basically, there are five (5) main validation methods and these includes;
I. Presence check: checks that the user enters (inputs) data into the field. It ensures a field isn't accidentally left blank.
II. Length check: checks that the data entered isn't too short or too long. It ensures that the data meets the minimum characters.
III. Type check: checks that the data entered is in the right format. For example, string, integer, float, etc.
IV. Check digit: checks that the digit entered is acceptable and consistent with the rest of the digits.
V. Range check: checks that the data entered is between the accepted lower (minimum) and upper (maximum) level.
Hence, range check is a validation type you would use to check that numbers fell within a certain range.
For example, 0 < x > 1000 is a range check.
Answer:
name = input("Enter name: ")
droids = int(input("How many droids you want to meet? "))
wookies = int(input("How many Wookies you want to meet? "))
print(name + " wants to meet " + str(droids) + " droids, and " + str(wookies) + " Wookies")
Explanation:
*The code is in Python.
Ask the user to enter the name, number of the droids and number of the Wookies
Print the name, number of the droids, and number of the Wookies
Note that while getting the input for the droids and wookies, you need to typecast the input the int (Since the values are int). Also, to print these variables, you need to typecast them as string in that format.