Let-Us-C-Solutions š š Do star it if you like it š Solutions to Let Us C 15th Edition by Yashwant Kanetkar. (You can refer to Let us Solutions for 13th Edition here.) In case of any legal issue or any error,please mail to himanshuverkiya@gmail.com or akshtgupta7@gmail.com. Read CONTRIBUTING.md for any further contributions. Access Globalization and Diversity 6th Edition Chapter 5 Problem 10R solution now. Our solutions are written by Chegg experts so you can be assured of the highest quality! Oct 25, 2014 LET US C SOLUTIONS EDITION 5 (YASHWANT KANETKAR) CHAPTER 1: Getting Started. LET US C SOLUTIONS EDITION 5 (CHAPTER 1) About Me. Pavan mule View my complete profile. In the sixth chapter, Let Us C covered all the basic things we need to get started in the journey of learning C Programming. Now, letās have a look at the solutions of the exercise of the sixth chapter, More Complex Repetitions from Let Us C. A What will be the output of the following. Read More 'Chapter 6: More Complex Repetitions ā Let Us C Solutions'.
- Let Us C Solutions Free Download
- Chapter 5 Update Let Us C Solutions Chapter 2
- Chapter 5 Updatelet Us C Solutions Collection Agency
(a)Write a function to calculate the factorial value of any integer entered through
the keyboard.
Answer:#include
main()
{
int i, f;
int factorial();
printf('Enter the number to evaluate its factorial:');
scanf ('%d', &i);
f=factorial(i);
printf('%d! = %dn', i, f);
}
factorial(int num)
{
int temp, fact;
for (temp=1,fact=1;temp<=num; temp++) { fact=fact*temp; continue; } return (fact); }
main()
{
int i, f;
int factorial();
printf('Enter the number to evaluate its factorial:');
scanf ('%d', &i);
f=factorial(i);
printf('%d! = %dn', i, f);
}
factorial(int num)
{
int temp, fact;
for (temp=1,fact=1;temp<=num; temp++) { fact=fact*temp; continue; } return (fact); }
Accounting Information Systems, 13e (Romney/Steinbart) Chapter 5 Computer Fraud. 5.1 Explain the threats faced by modern information systems. 1) Perhaps the most striking fact about natural disasters in relation to AIS controls is that A) many companies in one location can be seriously affected at one time by a disaster.
Answer : #include
main()
{
int power (a,b);
int a, b, result;
printf('Enter the value of a and b:');
scanf ('%d %d', &a, &b);
result=power(a,b);
printf('%d raised to %d is %d', a, b, result);
}
power (int a, int b)
{
int calculation=1, calc;
for (calc=1; calc <=b; calc++) { calculation=calculation*a; continue; } return(calculation); }
main()
{
int power (a,b);
int a, b, result;
printf('Enter the value of a and b:');
scanf ('%d %d', &a, &b);
result=power(a,b);
printf('%d raised to %d is %d', a, b, result);
}
power (int a, int b)
{
int calculation=1, calc;
for (calc=1; calc <=b; calc++) { calculation=calculation*a; continue; } return(calculation); }
The following table shows the roman equivalents of decimal numbers:
Decimal:........Roman
1.....................i
5....................v
10..................x
50..................l
100................c
500...............d
1000.............m
Example:
Romanequivalent of 1988 is mdcccclxxxviii
Roman equivalent of 1525 is mdxxv
Answer:#include
main()
{
int year;
int convert (int year);
{
printf('Note:Enter a four year digit year.nn');
printf('Enter the year that you wanna convert to Roman: ' );
scanf ('%d', &year);
if (year> 1999)
{
printf('Invalid Year.Please enter again.nn');
}
}
convert(year);
}
convert(int year)
{
int i;
printf('nYear converted to Roman:');
i=(year/1000); //thousands place
if(i1)
{
printf('m');
}
i=((year/100)%10); //hundreds place
switch (i)
{
case 1:
printf('c');
break;
case 2:
printf('cc');
break;
case 3:
printf('ccc');
break;
case 4:
printf('cd');
break;
case 5:
printf('d');
break;
case 6:
printf('dc');
break;
case 7:
printf('dcc');
break;
case 8:
printf('dccc');
break;
case 9:
printf('dcccc'); //this part you may think is wrong..9 -> cm
break; //but i have taken a hint from the example in the question.
}
i=((year/10)%10); //tens place
switch(i)
{
case 1:
printf('x');
break;
case 2:
printf('xx');
break;
case 3:
printf('xxx');
break;
case 4:
printf('xl');
break;
case 5:
printf('l');
break;
case 6:
printf('lx');
break;
case 7:
printf('lxx');
break;
case 8:
printf('lxxx');
break;
case 9:
printf('lxxxx'); //had it not been for this example, it would have been xc
break;
}
i=year%10; //ones place
switch(i)
{
case 1:
printf('i');
break;
case 2:
printf('ii');
break;
case 3:
printf('iii');
break;
case 4:
printf('iv');
break;
case 5:
printf('v');
break;
case 6:
printf('vi');
break;
case 7:
printf('vii');
break;
case 8:
printf('viii');
break;
case 9:
printf('ix');
break;
}
printf ('nn');
return 0;
}
main()
{
int year;
int convert (int year);
{
printf('Note:Enter a four year digit year.nn');
printf('Enter the year that you wanna convert to Roman: ' );
scanf ('%d', &year);
if (year> 1999)
{
printf('Invalid Year.Please enter again.nn');
}
}
convert(year);
}
convert(int year)
{
int i;
printf('nYear converted to Roman:');
i=(year/1000); //thousands place
if(i1)
{
printf('m');
}
i=((year/100)%10); //hundreds place
switch (i)
{
case 1:
printf('c');
break;
case 2:
printf('cc');
break;
case 3:
printf('ccc');
break;
case 4:
printf('cd');
break;
case 5:
printf('d');
break;
case 6:
printf('dc');
break;
case 7:
printf('dcc');
break;
case 8:
printf('dccc');
break;
case 9:
printf('dcccc'); //this part you may think is wrong..9 -> cm
break; //but i have taken a hint from the example in the question.
}
i=((year/10)%10); //tens place
switch(i)
{
case 1:
printf('x');
break;
case 2:
printf('xx');
break;
case 3:
printf('xxx');
break;
case 4:
printf('xl');
break;
case 5:
printf('l');
break;
case 6:
printf('lx');
break;
case 7:
printf('lxx');
break;
case 8:
printf('lxxx');
break;
case 9:
printf('lxxxx'); //had it not been for this example, it would have been xc
break;
}
i=year%10; //ones place
switch(i)
{
case 1:
printf('i');
break;
case 2:
printf('ii');
break;
case 3:
printf('iii');
break;
case 4:
printf('iv');
break;
case 5:
printf('v');
break;
case 6:
printf('vi');
break;
case 7:
printf('vii');
break;
case 8:
printf('viii');
break;
case 9:
printf('ix');
break;
}
printf ('nn');
return 0;
}
Answer: #include
main()
{
int leap_year(year);
int year, lp;
printf('Enter the year:');
scanf ('%d', &year);
lp=leap_year(year);
if (lp)
{
printf('nThe entered year is a leap year.');
}
else
{
printf('nThe entered year is not a leap year.');
}
}
leap_year(int y)
{
int lp;
if (y%40)
{
lp=1;
}
else
lp=0;
return(lp);
}
main()
{
int leap_year(year);
int year, lp;
printf('Enter the year:');
scanf ('%d', &year);
lp=leap_year(year);
if (lp)
{
printf('nThe entered year is a leap year.');
}
else
{
printf('nThe entered year is not a leap year.');
}
}
leap_year(int y)
{
int lp;
if (y%40)
{
lp=1;
}
else
lp=0;
return(lp);
}
Answer:#include
main()
{
int number;
int prime(int number);
int primefactor(int number);
printf('Enter the number whose prime factors are to be calculated:');
scanf ('%d', &number);
primefactor(number);
}
//The following function detects a Prime number.
prime(int num)
{
int i, ifprime;
for (i=2; i<=num-1; i++)
{
if (num%i0)
{
ifprime=0;
}
else
ifprime=1;
}
return
(ifprime);
}
//The following function prints the prime factors of a number.
primefactor(int num)
{
int factor,ifprime;
for (factor=2; factor<=num;
)
{
prime(factor);
//so that the factors are only prime and nothing else.
if (ifprime)
{
if(num%factor0) //diving by all the prime numbers less than the number itself.
{
printf('%d ', factor);
num=num/factor;
continue;
}
else
{
factor++;//this cannot be made a part of the for loop
}
}
}
return 0;
}
main()
{
int number;
int prime(int number);
int primefactor(int number);
printf('Enter the number whose prime factors are to be calculated:');
scanf ('%d', &number);
primefactor(number);
}
//The following function detects a Prime number.
prime(int num)
{
int i, ifprime;
for (i=2; i<=num-1; i++)
{
if (num%i0)
{
ifprime=0;
}
else
ifprime=1;
}
return
(ifprime);
}
//The following function prints the prime factors of a number.
primefactor(int num)
{
int factor,ifprime;
for (factor=2; factor<=num;
)
{
prime(factor);
//so that the factors are only prime and nothing else.
if (ifprime)
{
if(num%factor0) //diving by all the prime numbers less than the number itself.
{
printf('%d ', factor);
num=num/factor;
continue;
}
else
{
factor++;//this cannot be made a part of the for loop
}
}
}
return 0;
}
NCERT Solutions for Class 8 English Honeydew Chapter 5 The Summit Within
NCERT Solutions for Class 8 English Honeydew Chapter 5 The Summit Within
NCERT Solutions for Class 8 English Honeydew Chapter 5 The Summit Within
Comprehension Check (Page 80)
Question 1:
Standing on Everest, the writer was
(i) overjoyed
(ii) very sad.
(iii) jubilant and sad.
Choose the right item.
Question 2:
The emotion that gripped him was one of
(i) victory over hurdles.
(ii) humility and a sense of smallness.
(iii) greatness and self importance.
(iv) joy of discovery.
Choose the right item.
Question 3:
āThe summit of the mindā referes to
(i) great intellectual achievements.
(ii) the process of maturing mentally and spiritually.
(iii) Overcoming personal ambition for common welfare.
(iv) living in the world of thought and imagination.
(v) the triumph of mind over worldly pleasures for a noble cause.
(vi) a fuller knowledge of oneself
Mark the item(s) not relevant.
Answers:
- (iii) jubilant and sad.
- (ii) humility and a sense of smallness.
- (vi) a fuller knowledge of oneself.
Working With the Text (Page 81)
Question 1:
Answer the following questions.
(i) What are the three qualities that played a major role in the authorās climb?
Answer:
The three qualities that ensured the success of the author were āendurance, persistence and will powerā.
(ii) Why is adventure, which is risky, also pleasurable?
Answer:
Mountain climbing is a great adventure but is also risky. It is a great challenge and a doing challenging job is in itself pleasurable. It gives immense joy to the doers.
(iii) What was it about Mount Everest that the author found irresistible?
Answer:
Mount Everest attracted the author because it is the highest, the mightiest and has defied many previous attempts. It takes the last ounce of oneās energy.
(iv) One does not do it (climb a high peak) for fame alone. What does one do it for, really?
Answer:
Conquering summit is a great physical achievement. But more than that, it gives the climber the emotional and spiritual satisfaction. It satisfies manās eternal love for adventure.
(v) āHe becomes conscious in a special manner of his own smallness in this large universeā. This awareness defines an emotion mentioned in the first paragraph. Which is the emotion?
Answer:
That emotion is āhumilityā.
(vi) What were the āsymbols of reverenceā left by members of the team on Everest?
Answer:
The author left on Everest a picture of Guru Nanak. Rawat left a picture of Goddess Durga. Phu Durgi left a relic of the Buddha. Edmund Hillary, being a Christian, buried a Cross under the rock. All these were symbols of reverence for God.
(vii) What according to the writer, did his experience as an Everester teach him?
Answer:
The experience of having conquered Mount Everest changed him completely. It made him realise his own smallness.
Question 2:
Write a sentence against each of the following statements. Your sentence should explain the statement. You can pick out sentences from the text and rewrite them. The first one has been done for you.
(i) The experience changes you completely.
One who has been to the mountains is never the same again.
_________________________________________________
(ii) Man takes delight in overcoming obstacles.
_________________________________________________
(iii) Mountains are nature at its best
_________________________________________________
(iv) The going was difficult but the after-effects were satisfying
_________________________________________________
(v) The physical conquest of a mountain is really a spiritual experience
_________________________________________________
Answer:
(ii) The obstacles in climbing a mountain are physical. A climb to a summit is a test of endurance and will power. It is a challenge that is difficult to resist.
(iii) Everest is the highest and the mightiest and has defied many previous attempts.
(iv) When the summit is climbed, there is the joy of having done something, one has the feeling of victory and of happiness.
(v) Mountains are a means of communion with God.
Working with Language (Page 82)
Question 1:
Look at the italicised phrases and their meanings given in brackets.
Mountains are nature (natureās best form and appearance)
at its best.
Your life is at risk. (in danger; you run the risk of losing your life.) (it was his best/worst performance.)
He was at his (it was his best/worst performance.)
best/worst
in the last meeting.
Fill in the blanks in the following dialogues choosing suitable phrases from those given in the box.
at hand at once at all at a low ebb at first sight
- Teacher: You were away from school without permission. Go to the Principal________________ and submit your explanation.
Pupil: Yes, Madam. But would you help me write it first? - Arun: Are you unwell?
Ila: No, not___________________ Why do you ask?
Arun: If you were unwell. I would send you to my uncle.
He is a doctor. - Mary: Almost every Indian film has an episode of love________________________ .
David: Is that what makes them so popular in foreign countries? - You look depressed. Why are your spirits_______________________ today?
(Use such in the phrase)
Ashok: I have to write ten sentences using words that I never heard before. - Your big moment is close______________________ .
Jyoti: How should I welcome it?
Shieba: Get up and receive the trophy.
Answer:
- at once
- at all
- at first sight
- at such a low ebb
- at hand.
Question 2:
Write the noun forms of the following words adding -ance or -ence to each.
- endure ______________________
- persist_____________
- signify____________________
- confide___________
- maintain ___________________
- abhor_____________
Answer:
- endurance
- persistence
- significance
- confidence
- maintenance
- abhorrence.
Let Us C Solutions Free Download
Question 3:
(i) Match words under A with their meanings under B.
Answer:
(ii) Fill in the blanks in the sentences below with appropriate words from under A.
- There were ___________________ obstacles on the way, but we reached our destination safely.
- We have no __________________ of finding out what happened there.
- Why he lives in a house ______________________ from any town or village is more than I can tell.
- __________________ by gratitude, we bowed to the speaker for his valuable advice.
- The old castle stands in a _______________________ position above the sleepy town.
Answer:
- formidable
- means
- remote
- Overwhelmed
- dominant.
Speaking and Writing (Page 83)
Write a composition describing a visit to the hills, or any place which you found beautiful and inspiring.
Before writing, work in small groups. Discuss the points given below and decide if you want to use some of these points in your composition.
- Consider this Sentence
Mountains are a means of communion with God.
- Think of the act of worship or prayer. You believe yourself to be in the presence of the divine power. In a way, you are in communion with that power.
- Imagine the climber on top of the summitāthe height attained; limitless sky above; the climberās last ounce of energy spent; feelings of gratitude, humility and peace.
- The majesty of the mountains does bring you close to nature and the spirit and joy that lives there, if you have the ability to feel it. Some composition may be read aloud to the entire class afterwards.
Answer:
For self attempt
MORE QUESTIONS SOLVED
I. SHORT ANSWER TYPE QUESTIONS
Question 1:
What do you know about H.P.S. Ahluwalia?
Answer:
Major H.P.S. Ahluwalia was a member of the first successful Indian expedition to Mount Everest in 1965.
Question 2:
Which other summit has been talked to by the author?
Answer:
The other summit that has been talked to by the author is the summit of the mind. In the authorās opinion climbing this
Question 3:
Why do people climb mountains?
Answer:
People climb mountains because it is a difficult task. They take delight in overĀcoming obstacles. The obstacles in climbing a mountain are physical. A climb to- a summit means endurance, persistence and will power. The demonstration of these qualities is exhilarating.
Question 4:
How does the author view mountains?
Answer:
The author finds great joy in the company of mountains. He feels miserable in the plains. Their beauty and majesty pose a great challenge. The author beĀlieves that mountains are a means of communion with God.
Chapter 5 Update Let Us C Solutions Chapter 2
Question 5:
What features of Everest did draw the author to it?
Answer:
The beauty of Everest, its aloofness, might and ruggedness drew the author to it. The difficulties that the author encountered on the way also were taken by him as challenges which he couldnāt resist.
II. LONG ANSWER TYPE QUESTIONS
Question 1:
Why did the author climb Mount Everest?
Answer:
The author climbed Mount Everest because it is the highest, the mightiest and has defied many previous attempts. It takes the last ounce of oneās energy. It is a brutal struggle with rock and ice. Once taken up, it cannot be given up halfway because the passage back is as difficult as the passage onwards. And then, when the summit is climbed, there is the exhilaration, the joy of having done something, the sense of a battle fought and won. There is a feeling of victory and of happiness.
Question 2:
How does Ahluwalia explain the title of the lesson, āThe Summit Withinā?
Answer:
The writer was a member of the team that reached the summit of Mount Everest. It was a great achievement. But he did not feel vain or heroic. He felt that his conquest of Everest was merely a physical experience. There was another summit within every person. It was his own mind. One has to climb it also to get fuller knowledge of oneself. This exercise is difficult. It also changes one as does standing on the summit of Mt. Everest.
Question 3:
How did Ahluwaliah feel standing on the summit?
Answer:
Ahluwalia was overwhelmed by a deep sense of joy and thankfulness. Looking round from the summit, Ahluwalia told himself that his adventure, though risky, was worthwhile. The surrounding peaks looked like a jewelled necklace. It was an ennobling and enriching experience. He was filled with humility. He thanked God and then left on Everest a picture of Guru Nanak.
Question 4:
How does Ahluwalia describe his achievement?
Answer:
Ahluwalia feels that Everest is not just a physical climb. Standing on the mountainās top he felt how small he was in the big universe. He experienced a sense of fulfilment. It satisfied his love for adventure. The experience was not just physical, but also emotional and spiritual.
Question 5:
What problems do the climbers face as they climb a mountain?
Answer:
Breathing at great height is difficult. The climber has to cut the steps in the hard ice and he has to strain every nerve as he takes every step. Sometimes he curses himself for undertaking such a task. There are moments when he feels like going back for relief. But there is something that does not let him give up the struggle.
More CBSE Class 8 Study Material
Save
Chapter 5 Updatelet Us C Solutions Collection Agency
Save
Save