 |
|
02-09-2007, 04:48 PM
|
#1 (permalink)
|
|
Guest
|
Help me please !!!
Hello friends
This is my first post and i am asking for ur help, i am student of b.sc (food science) last year...
Tommorow i have to submit an assigment on C.... in last sem we have to read C too but dont know anything about it....
I need your HELP .... To make my assingment coz u all are genius here and its a cup of tea for u all to make it...
I have to make some programs on c which are as follow....
kindly help me in making my assingnment.... I will be greatful
Quote:
List of programs:- write a program to find whether the given alphabet is vowel or consonant.
- write a program to fing whether the given no. is odd or even.
- write a program to display and calculate factorial of given no. in each step.
- write a program to build pyramid of a star.
- write a program to build pyramid of natural no.
- write a program to build pascal triangle.
- to calculate surface tention from molecular wt and density of liquids.
- write a program to display the % of 3 subjects and declare their division with pass or fail by using if else ladder.
|
please please please help me
Last edited by axe_effect; 02-09-2007 at 05:58 PM.
|
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
02-09-2007, 05:08 PM
|
#2 (permalink)
|
|
Google Bot
Join Date: Aug 2005
Posts: 9,772
|
Re: Help me please !!!
dude the programs u have listed above are veryyy easy...
try doing them urself..
|
|
|
02-09-2007, 05:22 PM
|
#3 (permalink)
|
|
Guest
|
Re: Help me please !!!
Thanks pathik
I know its for u guys but for me its like to climb on mount everest...
we just read 1 week C and our faculty wants these programs from us
friend its my sincere request if possible please post them....
we are a student of food science why they are forcing to learn c 
please help me ... its very easy for u guys .... may b u can do it in minute
|
|
|
|
02-09-2007, 05:37 PM
|
#4 (permalink)
|
|
M$™ Certified Spammer
Join Date: Jun 2007
Location: Kolkata
Posts: 1,751
|
Re: Help me please !!!
Edit Deleted Ignore This Post This Is Hazardous To C Programming
__________________
Seagate 500gb 7200RPM l Corsair 2*1GB Ram 800mhz l XFX 8800 GTS 320MB Xtreme 650/ 1500/ 950 l Asus P5N-eSLI l Core 2 Duo e6750 l Coolermaster Extreme Power 600watts SMPS l Microtek 800VA Ups l
Last edited by entrana; 02-09-2007 at 08:35 PM.
|
|
|
02-09-2007, 05:52 PM
|
#5 (permalink)
|
|
Guest
|
Re: Help me please !!!
sorry...but is this anyhow related to c programming?
|
|
|
|
02-09-2007, 05:59 PM
|
#6 (permalink)
|
|
dá ûnrêäl Kiñg
Join Date: Feb 2006
Location: kerala/calicut
Posts: 992
|
Re: Help me please !!!
^^ROLF........this is really funny man "entrana" accidentally posted a solution for another thread here...oh man i am gone die here
__________________
My Stomach pains:D:D
http://tinyurl.com/32jj4m
|
|
|
02-09-2007, 06:00 PM
|
#7 (permalink)
|
|
Guest
|
Re: Help me please !!!
yeah....even i think so...but this doesnt solves my problem..i m still between the deep blue sea and the ocean...plz help me out..
|
|
|
|
02-09-2007, 06:04 PM
|
#8 (permalink)
|
|
GaurishSharma.com
Join Date: May 2005
Location: Jaipur
Posts: 4,116
|
Re: Help me please !!!
@axe_effect
Do you want Spoonfeeding like a baby
come'on, tell us where you struck. the programs are meants for your pratice if we did this all what will you do?
who will you learn?
so do this on your own, if you are stuck then post back with specific problem
|
|
|
02-09-2007, 06:11 PM
|
#9 (permalink)
|
|
Guest
|
Re: Help me please !!!
the main point where i m stuck is i m a computer illiterate...if i would have had even slightest knowledge of how this damn C programming is done...i wouldnt hv posted it here...
|
|
|
|
02-09-2007, 08:35 PM
|
#10 (permalink)
|
|
M$™ Certified Spammer
Join Date: Jun 2007
Location: Kolkata
Posts: 1,751
|
Re: Help me please !!!
o my goodness where the F have i posted god dammit the mods are gonnna ban me now better delete tjhis
__________________
Seagate 500gb 7200RPM l Corsair 2*1GB Ram 800mhz l XFX 8800 GTS 320MB Xtreme 650/ 1500/ 950 l Asus P5N-eSLI l Core 2 Duo e6750 l Coolermaster Extreme Power 600watts SMPS l Microtek 800VA Ups l
|
|
|
02-09-2007, 08:37 PM
|
#11 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: Help me please !!!
Quote:
|
Originally Posted by axe_effect
sorry...but is this anyhow related to c programming?
|
sorry...but is this thread anyhow related to Open Source?
And the problems are really basic ones. They aren't testing your C programming skills but rather they are the ones testing your logic, IMHO.
|
|
|
02-09-2007, 09:05 PM
|
#12 (permalink)
|
|
Beware of the innocent
Join Date: Dec 2005
Posts: 1,024
|
Re: Help me please !!!
hey dudes, it isn't fair. This guy himself accepts that he is computer illiterate. The least we can do is point him to some links that have the solutions. Is it ok or is it disallowed.
@axeeffect, how come you have c in your course? You still need the solution right?
__________________
Life is too short. Have fun.
|
|
|
02-09-2007, 09:24 PM
|
#13 (permalink)
|
|
God of Mistakes...
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
|
Re: Help me please !!!
Solution for check for ODD or Even...
Code:
# include <stdio.h>
int main()
{
int no;
printf ("\nEnter a number : ");
scanf ("%d",&no);
if (no%2==0)
printf ("\nGiven number is Even.");
else
printf ("\nGiven number is Odd.");
return 0;
}
I'm giving simple programs!
But plz try to learn yourself !
================================================== ==
to find whether the given alphabet is vowel or consonant.
Code:
# include <stdio.h>
int main()
{
char ch;
printf ("\nEnter an alphabate : ");
scanf ("%c",&ch);
if (ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'||)
printf ("\nGiven alphabate is Vowel.");
else
printf ("\nGiven alphabate is consonent.");
return 0;
}
NOTE : I've NOT compiled them. Check urself plz
Last edited by Garbage; 02-09-2007 at 09:25 PM.
Reason: Automerged Doublepost
|
|
|
02-09-2007, 09:28 PM
|
#14 (permalink)
|
|
Guest
|
Re: Help me please !!!
its correct i still need the solutions...i m tryin my level best...and i myself am surprised of relevance of higher mathematics and programming language to our course...
we even have higher maths inspite of the fact tht we all belong to bio backgrounds and all of us had only BASIC as computer language in school level...
we r students of applied chem n food tech..and other big fact is tht girls arent TECHIE as guys are...
thx shirish...
i m tryin to build these programs on my own...i hv made a few even..i ll post these in some time..if there be any corrections u can tell me...
Last edited by axe_effect; 02-09-2007 at 09:29 PM.
Reason: Automerged Doublepost
|
|
|
|
02-09-2007, 09:30 PM
|
#15 (permalink)
|
|
God of Mistakes...
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
|
Re: Help me please !!!
absolutely axe_effect !!
If I can understand, then I can suggest some corrections !!
|
|
|
02-09-2007, 09:32 PM
|
#16 (permalink)
|
|
Beware of the innocent
Join Date: Dec 2005
Posts: 1,024
|
Re: Help me please !!!
LOL, just wondering. Do your teachers know enough c to correct that?
__________________
Life is too short. Have fun.
|
|
|
02-09-2007, 09:33 PM
|
#17 (permalink)
|
|
Guest
|
Re: Help me please !!!
@ ilgud
well thts d main problem...our teacher is on d same level as we are...she is a passout of our stream only...she also has studied c for just 3 months..
|
|
|
|
02-09-2007, 09:39 PM
|
#18 (permalink)
|
|
Beware of the innocent
Join Date: Dec 2005
Posts: 1,024
|
Re: Help me please !!!
dont worry then. You really don't need to check that it compiles. She probably wouldn't know the difference between c and c++ anyway.
And why would that be a problem. I like to pull the legs of incompetent teachers where I study. They are fun actually. Just nod seriously to whatever crap they are spewing and they will think you are a good student.
__________________
Life is too short. Have fun.
|
|
|
02-09-2007, 09:51 PM
|
#19 (permalink)
|
|
Google Bot
Join Date: Aug 2005
Posts: 9,772
|
Re: Help me please !!!
R u under MU?? Only MU can include C in food science..
|
|
|
02-09-2007, 10:35 PM
|
#20 (permalink)
|
|
Guest
|
Re: Help me please !!!
Quote:
void main()
{
for I=1
int percent, marks;
scanf marks;
percent=(marks/100)*100;
printf( “the percentage is %f”,& percent);
if (percent>79)
grade=”hons”;
else if (percent>59)
grade=”first divison”;
else if(percent>49)
grade=”second divison”;
else if(percent>39)
grade=”third divison”;
else grade=”fail”
printf(“%s\n”,grade);
next I;
getch();
}
|
@ pathik
MU?...
i didnt get u..
hey frndz i hv made this program of pascal triangle plz go through it..
Quote:
#include stdio.h
#include conio.h
void main()
{
int a[10][10];
int i,j,c,n;
clrscr();
printf("Enter how many lines do you want");
scanf("%d",&n);
a[1][1]=1;
printf("%5d",a[1][1]);
a[2][1]=1;
a[2][2]=2;
a[2][3]=1;
printf("%d %d %d",a[2][1],a[2][2],a[2][3]);
for(i=3;i<=n;i++)
{
a[1]=1;
printf("%d",a[1]);
j=2;
c=3;
while(j<=i)
{
a[j]=a[i-1][c-1]+a[i-1][c-2];
printf("%5d",a[j]);
c=c+1;
j=j+1;
}
a[j]=1;
printf("%d",a[j]);
}
}
|
Last edited by axe_effect; 02-09-2007 at 10:36 PM.
Reason: Automerged Doublepost
|
|
|
|
02-09-2007, 11:06 PM
|
#21 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Help me please !!!
Your problems are so common that a simple Google query would throw up the answers right on top. Do it the clever way
__________________
Harsh J
www.harshj.com
|
|
|
02-09-2007, 11:17 PM
|
#22 (permalink)
|
|
Guest
|
Re: Help me please !!!
can u provide me with some of those googling tips coz i get irrelevant links more than those which are of really great help...i tried wid advanced search but no use...can u plz enlighten me wid ur knowledge...
|
|
|
|
02-09-2007, 11:38 PM
|
#23 (permalink)
|
|
Beware of the innocent
Join Date: Dec 2005
Posts: 1,024
|
Re: Help me please !!!
christ... I feel like God already, axe effect, will you stop buttering us up?
Calling us all geniuses and now asking for enlightenment. 
ROFL.
Anyway.. here is a link and how to go about it
http://www.google.co.in/search?hl=en...G=Search&meta=
selected link : http://www.google.co.in/url?sa=t&ct=...dkFDtGSw5UNdXw
just try to do the search with the main phrase
eg to search for a program to find prime numbers you could use a phrase you think another person would use when explaining the program. Say "program to find if a number is prime" Then just append c or c language to the end.
Some of the programs might need some more research.
__________________
Life is too short. Have fun.
|
|
|
02-09-2007, 11:44 PM
|
#24 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Help me please !!!
Yep, simple keywords which are minimal are the key to good results. Like:
Or a bit cleverly:
Code:
pascal triangle "stdio"
For forcing C-only results.
__________________
Harsh J
www.harshj.com
|
|
|
02-09-2007, 11:56 PM
|
#25 (permalink)
|
|
Guest
|
Re: Help me please !!!
@ ilugd
hey i m not flattering u...i m not tht TECHIE sort ...i hv very basic knowledge abt computers...i was googlin for these c programs n came across this think digit forum dunno frm where...so i decided to join it..
n seriously pals i aint jokin..i m really a computer illilerate..even i dun hang up late nights on computer...its juz coz this assignment i m here...
thx qm...i ll keep it in mind now..
Last edited by axe_effect; 03-09-2007 at 12:30 AM.
Reason: Automerged Doublepost
|
|
|
|
03-09-2007, 12:20 AM
|
#26 (permalink)
|
|
Beware of the innocent
Join Date: Dec 2005
Posts: 1,024
|
Re: Help me please !!!
hey, take it easy. Just friendly chitchat. But we are no geniuses, we are just good at what we do. And on a relative scale we are definitely not even experts. Well most of us anyway. There are some geniuses around. 
Hope you assignments got solved.
__________________
Life is too short. Have fun.
Last edited by ilugd; 03-09-2007 at 01:06 AM.
Reason: Automerged Doublepost
|
|
|
03-09-2007, 12:26 AM
|
#27 (permalink)
|
|
Guest
|
Re: Help me please !!!
i think quite similar to you...i ll edit tht...its for this is kept this nick axe_effect...  i ll delete this...
|
|
|
|
03-09-2007, 03:41 AM
|
#28 (permalink)
|
|
In The Zone
Join Date: Sep 2006
Location: Kharagpur for now
Posts: 362
|
Re: Help me please !!!
wnt compile ob.. look at the line a[1] .. isnt 'a' a double dimensional array
__________________
http://www.last.fm/user/NOLFxceptMe/
http://naveendageek.blogspot.com
Back after a long time. And well, EndSems screwed up as usual :)
|
|
|
03-09-2007, 02:22 PM
|
#29 (permalink)
|
|
GaurishSharma.com
Join Date: May 2005
Location: Jaipur
Posts: 4,116
|
Re: Help me please !!!
@axe_effect
try getting any text book for C
you will find Most programs there
[edit]
You can get any of them:-
Let us ''C'' - Yashwant Kanetkar
Programming in ANSI C - E Balagurusamy
The C Programming Language -Brian Kernighan and Dennis Ritchie
Last edited by gary4gar; 03-09-2007 at 02:39 PM.
|
|
|
03-09-2007, 02:35 PM
|
#30 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: Help me please !!!
C for Dummies?2nd edition?
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|