Answer:
k Nishant
Explanation:
he can learn many things internet by using computer he change his self by learning about many things
A worm as a multicell organism, but a virus is a single cell.
Answer:
name = input("Enter customer name: ")
quantity = int(input("Enter quantity: "))
size = input("Enter size [large-medium-small]: ")
if size == "large":
sales = (quantity / 12) * 13
if size == "medium":
sales = (quantity / 12) * 11
if size == "small":
sales = (quantity / 12) * 8.6
print(name + " ordered " + str(quantity) + " " + size + " ballons")
print("Total sales is $" + str(sales))
Explanation:
*The code is in Python.
Ask the user to enter name, quantity, and size
Check the size using if structure. Depending on the size, calculate the sales using the given cost for for a dozen.
Print the order information and total sales
Options :
A.) s1 < s2
B.) s1 <= s2
C.) s1.compareTo(s2) == −1
D.) s2.compareTo(s1) < 0
E.) s1.compareTo(s2) < 0
Answer: E.) s1.compareTo(s2) < 0
Explanation: Lexicographical ordering simply means the arrangement of strings based on the how the alphabets or letters of the strings appear. It could also be explained as the dictionary ordering principle of words based on the arrangement of the alphabets. In making lexicographical comparison between strings, the compareTo () method may be employed using the format below.
If first string = s1 ; second string = s2
To compare s1 with s2, the format is ;
s1.compareTo(s2) ;
If s1 comes first, that is, before s2, the method returns a negative value, that is a value less than 0 '< 0', which is the case in the question above.
If s2 comes first, that is, before s1, the method returns a positive value, that is a value greater than 0 '> 0'.
If both are s1 and s2 are the same, the output will be 0.