Saturday 27 January 2018
Bootsrap Horizontal Responsive Menubar
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Disadvantage of nested if-else
Disadvantage of nested if-else
- When number of criteria increase complexity of maintenance of code is also increased
- If indenting is not proper maintained then it is difficult to debugging because a programmer faces difficulty associate statement to related block.
- Else-if leader does not specify better interpretation of business logic to programmer than switch case.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 25 January 2018
2D Array Input/Ouput
Q : Define a two dimensional array ‘int a[10][10]’. Write a ‘C’ program to initialize this array with numbers between 0 and 99. Then print the contents of ‘a’.
Solution :
/*==============================
Girfa Student Help
Program : 2D Array Input/Ouput
More Program
:http://girfahelp.blogspot.in/p/2-d-array-programming.html
================================*/
#include<stdio.h>
#include<conio.h>
#define MAX 10
void main()
{
int a[MAX][MAX],r,c,s;
clrscr();
for(r=0,s=
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 23 January 2018
2-D array sum using function
Q: Write a ‘C’ function to calculate matrix C such that C=A+B Use suitable loops. Make use of pointers if necessary
Solution :
/*==============================
Girfa Student Help
Program : 2-D array sum using function
More Program
:http://girfahelp.blogspot.in/p/2-d-array-programming.html
================================*/
#include<stdio.h>
#include<conio.h>
#define MAX 3
void add(int [][MAX],int
[][MAX],int [][MAX]);
void print(int [][MAX]);
void main()
{
int
a1[MAX][MAX],a2[MAX][MAX],a3[MAX][MAX],r,c;
clrscr();
printf("\nFirst Array
Input\n");
for(r=0;r<MAX;r++)
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Sunday 21 January 2018
Significance of header file
To understand significance of header file. I would like to
ask you a question. Why do we choose high level language to develop software
instead of low level language?
Answer is we choose high level language like C language to develop software. Because there are lots of
things that can be achieved by only calling some function provided by related
language compiler. One the other hand in low level language every things of
programming is manually done by programmer. For example if you want to generate
output on screen using assembly language you will have to set many register
value which is very complicated. Whereas in C language you will have to use inbuilt
function printf.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Saturday 20 January 2018
Brokerage Management Software Screen Shot
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Brokerage Management Software VB
Girfa Brokerage Management System
is windows based application software. This application helps brokers to manage
their brokerage amount against of what are the sale he/she has done to many
customers. This is fully customizable software because all the setting of
business will be done by owner. So due to dynamic nature of software, you can
use this software to calculate brokerage amount for any business with reach
feature of powerful reporting for various type of sales and many more. Feature of software are given below.
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
HTML form control selector test
Check Radio button check
Gender : Male Female
Code :
Gender :
<input type="radio" name="gender" id="rdomale" checked="checked" />Male
<input type="radio" name="gender" id="rdofemale" />Female
<input type="button" value="Check" onclick="Checkradio()" />
<script>
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 17 January 2018
Even Odd group print array
Q : Write a program using function to read an array from the user and print the odd number at odd position and prints the even numbers at even positions. For example input array is 1 2 3 4 and
output is 2 1 4 3.
Solution :
/*==============================
Girfa Student Help
Program : Even Odd group print array
More Program
:http://girfahelp.blogspot.in/p/one-dimentaional-array-programming.html
================================*/
#include<stdio.h>
#include<conio.h>
#define MAX 5
void print(int*);
void main()
{
int ar[MAX],i;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Count Word Character new line
Q : Write a Program to count lines, words and characters with a definition that a word is any sequence of characters that does not contain a blank, tab or new line.
Solution :
/*==============================
Girfa Student Help
Program : Count Word Character new line
More Program
:http://girfahelp.blogspot.in/p/1.html
================================*/
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
FILE *pt;
char ch;
int character=0,line=1,word=1;
clrscr();
pt=fopen("data.txt","r");
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Tuesday 16 January 2018
Time calculation using function
Q : Write a function that takes time in seconds as input and prints it in terms of hours, minutes and seconds.
Solution :
/*==============================
Girfa Student Help
Program : Time calculation using function
More Program
:http://girfahelp.blogspot.in/p/function-programming.html
================================*/
#include<stdio.h>
#include<conio.h>
void time(int);
void main()
{
int s,h,m;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Array Average using function
Write a function which accepts an array of size n containing integer values and returns the average of all values. Call the function from main program.
Solution :
/*==============================
Girfa Student Help
Program : Array Average using function
More Program
:http://girfahelp.blogspot.in/p/function-programming.html
================================*/
#include<stdio.h>
#include<conio.h>
#define MAX 5
int avg(int*);
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Sunday 14 January 2018
Array multiply using function
Q : Write a function which receives two integer arrays and creates a third array by multiplying corresponding elements (elements with same index) and returns it to main program.
Solution :
/*==============================
Girfa Student Help
Program : Multiply two array using function
More Program
:http://girfahelp.blogspot.in/p/function-programming.html
================================*/
#include<stdio.h>
#include<conio.h>
#define MAX 5
void mul(int *,int *,int *);
void print(int *);
void main()
{
int
ar1[MAX],ar2[MAX],ar3[MAX],i;
clrscr();
printf("\nInput f
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Palindrome number
Q : Write a program which asks for a integer from the user. It reverses the integer and prints “same” if after reversal the number is same as old number otherwise it prints “not same”.
Solution :
/*==============================
Girfa Student Help
Program : Reverse a number
More Program
:http://girfahelp.blogspot.in/p/loop-c-language.html
================================*/
#include<stdio.h>
#include<conio.h>
void main()
{
int n,m,r=0;
clrscr();
printf("Enter number>>
");
scanf("%d",&n);
m=n;
while(n>0)
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Saturday 13 January 2018
Table as parameter SQL Server
SQL Server provides a special parameter named table parameter. Using table parameter user can pass entire table as other parameter pass to store procedure. Table parameter is better alternate of temporary table. It reduces unnecessary work and time. Which need to pass more than one row to database for save.
Table Structure
Field
Name
|
Data
Type
|
Roll
|
Int
|
Name
|
Varchar(30)
|
City
|
Varchar(40)
|
Store Procedure
Table Type
CREATE TYPE dbo.myDataType AS TABLE
( roll
int,
name
varchar(30),
city
varchar(30)
);
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Thursday 11 January 2018
Average in dynamic structure
Q : Write a program which asks the user to enter the name and age of persons in his group.The number of persons is not known to the user in the beginning of the program. The user keeps on entering the data till the user enters the age as zero. The program finally prints the average age.
Solution :
/*==============================
Girfa Student Help
Program : Age calculation in dynamic
structure
More Program :
http://girfahelp.blogspot.in/p/c-language-structure-programming.html
================================*/
#include<stdio.h>
#include<conio.h>
typedef struct stu
{
char name[20];
int age;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Forgot & in scanf
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Wednesday 10 January 2018
Dynamic records using structure
Q : Write a program to input name of age record of a company. How many records have to input? It will ask at run time. After input complete, program will print all the records with average age.
Solution :
/*==============================
Girfa Student Help
Program : Age calculation in dynamic
structure
More Program :
http://girfahelp.blogspot.in/p/c-language-structure-programming.html
================================*/
#include<stdio.h>
#include<conio.h>
typedef struct stu
{
char name[20];
int age;
}student;
void main()
{
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Monday 8 January 2018
Java Script Array of object
Java script support object data
type which can be used to store data as in structure ( C Language). Object of array,
you can use for pass bulk of record to server in ajax mvc application. Object
of array minimize your work and enable you to process records instead of
individual variable. Following code demonstrate to handle array of object with
input and print operation.
<html>
<head>
<title>Girfa
Java Script Array of object</title>
</head>
<body>
<h2>
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Sunday 7 January 2018
Average of every third integer between 1 to 100
Q : Write and explain the action of WHILE statement. Develop a program in ‘C’ language to compute the average of every third integer number lying between 1 and 100. Include appropriate documentation.
Solution :
Read While loop
Program :
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
A programmer and Founder of Girfa
IT Services, working from 2009.At Starting computer teaching was my full-time job but after 10 years of teaching I chose to programming as a full-time job and teaching become part-time. In real life, I am very lazy and I made it my coding style I always try to make a reusable component that’s my USP for programming which saves my time and extra working both.
Subscribe to:
Posts (Atom)