Advertisements

Saturday, December 31, 2011

// // Leave a Comment

Printing a Triangle in C Language...

Hi, Welcome back, Today I am back with a New C Program, Which will print an Triangle as below * ** *** **** *****

Code:

#include
#include
 
void main()
 {
  int i, j;
  clrscr();
  for(i=0;i<=5;i++)
   {
     for(j=1;j<=i;j++)
      {
        printf("*");
      } 
     printf("\n");
   }
  getch();
 }
Now Let's Illustrate above code.

Description:

  • First 2 Lines are Pre-Processor Directives as you are already familiar with them.
  • We started our Main section of Program. with void main(). Void is being used because we are not going to return any values.
  • We have defined two Variables of Integer Type named i and j.
  • clrscr() -- Clear Screen Function is for Clearing the DOS screen which will appear while we Run program.
  • Now We take First for Loop here. Which we will use to print New Rows. Detail : for(i=0;i<=5;i++). [ i=0; Variable i is initialized with Value 0. i<=5; i will continue up to value 5. Because we have to print Asterisks (*) in Five Rows. i++; This Operator is used to Increment value of i by 1 every time.]
  • Once another for loop is used with Variable j. We have used this to print Columns. Details : for(j=1; j<=i;j++). [ j=0; Variable j is initialized with Value 0. j<=i; j will continue up to value of i. (i.e. According to Rows) Because we have to print Asterisks (*) according to Number of Rows. j++; This Operator is used to Increment value of j by 1 every time.]
  • printf("*"); -- This command will print * in the Screen according to loop mentioned in above (No. 6).
  • Printf("\n"); -- This command will print new blank line when needed. i.e. According to first for loop.
  • getch(); -- This is a function which is an Input Function. We use this for input of Passwords or such data which does not display in screen. We have just used this here to Hold Screen. So that we can see the output.

If you have some questions about above tutorial or other questions, You can comment below or directly mail me at john@johnbhatt.com. I will surely help you. Its my promise. Lets Enjoy Learning together.... Ehhhh... Happy New Year 2012....


John Bhatt
P.Yar.B Complex
Read More

Friday, December 30, 2011

// // Leave a Comment

Happy New Year 2012....

Once again with Image of Last Year, reusing..... Very very happy New Year 2012.....
Read More
// // Leave a Comment

Earnings of 2011....

I was writing details from My Mobile. In some advance language Mobile Calender and Contact Sync process was running.  I analyzed my last one Year, i.e. 2011. I have gained/earned something or Lost something.

This makes me to remember controversy with Gupta's early this year.

Corporate/Professional: 


On the First week of February, I left Job at Best Roadways Ltd, then searched for Jobs in Delhi and struggled.

I worked with e-Fleet Systems Pvt Ltd for some days on march.

On the last week of May I went to my birthplace, Nepal for a week and returned on starting of June.

I worked with Indian Computer Institute till mid July.

Then I came to Chandigarh and started with Scorpion Express Pvt Ltd.

Personal/Educational: 

I have Exams of DOEACC on mid January.

On  April and May I had my Exams on Graduation, So I was at home. During this period Results of DOEACC  Declared and I have passed both Exams that I have taken part earlier.

Got chance to practice with MS-Office from base level at Indian Computer Institute.

Have to leave study at DICS, Punjabi Bagh for some reasons [Reasons can be fetched from Above.]

I joined SLR Infotech, Chandigarh for .Net on the last week of November. Which will be continue till next Quarter of 2012.

I have lost so many things on last year but I remember one thing. One of Friend who is Senior and Founder of a company has told me that- "John, You are so Lucky, You got the Chance to see the truth in the earlier age of your life. These peoples are so cheap and we can't be."

Hope you had fantastic and very nice year. Your trip must be very successful and pleasant. If not don't be afraid or neither loose Hope, You will rock ahead......

John Bhatt
(P.Yar.B Complex)
Read More

Thursday, December 22, 2011

// // 2 comments

Creating Two New Projects...

I am currently busy with my classes.

On my rest time I am currently busy with Two Websites. One of these two is of School and another is personal Blog. Links of these both Websites will be public on next post. And I will let you to have look at my these Works.

Needs your suggestion and feedback for Improvement.

--John Bhatt
Read More

Wednesday, November 23, 2011

// // Leave a Comment

Now with my Own Domain

Hello,

Just Recently, I have configured My Blog to my own sub domain.

http://blog.johnbhatt.com

So it will be down for some time. And you can access this blog as soon as DNS records are changed.

 Thanks for visit,

Hope you are enjoying.
Read More

Sunday, November 13, 2011

// // Leave a Comment

Setting up new Website

Currently I have renewed my domain and now working with designs, Because I am thinking of setting website again. We are temporarily using Blogger service for Website name, But Now My team and I am also working on Good Design and as soon as NS records are changed, You can access http://www.johnbhatt.com in new look and with many more contents.

Kindly visit again.

John Bhatt
P.Yar.B Complex
Read More

Thursday, November 3, 2011

// // Leave a Comment

MS DOS - Commands

Command

Definition

Commands are small piece of software, alternatively you can define command as individual program of function which are written in MS-DOS library.
According to the nature of command these are categorized in two groups. These are Internal Commands and External Commands. You will learn more about these commands in next chapter.
  • Every Command will be executed only on hitting Enter key.

Types of Command

Internal Commands

Internal Commands: Commands that come built in with MS-DOS are called Internal Commands. These are fixed commands and the functions of these command is already defined in COMMAND.COM file which is the library file of MS-DOS. Some Internal Commands are as follows:
COPY 
DEL
DIR
MD
CD
RD
REN
DATE
TIME
MKDIR
RMDIR
RENAME
DELETE
etc.

External Commands

External Commands: Commands those do not come with MS-DOS and needs to be installed separately or are located in Floppies or Hard Disc, are called External Commands. Some of these commands are as follows:
DELTREE
LABEL
TREE
FORMAT
DISKCHK
DISKCOMP
DISKCOPY
XCOPY
PRINT
HELP
ATTRIB
EDIT
FC
etc.
Read More

Monday, October 31, 2011

// // Leave a Comment

Global Warming and Our Future…..


At this time, even anybody knows English or not, He must have listened a word Global Warming. Global warming is not anything else, It is simple as its name, the situation of warming of Globe. Why our earth is getting warmer more day by day. Still you should remember, How funny were the days of Winter and What is the joy of Summer. But now due to temperature imbalance (Global Warming) every climate is like punishment.

I have just logged onto Facebook and saw a status written by Tekendra Sir referenced NASA, Look at our future and your future. We are struggling this much on our future but where is our future. If the same situation remains our temperature will reach 60o Celsius after few year.
I request you all to save all of us from this situation by providing little effort from your end. Some of the small but not minor helps can be following from your end.
Save Paper at your work, home, school etc.
Save trees around you and try to keep your environment clean and green.
Try to save electricity by using CFL bulbs instead of normal bulbs consuming more energy and produce more heat.
Don’t use AC, Refrigerator and such CFC gas producing equipments without need.
Try to aware people about Global warming and precautions to reduce it.
I specially request all science students to aware people about this. Your this effort may be great help for our earth and future.
Read More
// // Leave a Comment

Indroduction to MS DOS


MS-DOS (Microsoft disc operating system)

MS-DOS is a command based single user, single tasking operating system by Microsoft. This is very popular and useful operating system and widely used operating system also. Microsoft gifts MS-DOS free with current versions of Windows. It can also defined as “An operating system used on all personal computers and compatibles. As with other operating systems, such as OS/2, it translates user keyboard input into operations the computer can perform.” MS-DOS can be easily accessed by using the command prompt interface, while MS-DOS-based programs can be accessed through the use of shortcuts on the desktop.

How to Start MS DOS?

You can open MS-DOS in two ways. These are as following:
  1. Click on Start → Programs → Accessories → Command Prompt.
  2. Click on Start → Run → type command → OK.
    or

    Click on Start → Run → type cmd →OK.
    Hit Ctrl+Enter to enter full screen mode.
Read More

Thursday, October 27, 2011

// // Leave a Comment

FM Radios are added to our Media Center...

Friends,

I have a good news, We have added Live streaming FM Radios of Far-Western Nepal in our Media Center. And we are adding more Radio Stations and TV Channels which are popular and are of requirement.
Keep visiting and provide feedback about our services..

John
P.Yar.B Complex
Read More
// // Leave a Comment

Keywords in C Language


