Answer:
try:
pH = float(input("Enter number between 0 to 14: "))
except ValueError:
print("input must be a number")
if pH < 7:
print("pH is Acidity")
elif pH == 7:
print("pH is neutral")
else:
print("pH is Base/alkaline")(
Explanation:
The try and except statement is used to check if the input is a number, if its not, the print statement is displayed. The nested if statement compares the pH input to know if it is an acid, base or neutral.
Answer:
Pseudocode is an artificial and informal language that helps programmers develop algorithms. Pseudocode is a "text-based" detail (algorithmic) design tool. The rules of Pseudocode are reasonably straightforward. All statements showing "dependency" are to be indented. These include while, do, for, if, switch.
Answer:
enhanced for loop
Explanation:
Enhanced for loop is an improve concept about loops, this features was implemented in Java SE 5.0 version, this method simplify the For structure. For example:
for (int i = 0; i <array.length; i ++) {
System.out.print (array [i]);
}
Enhanced for loop
for (String element : array) {
System.out.print(element);
}
Answer:
The real reason why AI smartphone software in the rental car is threat to privacy is that the data transmitted can actually be exposed to security breaches in the software and so if that happens, the car is no longer under the control of the user.
Hope this helps!