In your own words clearly distinguish between data and information within the context of computer-based information systems.
ii. for each of the two terms data and information, provide two practical examples in the field of business or engineering
Consider the following Python function.
def mystery(l):
if l == []:
return(l)
else:
return(mystery(l[1:])+l[:1])What does mystery([22,34,18,57,92,45]) return?
Static data members of a class occupy memory once whereas non static data members occupy members as per the number of objects created. Justify the statement by writing a program.
Diamond Crystal
Given an integer value N, write a program to print a diamond pattern of 2*N rows as shown below.
The first line of input is an integer N.
In the given example, the number of rows in the diamond is 2*5 = 10.
So, the output should be
/\
/ \
/ \
/ \
/ \
\ /
\ /
\ /
\ /
\/Sample Input 1
5
Sample Output 1
/\
/ \
/ \
/ \
/ \
\ /
\ /
\ /
\ /
\/Sample Input 2
3
Sample Output 2
/\
/ \
/ \
\ /
\ /
\/Refer to the document in the link below
https://docs.google.com/document/d/1RBknUJ-BqOf7C-5nMxEFs4JxAUQo4_KSt07SSkS3Jak/edit?usp=sharing
Bob has an array of size n. He loves to play with these n numbers. Each time he plays with them, he picks up any two consecutive numbers and adds them. On adding both the numbers, it costs him k*(sum of both number). Find the minimum cost of adding all the numbers in the array.
Bob has an array of size n. He loves to play with these n numbers. Each time he plays with them, he picks up any two consecutive numbers and adds them. On adding both the numbers, it costs him k*(sum of both number). Find the minimum cost of adding all the numbers in the array.