chxgfk hcyskvuct auhchovuzq vuvscisv
Answer TCP/IP is the most common protocol in Local Area Networks.
According to the given question, sales is a two-dimensional array and contains 10 rows and 7 columns wherein each component is of type integer and the variables sum and j are also of integer type.
<u>Explanation:</u>
In order to find the sum of the elements of the fifth row of sales, the correct piece of code should be:
sum=0;
for(j=0;j<7;j++)
sum=sum+sales[4][j];
The indexing in an array always starts from zero, therefore, to calculate the sum of the fifth row, the user has to write 4 in the index to point to the fifth row.
Answer:
Floating point literal defines a compile-time constant whose value is specified in the source file
Explanation:
Answer:
<u>Program:</u>
Module Module1
Function Days(intYears As Integer, intMonths As Integer, intWeeks As Integer) As Integer
' 1 year = 365days
' 1 month=30.417 days
' 1 week = 7 days
Days = 365 * intYears + 30.417 * intMonths + 7 * intWeeks
End Function
Sub Main()
Dim years, months, weeks As Integer
Console.Write("Enter the number of years: ")
years = Convert.ToInt32(Console.ReadLine())
Console.Write("Enter the number of months: ")
months = Convert.ToInt32(Console.ReadLine())
Console.Write("Enter the number of weeks: ")
weeks = Convert.ToInt32(Console.ReadLine())
Console.WriteLine("Days: " & Days(years, months, weeks))
Console.ReadKey()
End Sub
End Module