Posts

Showing posts from July, 2021

Simple code to find student result e.g (Total marks, Percentage , student GPA )

````````````````````````````````````````````````````````````````````````````````````````````` This code put in python idle or any other idle to find student result easily `````````````````````````````````````````````````````````````````````````````````````````````  class DMC:     def __init__(self,sub_1,sub_2,sub_3,sub_4,sub_5,sub_6):         self.programming=sub_1         self.calulas=sub_2         self.english=sub_3         self.islamyat=sub_4         self.physics=sub_5         self.computing=sub_6     def TotalMarks(self):         Total=self.programming+self.calulas+self.english+self.islamyat+self.physics+self.computing         if Total<0 or Total>600:             print("Enter the marks")         else:             return Total     def percentage(self):         return round(self.TotalMarks()/6,0)     def GPA(self):         if (self.percentage()>=85 and self.percentage()<=85):             return 4.0         elif self.percentage()>=80 and self.percentage()<=

Python code to find operation of two rational numbers

~This is the code  for finding  addition, subtraction, multiplication and division of two number~   from fractions import Fraction class Rational:     def __init__(self,numerator,denominator):         self.numerator=numerator         self.denominator=denominator     def Adding_R(self):          x=self.numerator+self.denominator          y=Fraction(x)          print("\nThe addition of two rational number is:",x)          print("a/b form is:")          print ("%s = %s  " % (x,y))               def Sub_R(self):          x=self.numerator-self.denominator          y=Fraction(x)          print("\nThe subtrction of two rational number is:",x)          print("a/b form is:")          print ("%s= %s " % ( x,y))     def Mul_R(self):          x=self.numerator*self.denominator          y=Fraction(x)          print("\nThe Multiflication of two rational number is:",x)          print("a/b form is:")          print ("%

HTML CODE FOR RESUME

  <!DOCTYPE html> <html> <head> <title>my cv</title> </head>   <style> {border=5px solid green}   </style> <p> <body> <center> <h1> <u> WELCOME TO MY CV</u>   </h1> </center>   <img src="E:\My pic\20201212_165651.png"height="100"width="80" border="5"align="right">   <h3>Name:Zabihullah</h3>   <h3>Address:                     Maira surizai payan peshawar</h3>   <h3>Email Address:         Zabih9988@gmail.com</h3> <h3>contact No:                               03xxxxxxxxx</h3><hr>   <h2> <div style="background-color:gray;color;white;pedding:05px"> <u>CAREER OBJECTIVE</u> </h2>   <h3> To succeed in an environment of growth , excellence and earn a job which provide me job satis

HTML CODE FOR CV

  <!DOCTYPE html> <html> <head> <title>My Resume</title></head>       <body> <table border ="1" align="center" width="60%" > <tr> <th><h1>Wlecome To My Resume!</h1></th></tr> <tr><th align="left"><h2>Zabihullah</h2>   <img src="E:\My pic\20201105_120806.jpg" align="right" hight="200"width="100"border="1">   <b>owner at:Apnapedia .com</b><br><br> Mobile No:03459341912<br><br> Email Address:zabih1983@gmail.com<br><br> <h2><u>personal infomation</u></h2>   <ul>   <li>Father Name:              Haji Ghalib Khan</li> <li>Cnic:                        17301-XXXXXXXXXXX</li> <li>Date of birth:               16/1/2001</li> <li>Nat