Skip to content

Instantly share code, notes, and snippets.

View sohanmanju's full-sized avatar

Sohan Manju sohanmanju

View GitHub Profile
1.Program to perform swap of two int and float using function overloading.
#include<iostream.h>
#include<conio.h>
void swap(int &,int &);
void swap(float &,float &);
main()
{
clrscr();
1.Program to perform swap of two int and float using function overloading.
#include<iostream.h>
#include<conio.h>
void swap(int &,int &);
void swap(float &,float &);
main()
{
clrscr();
@sohanmanju
sohanmanju / kali_osx_persistence_wifi.md
Created July 8, 2019 16:11 — forked from widdowquinn/kali_osx_persistence_wifi.md
Kali Linux Live USB with persistence and wireless on Macbook Pro

Kali Linux Bootable USB with Persistence and Wireless on OSX

Download the appropriate Kali Linux .iso

I used a 64 bit .iso image, downloaded via HTTP. I downloaded the amd64 weekly version, as the pool linux headers (needed below for installation of wireless drivers) were ahead of the stable release kernel.

Download the SHA256SUMS and SHA256SUMS.gpg files from the same location.

@sohanmanju
sohanmanju / car.java
Created September 27, 2019 03:46
Java Assignment Question 4
public class Car
{
private int yearModel;
private String brand;
private int priceModel;
private int numberModel;
public Car(String b, int year, int price, int number)
{
yearModel = year;
@sohanmanju
sohanmanju / java1to3.txt
Last active December 22, 2019 04:37
Java Model Papers
Chapter 1:
Q1. Explain method overloading and method overriding with an example.
ans. Overriding and Overloading are two very important concepts in Java. They are confusing for Java novice programmers. This post illustrates their differences by using two simple examples.
1. Definitions
Overloading occurs when two or more methods in one class have the same method name but different parameters.
Overriding means having two methods with the same method name and parameters (i.e., method signature).
One of the methods is in the parent class and the other is in the child class.
import math
numbers = map(int, input("Please Enter any Numbers: ").split(","))
def isEqualFactors(N):
ev_count = 0
od_count = 0
for i in range(1, (int)(math.sqrt(N)) + 2):
if N % i == 0:
if i == N // i: