Read the following code carefully and do as directed: int main() { // Initialising starting number int num = 1; int n=7 // Outer
loop to handle number of rows // n in this case for (int i = 0; i < n; i++) { // Inner loop to handle number of columns // values changing acc. to outer loop for (int j = 0; j <= i; j++) { // Printing number cout << num << " "; // Incrementing number at each column num = num + 1; } // Ending line after each row cout << endl; } You need to answer following questions. 1. Draw Control Flow Graph for the given code 2. Highlight all regions in the flow graph separately 3. Using cyclometic complexity formula, calculate number of basis path tests.
Computer-aided engineering (CAE) and finite element analysis (FEA) Computer-aided manufacturing (CAM) including instructions to computer numerical control (CNC) machines. Photorealistic rendering and motion simulation. Document management and revision control using product data management (PDM).