Posts

Showing posts with the label rishabh bhardwaj

Design a Calculator Using C# code.

Image
Design a Calculator  What you will need: A computer running Windows 7 or higher Visual Studio: Any version               Download: http://www.visualstudio.com                 I will be using the 2010 version of Visual Studio in this tutorial, but every version is pretty similar. Step 1: Creating a New Project Step 2: Designing the Application         Step 3: Creating Event Handlers 3.1. Double click a button.  This will bring you to the "Form1.cs" tab.  This is where all of your code will be written.  Notice a section has been pre-written for you based off of the "Click" event.  This section of code will be executed when that specific button is clicked.  For the sake of this project, we will call these Event Handlers. 3.2. Double click all of your buttons so you have an event handler for ea...

Bubble Sorting In c Language

Keep In Mind:- 1. If there are N number of unsorted elements then N-1 number of iteration. 2. Start comparison from left to right. 3. Do comparison only with adjacent  elements (left to right). 4. T(n) = O(n2)    (worst case) 5. Best case : O(n) 6. Average case : O(n2). Basic Idea:- Given elements in an array: - 2,4,1,5,3,7 . Step 1- Choose 2 and compare with 4  =  2,4  (2<4 no swapping).                    "     4   "        "           "     1=   2,1,4  (4>1  swaping done)                     "     4   "         "         "     5=   2,1,4,5  (4<5  no swapping)                     "      5   "   ...

Insertion Sorting in C Language.

Keep in mind:- 1. Take one element at a time for sorting (i.e. one by one). 2.  Useful for sorting small data set (not used this sorting for large data sets). 3. Time complexity is Worst case =O(n2).. 4. Time complexity depend on number of compare + number of movement. 5. Sometime calls as In-Place Algorithm. 6. It may be ascending or descending orders. Basic Idea:- If you have 4 cards (numbering 4,3,7,1).           Before sorting :- 4,3,7,1.            After sorting :-   1,3,4,7. Process:- 1. Take first card (i.e. 4). 2.  Take another card 3 compare with first one, we got 4>3. So move 3 before 4. 3. Take 3rd card 7 compare with previous one 4, we got 7>4. So no need to sorting, 4. Take 4th card 1 compare with previous one 7, we got 1<7. So move one place left, again 1<4 move      left, again 1<3 move left. Therefore 1 comes at their position. Sorting Done. Alg...

Steps for Oracle XE Installation With Scott Schema on Windows OS

Image
STEPS ARE :--- Step 1:    Install OracleXEUniv.exe              ( Remember the Password , for say “tiger” which is  required at the time of installation) Step 2:      Copy DATA.SQL file and paste it any drive (say :E drive ) Step 3:     Go the SQL Command Line Prompt                  START > RUN SQL COMMAND LINE   Step 4:      SQL Prompt will come .                 SQL> conn system/password@xe Step 5:    SQL> @ E:\DATA.SQL Step 6:  >  Working through SQl Command Prompt.                  Now connect with user name SCOTT and password TIGER. Oracle Service Name is XE. Step 7:  >  Connect through Browser                  C...