Hi,
Today I am back here to share all the keywords of C language with you.
Keywords are predefined or reserved words which are used for a particular task like to declare a variable, or to return values, looping, etc. We use these keywords in various way.
  1. AUTO
  2. BREAK
  3. CASE
  4. CHAR
  5. CONST
  6. CONTINUE
  7. DEFAULT
  8. DO
  9. DOUBLE
  10. ELSE
  11. ENUM
  12. EXTERN
  13. FLOAT
  14. FOR
  15. GOTO
  16. IF
  17. INT
  18. LONG
  19. REGISTER
  20. RETURN
  21. SHORT
  22. SIGNED
  23. SIZEOF
  24. STATIC
  25. STRUCT
  26. SWITCH
  27. TYPEDEF
  28. UNION
  29. UNSIGNED
  30. VOID
  31. VILATILE
  32. WHILE
These keywords are used to define variable and call function and to do all basic tasks that can be done using ‘C’.
Keep providing feedback…
Read More
// // Leave a Comment

Data Types in C Language

As in earlier posts I have introduced you with C Language. C language is the worlds most used and very powerful language for making Windows Application also Unix and Linux applications.

We have basically five data types in C Language. These are as following:

Character: char

Integer: int

Float: float

Double: double

Void: void
Read More

Monday, October 24, 2011

// // Leave a Comment

Simple Program Adding Two Veriables

Here is a simple program that will print sum of two variables. As you learnt in previous post, you will include header file(s) then open body of program.



#include

#include

void main()

{

int a=5,b=7,c;

c=a+b;

printf("Sum of Two Number is %d.",c);

getch();

}

We will discuss about data types in next post. Keep checking.

Read More
// // Leave a Comment

Introduction to C Language

C is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system.C is one of the most popular programming languages of all time and there are very few computer architectures for which a C compiler does not exist. C has greatly influenced many other popular programming languages, most notably C++, which began as an extension to C.


Structure of C Program


This is simple example program written in C language and details are described with Line as comments.

      #include        //Header Files  
      #include         
      void main()           //Main Function
      {                  // Opening Parenthesis
      printf("Hello World.");      //Statement
      }                    // Closing Parenthesis


Here in above program // are used to write comments.
Above program will display Hello World.
# sign is called Pre-processor and used to process files included at first. We included two header files above. Since we have put these files against # (Pre-processos) C Compiler first process Header files and then Program.
Keep visiting, More entries are being written.


Read More
// // Leave a Comment

About Microsoft Excel 2003


Hi All,
I am going to introduce you with Microsoft Excel in brief. Sorry for those who already knew it more.
Microsoft Excel is an Spreadsheet program that is a member of MS Office. Spreadsheet is an electronic sheet that allows you to enter and store data in grid format in computer system. Spreadsheet is electronic version of Accountants book which contains a lot of cells. This has feature to calculate, auto-update, store and retrieve and easy to use GUI tools for operating software. MS-Excel is mainly used for mathematical, statistic and data entry purpose. This is most powerful tool of MS-Office package.
Features of Excel:
Following are the features of MS-Excel.
  1. Easy to use GUI Windows platform and Menu driven concept.
  2. So many functions and formulae for easy calculation and data records.
  3. Can be used as Database and is also supports multiple file formats which helps you to open varieties of document in single application.
  4. Also supports Charts and Tables.
  5. Online and offline support for user about Application and its contents.
  6. Document can be shared through out network that is a concept of multi-user.
  7. Data Import and Export feature.
  8. Templates and Designs for pleasant look.
  9. Understands different formats of number such as date, time, currency, normal etc.

How to Start MS-Excel 2003

You can open Microsoft Excel in two ways:
  • Go to Start  Click on Programs/All Programs  Choose Microsoft Office  Choose Microsoft Office Excel 2003.
  • Go to Start  Click on Run  Type excel in open box  click OK.
  • With Regards,
    John Bhatt
Read More
// // Leave a Comment

Terminology Related to Excel….


Some important terms related to Microsoft Excel.
  • Cell: A rectangular shape made by intersection of Row and Column grid.
  • Row: Horizontal group of Cells.
  • Column: Vertical group of cells.
  • Worksheet: A electronic spreadsheet made of 65536 rows and 256 columns.
  • Work Book: A collection of one or more Worksheets.
  • Range: Selection of cells.
  • Cell Address: Unique location of cell that is composed of Column name followed by Row number. Eg. A1, C65536, IV65536 etc.
Read More
// // Leave a Comment

Microsoft Excel 2003 Intro and Specifications….



General Introduction

