It is grouped according to raster and vector format. Raster format are images used in a computer or printed. Vector format stores data and is compressed.
Examples of common raster formats usually used in a computer are; jpeg, png, bitmap, and gif. Vector formats are; CGM, SVG and 3D vector.
Answer:
Check the explanation
Explanation:
arrow_base_height = int(input('Enter arrow base height:\n'))
arrow_base_width = int(input('Enter arrow base width:\n'))
arrow_head_width = arrow_base_width
while arrow_head_width <= arrow_base_width:
arrow_head_width = int(input('Enter arrow head width:\n'))
print()
for i in range(arrow_base_height):
for j in range(arrow_base_width):
print('*', end='')
print()
for i in range(arrow_head_width):
for j in range(arrow_head_width-i):
print('*', end='')
print()
Kindly check the code output below.
Answer:
Explanation:
The following code is written in Java. The if() function is actually called an if statement. The following code can be copied and pasted where you need as long as it is within the scope of the mark variable in order to call it and compare it to 10
if (mark > 10){
System.out.println("you have scored good");
} else {
System.out.println("you need to improve ");
}
Answer:
Since the question expect us to declare a C-string, the solution code is written in C as follows:
- char ssn[9];
- scanf("%s",ssn);
Explanation:
A C-String is a string written in C language. It is an array of characters. To declare a C-string, we use the keyword, <em>char </em>and then followed with the variable name + brackets and the number of characters in the string. For example, we can create a C-String for the SSN number as in Line 1.
To read standard input into the array, we can use C built-in function, <em>scanf(). </em>Just include a string placeholder, %s, and the variable<em> ssn </em>as arguments to <em>scanf()</em>. This will assign the string input by user to variable <em>ssn</em> as C-String.