Wednesday, 2 August 2017

Write a program to bonus calculation using structure

Q : Write a C program to store the employee details with the following attribute?



Sr No.
Basic Salary
Sales Percentage
Bonus Amount
1
<=7000
<=10
1500
2
<=7000
>=10
3000
3
>7000 and <=15000
<=10
2000
4
>7000 and <=15000
>=10
4000
5
>15000
<=10
2500
6
>15000
>=10
4500

Solution : 


/* ============================================
          Girfa Student Help
          Program : Salary Calculation
          For more program visit :http://girfahelp.blogspot.in/p/c-language-structure-programming.html
================================================*/
#include<stdio.h>
#include<conio.h>
typedef struct stu
{
     int empid;
     int pf;
     int mediclaim;
     int basicsal;
     int sp;

Monday, 31 July 2017

File Extension Check

<html>
<head>
    <title>Girfa : Student Help</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <script>
        function filecheck()
        {
            var extension = $('#file').val().split('.').pop().toLowerCase();

            if ($.inArray(extension, ['png', 'jpg', 'jpeg']) == -1) {
                alert('Sorry, invalid extension.');
               
            }
            else
                alert('ok Fine');

Saturday, 29 July 2017

Autocomplete


autocomplete-jquery





Download Source Code
Next Topic



Thursday, 27 July 2017

M3-R4 ‘C’ LANGUAGE July, 2014 Solved

M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE July, 2014 Solved


1. Multiple Choice

1.1 : B
Explanation : void is used to indicate that a function will not be return any data to calling function. You should also use void in place of argument for when function does not takes argument but it’s optional.
If you left blank of return type then int will be consider as default return type of given  function. 

1.2 : C
1.3 : B
Explanation : Name of an array is constant pointer which point first element when 5 added to pointer then it jump 5 places to forward direction.