Saturday 30 November 2013

How to do selection sorting in Python 3.3.2 (For Integer Values)

Hi Guys! Today i am here with the Program which will sort the given list in ascending order.
So here it is:

1. This is a UDF (User Defined Function) which sorts the list provided by the user in Ascending order.The program asks the amount of numbers from the user to sort and then prompts him to enter the values one by one.
"THE PROGRAM HAS BEEN COMMENTED ON THE REQUIRED STATEMENTS FOR THE CONTENTMENT OF THE READER."


NOTE: THIS SELECTION SORT IS ONLY MEANT FOR INTEGER VALUES NOT FOR ANY STRING TYPE. THIS MEANS THAT YOU CAN EVEN APPLY MATHEMATICAL CALCULATION ON YOUR VALUES.
"IN NEXT POST I WILL BE POSTING ABOUT HOW TO SORT STRINGS."

Hope You Must Have Enjoyed The Program!!



Wednesday 27 November 2013

How to make Clock in Python 3.3.2

Hello Guys!! Today i will show you how to make Clock in Python 3.3.2 using classes.
So let's Begin:

1.The following is the screenshot of Class Time which shows the Modules and Data Members used in the program.



2.The following is the screenshot of Method of Class Time which is commented Line by Line for easy Understanding! The second last line is made as a comment by me(because it is only valid in COMMAND PROMPT, which is used to clear the output screen.).It should only be removed as a comment if you are running the program in Command Promt(not IDLE).



3. Following ScreenShot is the Main Program where Class is imported and Used.


Hope You Enjoyed the program!! New Ideas from the Readers are welcomed!!

Friday 22 November 2013

TV Remote Program In Python 3.3.2

This program is based on the working of the TV remote and is made using Classes.
1. Following is the screen shot of the Class TV.



2.This is part of the same class.



3.This is the Main Program where TV class is imported and used in the program.



Thursday 21 November 2013

Bank Loan Interest Program in Python 3.3.2

This Program is Made in Python 3.3.2 using the Classes. Program is commented Line-by-Line for the user's contentment.This program is made by keeping in mind all the Circumstances which Borrower can face.New Ideas are welcomed by the Reader.

1.This is the first part of the class 'Loan'. The Program Consists of Three Methods(Member Functions) and Nine Data Members(which are used in several ways in program) .In the following Picture,you can see GetBorrower Method which returns the name of the Borrower.



2. This is part of the same class which consists of two Methods(GetMonthlyPayment and GetTotalAmount).
The GetMonthlyPayment calculates the Monthly Installments of the borrower and prompts him to Pay the amount. Another Method(GetTotalAmount) returns the total amount to the borrower(user) which he has paid to the bank.


3.This the main program where we are importing the class and using it.



Hope You Might have liked this post!