Email Spoofing

1

Email spoofing is the forgery of an email header so that the message appears to have originated from someone or somewhere other than the actual source. Email spoofing is a tactic used in phishing and spam campaigns because people are more likely to open an email when they think it has been sent by a legitimate source.

Hehehe…Copied from Google. But in simple words, Email Spoofing is just a creation of fake email message in which you can customize the Senders’s Name, Sender’s Email ID which is difficult to trace the details of the sender for a common people.

gettyimages-468701250-5734d64f5f9b58723db72015

Continue reading

File Handling – Python Program

3

Python provides basic functions and methods necessary to manipulate files by default. You can do most of the file manipulation using a file object.

So, today we will cover the file handling in python. Before you can read or write a file, you have to open it using Python’s built-in open() function. This function creates a file object, which would be utilized to call other support methods associated with it. So, in the below program we will create a menu for reading and writing a file. it will be a simple Menu for just reading and writing data.

Note: The text file should be there in the same folder for reading, where you have saved the program file. Also, write the filename with it’s extension for instance ‘demo.txt’.

Below is the output of the program, have a look and try by yourself. If you still cannot figure it out the then click on Continue Reading… for solution.

file_handling

Continue reading

Matrix Formation – C Program

0

A Matrix (plural Matrices) is a rectangular array of numbers, symbols, or expressions, arranged in rows and columns.

For example, the dimensions of the matrix below are 2 × 3 (read “two by three”), because there are two rows and three columns.

{\displaystyle {\begin{bmatrix}1&9&-13\\20&5&-6\end{bmatrix}}.}

So, today we will create C Program of Matrix in which data will be taken from the user dynamically. I used to write C Programs in Code Blocks.

Also, we will perform Addition, Subtraction and Transpose of both the Matrix. The Program which I had created is simple to understand for beginners because i have used only following keywords in the code:

  1. Arrays (to store input data from user)
  2. Nested For Loop
  3. If Else Conditional Operators (to compare both the  matrix)

Below image is the output the program:

matrix

Matrix – C Program

Try to analyze the above given data and create the program from your own.

Failed? Click More below to get the Solution…

Continue reading

Number Sequence – Python Program

5

Here I am back with a new challenge for you guys.

Lets try to create a logic sequence of number in Python. Look at the below image.

num_seq

Number Sequence

The above logic sequence is created using following keywords:

  1. List
  2. Nested For Loop
  3. Print (of course)

Try to analyze the above given data and create the sequence from your own.

Failed? Click More below to get the Solution…

Continue reading

Billing System – GUI created in Python

2

Here is a Python GUI Program of How Billing System  works.

Note: It’s just a demo program. It gives a simple idea of constructing GUI and operational methods implemented in it.

Below is the GUI i.e. output of the program.

billing_ss1

Billing-Python GUI

 

 

 

  • All Labels, Entries and Text Box are aligned together using Grid Function.
  • Height and Width attributes are used to uniform all the objects.
  • Simple code techniques are used for easy understanding.
  • At last a Message Box is created to display calculated amount.

 

Code:

from tkinter import *

list=[]
def add():
data=Lb.get(ACTIVE)
if data==’Pen 10/-‘:
tb.insert(END,’\nPen\t10/- x %d’%(qnt.get()))
list.append(10*qnt.get())

elif data==’Pencil 5/-‘:
tb.insert(END,’\nPencil\t5/- x %d’%(qnt.get()))
list.append(5*qnt.get())

elif data==’Eraser 10/-‘:
tb.insert(END,’\nEraser\t10/- x %d’%(qnt.get()))
list.append(10*qnt.get())

elif data==’Sharpner 15/-‘:
tb.insert(END,’\nSharpner\t15/- x %d’%(qnt.get()))
list.append(15*qnt.get())

def total():
messagebox.showinfo(“Hello %s”%(nameinfo.get()),”Amount to be paid: Rs. %d/-“%(sum(list)))

def clr():
tb.delete(1.0,END)
list.clear()

f=Tk()
f.title(“Billing”)

nameinfo=StringVar()
data=IntVar()
qnt=IntVar()

name=Label(f,text=’Name :’)
e1=Entry(f,width=15,bd=3,textvariable=nameinfo)

prod=Label(f,text=’Products :’,bd=3)
Lb=Listbox(f,height=6,width=15,bd=3)
Lb.insert(0,’Items Price\n’)
Lb.insert(1,”)
Lb.insert(2,’Pen 10/-‘)
Lb.insert(3,’Pencil 5/-‘)
Lb.insert(4,’Eraser 10/-‘)
Lb.insert(5,’Sharpner 15/-‘)

quan=Label(f,text=’Quantity :’)
e2=Entry(f,width=15,bd=3,textvariable=qnt)

b1=Button(f,text=’Add Items’,width=12,bd=3,command=add)

tb=Text(f,height=5,width=20,bd=3)

b3=Button(f,text=’Clear Items’,width=12,bd=3,command=clr)

b2=Button(f,text=’Total’,width=12,bd=3,command=total)

name.grid(row=0,column=0,padx=5,pady=5)
e1.grid(row=0,column=1,padx=5,pady=5)
prod.grid(row=1,column=0,padx=5,pady=5)
Lb.grid(row=1,column=1,padx=5,pady=5)
quan.grid(row=2,column=0,padx=5,pady=5)
e2.grid(row=2,column=1,padx=5,pady=5)
b1.grid(row=3,column=1,padx=5,pady=5)
tb.grid(row=4,columnspan=2,padx=5,pady=5)
b3.grid(row=5,column=0,padx=5,pady=5)
b2.grid(row=5,column=1,padx=5,pady=5)

f.mainloop()

You can even download the .py file from the attachment.

If you have any queries, idea or any information regarding program,then please kindly contact me or comment below.

Thank You!

Attachment: Billing.py