Answer:
public class Pyramid {
public static void main(String[] args) {
int h = 7;
System.out.println("Pattern A");
for(int i = 1; i <= h; ++i)
{
for(int j = 1; j <= i; ++j) {
System.out.print("+");
}
System.out.println();
}
System.out.println();
System.out.println("Pattern B");
for (int i = 1; i<=h; ++i)
{
for(int j = h; j >=i; --j){
System.out.print("+");
}
System.out.println();
}
}
}
Explanation:
- The trick in this code is using a nested for loop
- The outer for loop runs from i = 0 to the heigth of the triangle (in this case 7)
- The inner for loop which prints the (+) sign runs from j = 0 to j<=i
- It prints the + using the print() function and not println()
- In the pattern B the loop is reversed to start from i = height
22 bits
-----------------------------------
Answer:
Service record is the record that is used to track the record of service of the employ in an organization.
Explanation:
The idea behind the service record is to maintain the whole detail of record of the person during his employment including, personnel information, record related to his promotions and posting, salary record etc.
Answer: Arial belongs to the sans serif family of typefaces. It is the most commonly used typeface, and it is the default typeface set in Microsoft Word. A character is a typographic element represented through an upper- or lowercase letter, number, or special character. Every letter of the alphabet has multiple parts that we describe with a particular set of terms. Typographers call this “letter anatomy.” The basic terms common to all letters are below:
An ascender is the stroke extending upward, going above the x-height (which is the height of the letter excluding the ascender or descender).
A descender is the stroke extending downward from the baseline (which is the imaginary horizontal line that aligns the bodies of the characters).
A bar is the horizontal stroke in the uppercase letters A, E, F, H, I, and T, as well as in the lowercase letters e, f, and t.
A counter is the blank space within the body stroke.
A bowl is a curved stroke that surrounds the counter.
A shoulder is a curved stroke beginning at the stem.
A serif is the tapered feature at the end of a stroke. Arial is a sans serif font, and it does not have tapered corners at the ends of the main strokes.