Wednesday 14 December 2016

Write a program to find the power of number using function.

Q. Write a program to find the power of number using function.

/*   ###########################
     Girfa : Student Help
     for more program visit : http://girfahelp.blogspot.in/p/c-language.html
     Power of a number using function
     ############################
*/
#include<stdio.h>
#include<conio.h>
int power(int,int);
void main()
{
     int n,p;
     clrscr();
     printf("Enter number>> ");
     scanf("%d",&n);
     printf("Enter Power>> ");
     scanf("%d",&p);
     printf("\n\nPower of %d by %d is %d",n,p,power(n,p));
     getch();

}

Tuesday 13 December 2016

Write a program to calculate number of vowels (a, e, i, o, u) separately in the entered string.

/*   ###########################
     Girfa : Student Help
     for more program visit :http://girfahelp.blogspot.in/p/c-language.html
     Count no. of vowel seprately
     ############################
*/
#include<stdio.h>
#include<conio.h>
void main()
{
     char ch[200];
     int a,e,i,o,u,index;
     a=i=o=u=e=0;
     clrscr();
     printf("Enter your string>> ");
     gets(ch);
     for(index=0;ch[index]!='\0';index++)
     {
           switch(ch[index])
           {
                case 'a' :
                     a++;
                     break;
                case 'A' :

January, 2016 M3-R4: PROGRAMMING AND PROBLEM SOLVING THROUGH ‘C’ LANGUAGE Solved

January, 2016

PART ONE
(Answer all the questions)

1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the “OMR” answer sheet supplied with the question paper, following instructions therein. (1x10)
1.1 Function of a compiler is to
A) put together the file and functions that are required by the program
B) translate the instructions into a form suitable for execution by the program
C) load the executable code into the memory and execute them
D) allow the user to type the program
1.2 The preprocessor directives start with
A) //
B) /
C) #
D) /*

Monday 12 December 2016

Placing X buuton on top right corner on an image


Placing X buuton on top right corner on an image


<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Girfa : Student Help</title>
<style type="text/css">
.tpopup{
  position:absolute;
  width:520;
  height:300px;
  background:#fff;
  left:50%;
  top:50%;
  border-radius:5px;
  padding:60px 0;
  margin-left:-320px; /* width/2 + padding-left */
  margin-top:-150px; /* height/2 + padding-top */
  text-align:center;
  box-shadow:0 0 10px 0 #000;
}

Thursday 8 December 2016

Microsoft Access Database Tutorial

Microsoft Access Database Tutorial

Microsoft Access is database package which is suitable for small scale project for single PC Application. Most Fundamental of any project which you should learn before start your project is database operation (insert ,update,Delete and show). This tutorial help you to learn database operation with full source code . So enjoy programming with Access.

Microsoft Access Database Insert Update Delete



Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Tuesday 6 December 2016

C Language Fundamental Assignment


C Language
Fundamental Assignment
Q1. Write a program to display the following pattern
**********************************************************
                Name                    Your Name
                Subject                 Subject Name
                Course                  Course Name
**********************************************************

Thursday 1 December 2016

C Language practice Question

C language (Set1)

Test

TOTAL TIME: 1 HOURS                                                                                                  TOTAL MARKS: 50
 


1. Which of the following is not a valid variable name declaration?
a) int __a3;
b) int __3a;
c) int __A3;
d) None of the mentioned
2. The format identifier ‘%i’ is also used for _____ data type?
a) char
b) int
c) float
d) double

Saturday 26 November 2016

Nested Structure

Nested Structure C Language

As you know though structure we can process data record by record that is why structure is called user defined data type. In some specific case you nested structure where a structure is inside of a structure. For example when process a student record with their dob. Take a look on following example.
#include<stdio.h>
#include<conio.h>
#include<string.h>
typedef struct s
{
    int roll;
    char name[10];
    struct d
    {
         int dd,mm,yy;
    }dob;
}student;

Wednesday 23 November 2016

Static Variable

Static Variable

A static variable initialize by 0 instead of garbage at the time of declaration. Static variable retain its value in memory till the program is running.

On the other hand auto variable lost its data when function scope pass out . But static variable retain its value whenever  scope get over.

You can trace that how many times a function is being called.

void test()
{
    static int k; /* k will retain its value when function scope goes down */
    printf("\nThis function being called %d times ",++k);
}

Tuesday 22 November 2016

Read Only Memory

ROM

ROM is read only Non-Volatile memory written data into it while manufacturing. Data of Rom never get change in its entire life.

Example : BIOS,Firware,Console

PROM

PROM is Non-Volatime memory manufactured blank, a user writes program into it. Ones data written in PROM it never get change. PROM is permanent it retain its data when power goes off. you need a special device called a PROM programmer or PROM burner for writing data. The process of programming a PROM is sometimes called burning the PROM.

Example : mobile phones, Radio Frequency Identification cards (RFIDs), High Definition Media Interfaces (HDMI), and video game controllers

PROM Computer Memory

Sunday 20 November 2016

January, 2016 M1-R4: IT TOOLS AND BUSINESS SYSTEMS

January, 2016
M1-R4: IT TOOLS AND BUSINESS SYSTEMS


PART ONE
(Answer all the questions)

1. Each question below gives a multiple choice of answers. Choose the most appropriate one and enter in the “OMR” answer sheet supplied with the question paper, following instructions therein. (1x10)

1.1 Which of the following is the commonly used browser?
A) Microsoft Internet Explorer
B) Microsoft Excel
C) Google
D) Microsoft Windows

1.2 GIF and JPEG files are examples of?
A) Microsoft Word Files
B) Images
C) Audio Files
D) Video Files

Prepare Statement Insert Mysqli

<html > <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Girfa : My SQLi Insert Tutorial</title>
</head>

<body>
<?php
$servername 
"localhost";
$username   
"root";
$password   
"password";
$dbname     
"dbname";

Friday 18 November 2016

Hut Using HTML

Hut Using HTML

HTML 5 supports graphics by Canvas and SVG.

Canvas

Canvas is a rectangular area specified by height and width where you can make drying using line,circle and many more . Following example create a hut using HTML canvas and line.

Hut Using HTML


<html>
<head>
<title>Graphics HTML : Girfa </title>

</head>

Monday 14 November 2016

Input Output Question Practice C Language

Q 1. Print a character with ASCII code using printf function?
Q 2. Try to string input with space using %s?
Q 3. Write down short notes with example on following function
Fclose
Puts
Gets
Fprintf
Scanf

Saturday 12 November 2016

For Loop in Python

for letter in 'Girfa':     # First Example

While loop in Python

count=1
while count <= 5:
    print count

While loop in Python

count=1
while count <= 5:
    print count

Switch Case in Python

Python does not support switch case direct but you can implement it by using else-if as in following manner

print "Enter day of the week  number>> "
a=int(raw_input())

if(a==1):
    print("Mon")
elif(a==2):
    print("Tue")
elif(a==3):
    print("Wed")
elif(a==4):
    print("Thu")
elif(a==5):

Switch Case in Python

Python does not support switch case direct but you can implement it by using else-if as in following manner

print "Enter day of the week  number>> "
a=int(raw_input())

if(a==1):
    print("Mon")
elif(a==2):
    print("Tue")
elif(a==3):
    print("Wed")
elif(a==4):
    print("Thu")
elif(a==5):

Nested If Statement in Python

print "Enter first number>> "
a=int(raw_input())
print "Enter Second number>> "
b=int(raw_input())
print "Enter Third number>> "
c=int(raw_input())
if(a>b):
    if(a>c):
            print "First number is Greatest "
    else:
            print "Third number is Greatest "