Be yourself; Everyone else is already taken.
— Oscar Wilde.
This is the first post on my new blog. I’m just getting this new blog going, so stay tuned for more. Subscribe below to get notified when I post new updates.
Be yourself; Everyone else is already taken.
— Oscar Wilde.
This is the first post on my new blog. I’m just getting this new blog going, so stay tuned for more. Subscribe below to get notified when I post new updates.
This is an example post, originally published as part of Blogging University. Enroll in one of our ten programs, and start your blog right.
You’re going to publish a post today. Don’t worry about how your blog looks. Don’t worry if you haven’t given it a name yet, or you’re feeling overwhelmed. Just click the “New Post” button, and tell us why you’re here.
Why do this?
The post can be short or long, a personal intro to your life or a bloggy mission statement, a manifesto for the future or a simple outline of your the types of things you hope to publish.
To help you get started, here are a few questions:
You’re not locked into any of this; one of the wonderful things about blogs is how they constantly evolve as we learn, grow, and interact with one another — but it’s good to know where and why you started, and articulating your goals may just give you a few other post ideas.
Can’t think how to get started? Just write the first thing that pops into your head. Anne Lamott, author of a book on writing we love, says that you need to give yourself permission to write a “crappy first draft”. Anne makes a great point — just start writing, and worry about editing it later.
When you’re ready to publish, give your post three to five tags that describe your blog’s focus — writing, photography, fiction, parenting, food, cars, movies, sports, whatever. These tags will help others who care about your topics find you in the Reader. Make sure one of the tags is “zerotohero,” so other new bloggers can find you, too.

