Answer:
The answer to this question is given below in the explanation section. the correct option is C.
Explanation:
This is Java code statement:
System.out.print("Computing\nisInfun");
The output of this code statement is
Computing
isInfun
However, it is noted that the C option is not written correctly, but it is guessed that it will match to option C.
This Java code statement first prints "Computing" and then on the next line it will print "isInfun" because after the word "Computing" there is a line terminator i.e. \n. when \n will appear, the compiler prints the remaining text in the statement on the next line.
The cursor should move right but if not give me more information to correct my statement
Answer:
=((SUM(PUT RANGE OF MOTHLY EXPENSES HERE)*12)+SUM(PUT RANGE OF YEARLY EXPENSES HERE))/12
Explanation:
Adds all of the Monthly Expenses : SUM(PUT RANGE OF MOTHLY EXPENSES HERE)
Multiplies the result by 12: *12
Then adds all of the Yearly Expenses to the product of Steps 1 and 2 : SUM(PUT RANGE OF YEARLY EXPENSES HERE)
Divides this new sum by 12: /12
=((SUM(PUT RANGE OF MOTHLY EXPENSES HERE)*12)+SUM(PUT RANGE OF YEARLY EXPENSES HERE)/12)
Answer:
see explaination for program code
Explanation:
scalar_product = 0
li=[]
li2=[]
#reading numbers1.txt and numbers2.txt intoli and li2 respectively
with open('numbers1.txt') as n1, open('numbers2.txt') as n2:
for line1 in n1:
li.append(int(line1))
for line2 in n2:
li2.append(int(line2))
#storing min list size into variable l
a=len(li)
b=len(li2)
if a<b:
l=a
else:
l=b
#calculating scalar product
for i in range(l):
scalar_product=scalar_product+li[i]*li2[i]
print("scalar product is",scalar_product)