Application Name: excel.exe
Default File Format: .xls
Also Supports: .csv, .dbf, .html, .mhtml, .xml, .dif etc.
Application Version: 11.xxxx.xxxx
Application Title: Microsoft Office Excel 2003
Application Vendor: Microsoft Corporation, USA.

Technical Info

Total Rows: 65536
Total Columns: 256
Default Cell Width: 8.43
Default Cell Height: 12.75
Default Worksheets: 3
Maximum Worksheets in a Book: Limited by Memory (Unlimited).
Minimum Worksheets in a Workbook: 1
Read More
// // 1 comment

MS Word 2003 - Introduction


Definition: A full-featured word processing program for Windows and Mac from Microsoft.
Application Name: winword.exe
File Format: .doc
Also support: .txt, .rtf, etc
Advantages:
  1. It reduced retyping and error free hard copy of your document.
  2. Faster output speed.
  3. Reduced the amount required in proof reading.
  4. Make office work convenient and easy.
  5. Elimination of stationary wastes like paper, inks and power also.
Features of MS-Word:
  1. Preparation, storing, retrieve, editing and printing of documents.
  2. Automatically formats text according to real need.
  3. Find, Replace, Mail, Spelling and Grammar, File merge, Column handling, graphics facility, calculation with tables and so many such features.
  4. Security issues with your documents.
Read More

Thursday, October 13, 2011

// // Leave a Comment

Migrating Data to new Server

Dear Friends,

We are shifting our data to new server. Due to some problems with our old server, we have to replace our all data and some data might have been lost. Media Center is being developed rapidly with top priority.

Now after you will be able to Watch your Live Televisions Channels, Listen your favorite FM radios, Listen and Download Nepali and Far-Western mp3s without any registration and free of cost.

Click here to visit our New Download Center at http://media.johnbhatt.com.

Hope you will have a pleasant visit with us.

--John Bhatt
P.Yar.B Complex
Read More

Saturday, October 8, 2011

// // Leave a Comment

Site Down For Mentainence

Dear Viewers,

Greeting from P.Yar.B Complex,

You are viewing this page, because we are updating our portal and you will soon be able to access our new and updated site with latest contents.

Please keep visiting. We will be back to you soon...............

Thanks for your patience and regrets for problems cost to you...

John Bhatt,
P.Yar.B Complex
Read More

Friday, September 2, 2011

// // Leave a Comment

Live Radios of Far-West Nepal

Hey Friends,


I have a good news for you even it is late.
Famous FM Radio Stations of Far-Western part of Nepal are live over internet. Now you can enjoy your very own favorite FM Radios like Dinesh FM, Suklaphanta FM, Radio Mahakali atc live on internet.


As you are known Dinesh Fm 93.8 has their own website and are broadcasting Online since last year. Visit http://www.dineshfm.com and listen online radio their.


Recently Two radio stations of Kanchanpur, Suklaphanta FM 99.4 MHz and Mahakali FM 96.2 MHz are also online via their websites.


http://www.sfm994.com
http://www.radiomahakali.org


Even these both websites are still not designed completely but online broadcasting has been started since last months. You can enjoy these websites even you live at Golf countries, India, USA or any part of globe.


If you face any type of problem listening these radios, you can contact me. These radios are also available at my website http://www.johnbhatt.com.


Thanking You,
John Bhatt

Read More
// // Leave a Comment

Laloo Prasad Job Application




Laloo Prasad sent his Bio Data - to apply for a post in Microsoft Corporation, USA.
A few days later he got this reply:
Dear Mr. Laloo Prasad,
You do not meet our requirements. Please do not send any further correspondence. No phone call shall be entertained.
Thanks
Bill Gates.
Laloo Prasad jumped with joy on receiving this reply.
He arranged a press conference :
"Bhaiyon aur Behno, aap ko jaan kar khushi hogee ki hum ko Amereeca mein naukri mil gayee hai."
Everyone was delighted.
Laloo prasad continued...... "Ab hum aap sab ko apnaa appointment Letter padkar sunaongaa ? par letter angreeze main hai - isliyen saath-saath Hindi main translate bhee karoonga.
Dear Mr. Laloo Prasad ----- Pyare Laloo prasad bhaiyya




