Answer:
Lexical rules that are defined in case of regular grammar are simple and the notation is quite easy to understand.
Regular expression are useful for defining constructs of identifiers or constants. e.g. a|b etc.
In the case of context-free, grammar is not simple and deals with the productions.
Context-free are useful in describing the nested constructs like if-else etc which are not defined by regular expressions.
These produce a higher level of reliability as it provides a medium for generating syntactical as well as semantic data. The grammar is context-free is a little complex.
Explanation:
Answer:
Normalization
Explanation:
From the options given :
Boxplot is a data visualization techniqye used for representing numerical data in the form of a box such that it adequately conveys the five number summary if the dataset which are the minimum, maximum, lower quartile, median and upper quartile, it also depicts the presence of outlines.
Scatter plot are used depict the relationship between two variables on the x and y axis of a graph. Each point is a representation of the (x, y) value pairs of the observation.
Tag clouds are usually used to represent word, metatdata and other free form text using different colors and font sizes to give information about the data.
Normalization is the odd option out as it is used to restructure data in other to promote integrity of data.
Answer:
The program in Python is as follows:
n = int(input("n:"))
total = 0
for k in range(1,n+1):
total+=k**3
print(total)
Explanation:
This gets input for n
n = int(input("n:"))
This initializes total to 0
total = 0
This iterates from 1 to n
for k in range(1,n+1):
This adds up the cube of each digit
total+=k**3
This prints the calculated total
print(total)
an output device translate information processed by the computer into a form which you can understand.
input device are used to enter information such as letters, numbers, sounds or picture into a computer.