1.
name = input("Enter your name: ")
num1 = int(input("Hello "+name+ ", enter an integer: "))
num2 = int(input(name+", enter another integer: "))
try:
if num1 % num2 == 0:
print("The first number is divisible by the second number")
else:
print("The first number is not divisible by the second number")
except ZeroDivisionError:
print("The first number is not divisible by the second number")
try:
if num2 % num1 == 0:
print("The second number is divisible by the first number")
else:
print("The second number is not divisible by the first number")
except ZeroDivisionError:
print("The second number is not divisible by the first number")
2.
import random, math
num1 = float(input("Enter a small decimal number: "))
num2 = float(input("Enter a large decimal number: "))
r = round(random.uniform(num1, num2), 2)
print("The volume of a sphere with radius " + str(r) + " is " + str(round(((4 / 3) * math.pi * (r ** 3)), 2)))
I hope this helps!
Answer:
UI Character Presets
Explanation:
User Interface is an option or go-to menu in a desktop application. For example, Photoshop. It allows a user to tweak the outlook to his or her own preference rather than the default settings.
To do this, a user is often tasked to do the following:
1. Click on the "Edit" menu
2. Navigate and click on "Preferences"
3. Select the "Interface" link
The options available to change includes:
a. UI Scaling
b. UI Font Size
c. UI Language.
Hence, in this case, the element that is not a selection in the Interface preferences is "UI Character preset"
Answer: In java the symbol "+" operator is used to perform string concatenation.
Explanation:
String concatenation refers to joining of two strings. So in java + is used to join strings which works provided one of the operands must be a String variable. Then it works by converting the other variable to String variable and joins the second operand to the end of the first operand.
An example of String concatenation is as follows:
int age = 10;
System.out.println("The boys age is " + age);
Output:
The boys age is 10.
here, the age is integer variable but as the phrase "The boys age is" is a String variable so it converts the age to String variable and joins both the Strings.
Answer:
I am done solving there was a synthetic error very sorry I tried to help for 30mins