click on link below to downlod it
https://drive.google.com/file/d/1tZc9Gi6QbUiHQ7kDy8KhGxbEkekhFB3C/view?usp=sharing
Q.3) Explain enumerated data type suitable program.
Ans: Enumerated data type is user defined data type use in c programming to map a set of name to numeric values.Enumerated data type variable can only have value that previously declared. In order word they work with a finite list of value.Enumerated data types make the code more self-documenting and prevent programmers from writing illogical code on a value of enumerateors.Enumerated data type also hide unnecessary details from programmers.
#include enum week{Mon, Tue, Wed, Thur, Fri, Sat, Sun}; int main() { enum
week day; day = Wed; printf("%d",day); return 0;} Q.4) list of variable operators available in c language. How to to use assignment operator in c program? Clarify example.
2. C increment and decrement operators
3. C assignment operator 4. C rational operators 5. C logical operators 6. C bitwise operators |
Assignment operators is is used to assign value to an variable. Assignment operators is denoted by equal to sign. Different ways of using assignment operators.
1. Assignment operator used to assign value:
int main()
{
int value
Value=65
return (0);
}
In the above example we have assigned
2. Assignment operator used to type cast.
int value
value=55.450
printf(“%d”,value);
Assignment operators can type cast higher value to lower value.It can also lower values to higher values.
3. Assignment operators in if statement:
if (value=10)
printf(“true”);
else
printf(“false”);
Above program will always execute true condition because assignment operators is used inside if statement not comparison operators.
Q.5) difference between key words and identifier with suitable program.
Ans:
1)Keywords are the reserved word of a language. Where as identifier user defined name of variable, function and labels.
2) keyboard only consider letter where is identifier consider letter,underscore ,digits.
3) keyword only use lowercase where is identifier used lowercase as well as uppercase.
Q.6) Define symbolic constant. Write a c program to find area and perimeter of circle.
Ans: symbolic constant that substitute for a sequence of characters that can’t be changed. The character may represent a numeric constant, spring constant, character constant
#include
int main()
{
int rad;
float PI=3.14,area,ci;
printf(“\nEnter radius of circle: “); scanf(“%d”,&rad);
area = PI * rad * rad;
printf(“\nArea of circle : %f “,area);
ci =2*PI* rad;
printf(“\nCircumference : %f “,ci); return(0);
}
Q.7) The price of 1 kg of potato is Rs 16.75 in 1 kg onion is 15. Write a c program get this value from the user and display the sum of prices
#include
#include
int main()
{
Float potato, onion, sum;
printf(“Enter price of 1 kg potato and onion :”);
scanf(“%f%f”,& potato,&onion);
Sum=potato +onion;
printf(“Sum of price of 1 kg onion and potato =%f”,sum);
getch();
}
Q.8) what are formatted and unformatted input/output function. Differentiation between putchar() and puts() with example.
Ans: Formatted console input /output function are used to one or more input from user it console and it also allows us to display one or multiple values in the user at the console.
Unformatted console input/output functions are used to read a single input from the user at console and it allows us to display the value in the output to the user at the console.
Different between:
|
Putchar()
|
Puts()
|
|
putchar()are single
character function |
Puts()are string function i8s
|
|
putchar() prints a character to the
screen. |
puts() write s a string on
the screen and advance the course to the newline |
|
Example:putchar(b);
|
Example:put(“one”)
|
Q.9)What are formatted and unformatted input function.
Ans:Formatted input refers to an input data that has been arranged in a particular format.
Unformatted input function used to read the input from the keyboard by the user accessing the console. This input value could be of any primitive data type or an error type.
Q.10)what are formated and unformated output function? Write the difference between gets() and getchar() with example.
Ans: Formatted output function are used to display a store datatype in a particular specified format.
Unformated output function:Unformate output function used to display the output to the user at the console. These output values could be of only primitive data type or on an array type.
|
gets()
|
getchar()
|
|
1. gets() read
stdin until an end of line or end of file is reached. |
1.getchar() read a
single character from stdin. |
|
2. The gets()
function reads a string from through keyboard and stores it in character array. |
2.The getchar()
function read the input fom the user and display back to user. |
|
3.char*gets(char*str)
|
3.int getch(void);
|
Q.12) Distinguish between While and Do while loop. Write a c program to display the
|
While
|
Do while
|
|
1.while is a entire control loop.
|
1. Do while loop is a exit control
loop. |
|
2.In while loop condition is
checked before entering to the loop. |
2. In the do while loop condition is
tasted at the end of the loop. |
|
Continue statement
|
Break statement
|
|
1. Continue statement cause the next
iteration of the enclosing for, while or do loop to begain. |
1. Break statement cause the innermost
enclosing loop or switch to be exited immediately. |
|
2.A break statement can apper in boths
with and loop statement. |
2.A continuous statement only appear
in loop statement. |
|
syntax
|
Example:
|
|
If(test_expression)
{
True_block statement (s);
}
Else
{
False-block statement (s);
}
|
char ch;
ch=getch();
If ch==’m’
printf(“\n you are male”);
else
printf(“\n you are female”);
|
|
syntax
|
Example
|
|
If (expression)
{
If(expression)
{
//body
}
}
|
char chl ;
Int age=20;
chl=getch ();
If (chl)==’m’;
{
If(age>13)
printf(“\n Arun panthi is
an young man”,); }
|
|
Syntax
|
Example
|
|
For(initialization; condition parameter)
{
Statement-block;
}
|
#include
#include
Int main()
{
Int i;
For(i=1;i <==10;i++
{
Printf(%d”,i);
}
getch();
}
|
|
syntax
|
Example
|
|
|
Do{
Statement/s;
}
While(condition);
|
Int main()
{
Int i=1;
Do{
While( i<==5);
getch();
}
|
|
|
Syntax :
Variable_name=constant
|
Water is one of the things we need most besides air. Thank God water is plenty because three fourths of earth’s surface is covered with water. This is only a general fact and not all places on earth are having enough water Healthy potabie water is a rare commodity. Rivers may bring water and lakes may beis a rare commodity. Rivers may bring water and lakes may be having it. From the health view point, they may not be fit for drinking. Most of these waters are contaminated and may contain mineral as well as organic Impurities. Sometimes epidemic spreading bacteria like those causing cholera and typhoid victimize us. Nowadays the chances of contamination of water sources are quite common with industries coming up and sending out their effluents indiscriminately. So to make these waters potable, they must be treated before being supplied to the public.
Treating water and supplying it to a town or city adds cost. The water has to be filtered for suspended impurities and then chlorinated and then pumped to a storage tank from where the water is distributed through pipes. So, one must remember that when one draws water from the tap, one is actuallý buying or paying for water. This has become inevitable with the growth of cities and towns.
We should bear in mind that we are be careful in using water or not. There are many ways in which water is wasted. The tap may be leaky whereby water may be spilled. That means some periodic attention must be paid to the plumbing and leaky taps.The tap may be open and the water running out and nobody would care to stop it. Unless there is need, the tap must be kept closed. This must be particularly remembered when one leaves home on holiday. Otherwise throughout their absence, water may be flowing out. Just as we see if the electric mains are off so when we are away for some time so too is the water tap.
Major part of the water is used for bathing,washing and cleaning. In all these needs, water must be prudently used.Take bathing for instance, when one is scrubbing or appliying one’s body, the shower need not be running. Water econoomy must be remembered in the use of bath tubs. One need not be a Rhino to be in one’s bath for hours to end. This prudence in the use of water may be practised in washing and cleaning. Since these consume a lot of water . If the municipal corporation is affluent and water is in plenty, separate system supplying water for washing and cleaning alone can be managable.The industrial
houses must not be allowed to draw from public water system for their industrial use except for drinking water. One must bear in mind when one wastes water, one is depriving another of his share of water.
Good water may get scarcer in days to come. With the advent of rapid industrialization, contamination of water sources poses a threat. So, the industrial people must feel that it is their duty not to add to water pollution. In areas of acute water scaricity steps may be taken for I recycling water. We should remember that one of the casualties of the so called modernization is that
we have to pay for nature’s goods like water. We should consider our welfare in the welfare of others.
Market analysis of paint on surkhet valley
click on my photo to downlod
https://drive.google.com/file/d/1RkgfAjcZhv71OEstNH-ZSWfzM4585-n9/view?usp=sharing
TO DOWNLOD A DOCUMENT PLESE CLICK ON MY PHOTSOS
1)chapter 1-
introduction to computer
click on My photo to downlod the pdf into your computer\mobile.
Lab report of mid western university. It was prepare by Arun panthi. cover page of any lab report contant
Click the link below to download the sample of cover page of lab report of Mid-western university
https://drive.google.com/file/d/1hG2ThKMM-37_nkrmAu_Fzhsta2SDXRxj/view?usp=sharing