Thursday 30 November 2017

series

Q : Write a program to compute the following series:

x + x3 / 3! + x5/ 5! + …

To a given accuracy for x from 00 to 1800 in the steps of 100, use a inbuilt function FACT(n) to compute the factorial.

Solution : 

#include<stdio.h>
#include<conio.h>
int fact(int);
void main()
{
     int x,step,y,i;

Wednesday 29 November 2017

Tax Calculation Program

Write a program to calculate the income tax of an employee for the current financial year. A user will enter his age and Total salary of the current year and program will calculate and display the payable Income Tax from the given table. Tax slabs are applicable after deducting Rs. 1,00,000 of saving from total salary for each employee. The tax slabs are as
under: (Senior citizen: Age<60)

For All Tax
Rs.0 to 2,00,000 0% of income
2,00,001 - 5,00,000 10% on income excess of 2,00,000
5,00,001 - 10,00,000 30,000+20% on income excess of 5,00,000
Above Rs.10,00,000 1,30,000+30% on income excess of 10,00,000

Monday 27 November 2017

Thread

A thread is a basic unit of CPU utilization; it comprises a thread ID, a program counter, a register set, and a stack. It shares with other threads belonging to the same process its code section, data section, and other operating-system resources, such as open files and signals. A traditional (or heavyweight) process has a single thread of control.



Application


Many software packages that run on modern desktop PCs are multithreaded. An application typically is implemented as a separate process with several threads of control.

HTML Table Operation

HTML Table Operation


Hide Table Column


$('#table-name th:nth-child(column-no)').hide();

$('#table-name td:nth-child(column-no)').hide();

Example:
$('#tblService th:nth-child(4)').hide();
$('#tblService td:nth-child(4)').hide();


Print All columns of each row


var table = $("#tblBody");
        table.find('tr').each(function (i)
        {
            var $tds = $(this).find('td');
            alert ($tds.eq(0).text() + " , " + $tds.eq(1).text())
                              
        });


Print All Row columns except first

var table = $("#tblBody");
        table.find('tr').not(':first').each(function (i)
        {
            var $tds = $(this).find('td');
            alert ($tds.eq(0).text() + " , " + $tds.eq(1).text())
                              
        });
 

Get selected column data using rowid


Syntax:
$("RowId”).find('td').eq(ColumnIndex).text();

Example :
$("#r123”).find('td').eq(0).text();


Delete a Single row by row id

Syntax:
$("RowId”).remove();

Example :
$("#tblrow").remove();


Delete all row except first


Syntax:
$("selectorName").find("tr:gt(0)").remove();
Example :
 $("#tblStock").find("tr:gt(0)").remove();

Select A Table all rows by checkbox using jquery

Editable Table Jquery

Java Script Date Operation

Java Script Date Operation

Convert dd/mm/yyyy date to yyyy/mm/dd

Java Script support date in many format except dd/mm/yyyy . So if you are working on a project which has date as in dd/mm/yyyy format then you will need to change it mm/dd/yyyy for further date related operations.

Following code will change dd/mm/yyyy date to mm/dd/yyyy date format

Wednesday 22 November 2017

Solution : July, 2010 M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE

Solution : July, 2010 M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE

1. Multiple Choice : 


1.1 : B
1.2 : B
1.3 : A
1.4 : B
1.5 : C
1.6 : B
1.7 : C
1.8 : C
1.9 : B

Tuesday 14 November 2017

Jquery Animated Validation


Jquery Validation


Validation is most important part any website while creating a form. There are lots of methods and processes of JavaScript or jquery.

I have implemented basic validation as simple as possible which can be used for empty fields check. You need to call just little function and achieved validation on various HTML form tags. 



Roll :
Class :
Message :


Code

<html>
<head>
    <title>Girfa : Javascript Validation</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <script>
        var Flag = true;
        function Validate() {
            Flag = true;
            if ($("#txtRoll").val() == "")
                AddCss("txtRoll");
            if ($("#ddlClass").val() == "")
                AddCss("ddlClass");
            if ($("#txtMessage").val() == "")
                AddCss("txtMessage");
        }

        function AddCss(id) {

            Flag = false;

            $("#" + id).css("border", "solid 1px red");
            $('#' + id).animate({
                'marginLeft': "+=10px", //moves right
            }, 100);
            $('#' + id).animate({
                'marginLeft': "+=-10px", //moves right
            }, 100);
            $('#' + id).animate({
                'marginLeft': "+=10px", //moves right
            }, 100);
            $('#' + id).animate({
                'marginLeft': "+=-10px", //moves right
            }, 100);
        }
        function RemoveCss(id) {
            $("#" + id).css("border", '');

Saturday 11 November 2017

O Level C Language solved paper January-2011

NIELIT  O Level C Language solved paper January-2011

1. Multiple Choice


1.1 : B
1.2 : A
1.3 :  A
1.4 : A
1.5 : D
1.6 : B
1.7 :  C
1.8 : B
1.9 : A

Cosine series Flowchart

Q :  Make the flow chart to solve the following cosine series.
       S = 1 – x2/ 2! + x4/ 4! – x6/ 6! + … 100 terms


Solution : 

Cosine series Flowchart

Wednesday 8 November 2017

Dynamic Table Java Script


Dynamic Table Java Script

This post helps you to make dynamic table. You can do following task using this post code
  • Add a row dynamically
  • Check duplicate value
  • Delete a row 




ProductAction



HTML Code



<html>
<head>
    <title>Girfa : DynamicTable Management </title>
    <script>
 var tblrowid=0
 function AddScheduleTOTable() 
{
           

Sunday 5 November 2017

C language Paper Solution July 2011

NIELIT O Level C language Paper Solution  July 2011

1. Objective


1.1 : C
1.2 : B
1.3  :  D
1.4 : B
1.5 : B
1.6 : A
1.7 : A
1.8 :  B

Saturday 4 November 2017

2D character array sorting

Q : Write a ‘C’ program to read an array of names and to sort them in alphabetical order.

Solution :

/*==============================
     Girfa Student Help
     Program : Sort 2D  Array    
================================*/
#include<stdio.h>
#include<conio.h>
#define MAX 3
void main()
{
     char ar[MAX][20],ch[20];

Thursday 2 November 2017

NIELIT O Level C Language Solve Paper

July-12
Answer Key
1. Objective
1.1  : B
1.2 : A
1.3 : A
1.4 : C
1.5 : A