You do not meet ----- aap to miltay hee naheen ho
our requirement ----- humko to zaroorat hai
Please do not send any furthur correspondance ----- ab Letter vetter bhejne ka kaouno zaroorat nahee.
No phone call ----- phoonwa ka bhee zaroorat nahee hai
shall be entertained ----- bahut khaatir kee jayegi.
Thanks ----- aapkaa bahut bahut dhanyavad.
Bill Gates. ---- Tohar Bilva.
Read More

Saturday, August 27, 2011

// // Leave a Comment

Filling Background in a page

Dear All,
This is to tell you that how to insert background color and image in a webpage.
For Filling Color as Background
We use bgcolor attribute with body tag. Here is an example showing that how to fill color.
<html>
<head>
<title>Webpage with Background Color
</title>
</head>
<body bgcolor="red">
This page will have Red color as its background.
</body>
</html>
For Inserting Image as Background
We use background attribute with body tag. Here is an example showing that how to insert image as background.
<html>
<head>
<title>Webpage with Background Color
</title>
</head>
<body background="Background.jpg">
This page will have an Image named Background.jpg as its background.
</body>
</html>
This page will have my photos as its background.
Keep reading. Do not forget to share or leave feedback.
+John Bhatt 
Read More

Wednesday, August 24, 2011

// // Leave a Comment

Anna Hazare - Latest Rockstar












Read More

Monday, August 22, 2011

// // Leave a Comment

New Latest Movie.............SuperHIt Must Watch If Found


Read More
// // Leave a Comment

Happy Independence Day.............


Read More

Thursday, August 18, 2011

// // Leave a Comment

First Web page

Hello! Welcome Back,

Now open the notepad by Typing notepad in Run
Run command.
Now type the following codes in notepad and save it with extension .htm or .html.



<br />First HTML Page<br />


Anything you want to display in the website, you are allowed to write here.

....

....

........




Now I am going to describe the above codes.
First we started with tag which starts the HTML language. This is to identify that the script is written in HTML for Web-Browsers. Then we started tag which is used to write scripts and for advance level use. Then we started tag. This is the title of page which is written in Title Bar of Browser. Then we closed tag using forward slash . Then we also closed tag using forward slash . Now our header area is closed and we have to start body of web page with  tag. We can write anything we want to display in the webpage inside body area. After writing the body contents we have to close  tag with . And we closed all HTML tags by the help of tag.
In brief these are the most important tags to create a webpage.
Visit next post for next chapter.
Read More

Monday, August 1, 2011

// // Leave a Comment

HTML Codes/ Tags


Hi,
I have introduced you with HTML in my earlier post. Now we will start creating HTML files. i.e. Web Pages.
HTML is scripting language which is written in codes, called tags. These tags are written inside angle brackets (<>).
These tags are of two types.
  • Container Tag: Also called Paired Tags. These tags have endings also. These tags are closed with forward slash (/). eg. …..,
<p> ....  </p>
<h1>.... </h1>
<center> .... </center>
<table>..... </table>
<span> .... </span>


  • 2) Empty Tag: Also known as single tag. These tags do not have endings. Eg.
    <hr >
    <br >
    
  • Keep reading and send feedback.
    Read More
    // // Leave a Comment

    HTML Introduction


    HTML is a Programming Language. It’s full form is Hyper Text Markup Language.
    This language is invented by Swish Physician Tim Berners-Lee in 1990 AD at European Laboratory, Switzerland.
    Definition:
    HTML is a simple scripting language used to create hypertext documents. Hyper text document is a piece of text that works as link.
    Before HTML, it was SGML which is abbreviation of Standard Generated Markup Language.
    Read More

    Monday, May 16, 2011

    // // Leave a Comment

    After a Long Break

    Hey All,
    Hope you all must be fine. I was out of range for my Exams of BA 1st Year. I went to Varanasi for my exams and stayed at A.P. Singh's as usual. All thing is right, But I have problem with my Job.
    I left Best Roadways Ltd. due to arguments with Mr. Gupta (Director) and then I joined e-Fleet Systems Pvt Ltd but Mr Gupta played trick and I have to leave that job also. Nowadays I am searching a good job but can't find one. I have to manage for my Classes and expenses for living procedure. Even this is not a minor problem but I am facing this with Fun and trying to get a good job. I would like to thank my friends, teachers, family members and specially A.P. Singh for their support. Names of some people helped me in this problem are Jitendra Singh, Abhinav Singh and other friends which I can't list over here.

    Hope all will be OK and see you back.

    With Regards and Best Wishes,
    John Bhatt
    P.Yar.B Complex
    Read More