This file contains 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
import cv2 | |
import numpy as np | |
#Numpy is the core library for scientific computing in Python. It provides a high-performance multidimensional array object, and tools for working with these arrays | |
import sys | |
#This module provides access to some variables used or maintained by the interpreter and to functions that interact strongly with the interpreter. | |
facePath = "haarcascade_frontalface_default.xml" |
This file contains 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<conio.h> | |
static int sum(int n) | |
{ | |
int sum = 0; | |
do | |
{ | |
sum += n % 10; | |
} while (n /= 10); |
This file contains 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
/*<applet Code="DemoApplet.class" width=800 height=600> | |
</applet>*/ | |
import java.applet.*; | |
import java.awt.*; | |
public class DemoApplet extends Applet | |
{ | |
public void paint(Graphics g) | |
{ | |
g.drawOval(40,40,120,150); //head | |
g.drawOval(57,75,30,20); //left eye |
This file contains 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
import java.util.Scanner; | |
public class DogRegistration | |
{ | |
public void processDogs() | |
{ double total_fees=0; | |
double total_discount = 0; | |
for(int i=0;i<3;i++) | |
{ | |
double fee, disct; |