This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | asaddler@debian9VM:~$ g++ mp4-proj.cpp -o mp4 | |
| asaddler@debian9VM:~$ ./mp4 | |
| > 7 3 10 2 5 8 11 4 -1 | |
| > > > > > > > > | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 7 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <stdio.h> | |
| #include <stdbool.h> | |
| #define MAX 9 | |
| int intArray[MAX] = {1, 3, 9, 4, 11, 34, 2, 8, 10}; | |
| void printline(int count) { | |
| int i; | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| #include <math.h> | |
| class Shape { | |
| public: | |
| virtual float calculateArea() = 0; | |
| virtual ~Shape(){}; | |
| std::string name; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| #include <math.h> | |
| class Shape { | |
| public: | |
| virtual float calculateArea() = 0; | |
| virtual ~Shape(){}; | |
| std::string name; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <iostream> | |
| #include <fstream> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| using namespace std; | |
| // check for keywords | |
| int isKeyword(char buffer[]) { | |
| char keywords[32][10] = { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class Circle extends Shape { | |
| private final double radius; | |
| final double pi = Math.PI; | |
| public Circle() { | |
| this(1); | |
| } | |
| public Circle(double radius) { | |
| this.radius = radius; | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //Circle class inherited from the shape | |
| //class with implementation to the methods. | |
| public class Circle extends Shape { | |
| private int radius; | |
| public Circle(int radius) { | |
| this.radius = radius; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # Flush out the list before we begin | |
| ipfw -q -f flush | |
| # Set rules command prefix | |
| cmd="ipfw -q add" | |
| vpn="tun0" | |
| # allow all local traffic on the loopback interface | |
| $cmd 00001 allow all from any to any via lo0 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <iostream> | |
| using namespace std; | |
| long int factorial(int n); | |
| int main() { | |
| int n; | |
| cout << "Enter Number "; | |
| cin >> n; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| * threesum.c | |
| */ | |
| #include <errno.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <time.h> | |
| #include <unistd.h> |