Answer:
The inorder traversal make a binary search tree sorted.
Explanation:
The algorithm of inorder traversal is
1. Traverse the left subtree.
2. print the data .
3. Traverse the right subtree
In this algorithm left subtree is visited first then it print the data or visit the data and finally it visited Right subtree .
Answer:
#include <stdio.h>
int main(void) {
char triangleChar;
int triangleHeight;
printf("Enter a character:\n");
scanf(" %c", &triangleChar);
printf("Enter triangle height:\n");
scanf("%d", &triangleHeight);
printf("\n");
int i, j;
for(i = 0; i < triangleHeight; ++i) {
for(j = 0; j <= i; ++j) {
printf("%c ", triangleChar);
}
printf("\n");
}
return 0;
}
Explanation:
- Get the character and height as an input from user.
- Run the outer loop up to the height of triangle.
- Run the inner loop up to the value of i variable and then display the character inside this loop.
Answer:
Explanation:Systems Analysis
It is a process of collecting and interpreting facts, identifying the problems, and decomposition of a system into its components.
System analysis is conducted for the purpose of studying a system or its parts in order to identify its objectives. It is a problem solving technique that improves the system and ensures that all the components of the system work efficiently to accomplish their purpose.
Systems Design
It is a process of planning a new business system or replacing an existing system by defining its components or modules to satisfy the specific requirements. Before planning, you need to understand the old system thoroughly and determine how computers can best be used in order to operate efficiently.
System Design focuses on how to accomplish the objective of the system.
System Analysis and Design (SAD) mainly focuses on −
Systems
Processes
Technology
String oldSeq="1100000111";
String segment="11";
String newSeq=oldSeq.replaceFirst(segment, "");