Help me please !!!

Status
Not open for further replies.
A

axe_effect

Guest
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

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 a moderator:
OP
A

axe_effect

Guest
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
 

entrana

M$™ Certified Spammer
Edit Deleted Ignore This Post This Is Hazardous To C Programming
 
Last edited:
OP
A

axe_effect

Guest
sorry...but is this anyhow related to c programming?
 

zyberboy

dá ûnrêäl Kiñg
^^ROLF........this is really funny man "entrana" accidentally posted a solution for another thread here...oh man i am gone die here
 
OP
A

axe_effect

Guest
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..
 

gary4gar

GaurishSharma.com
@axe_effect
Do you want Spoonfeeding like a baby:x

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
 
OP
A

axe_effect

Guest
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...
 

entrana

M$™ Certified Spammer
o my goodness where the F have i posted god dammit the mods are gonnna ban me now better delete tjhis
 

mehulved

18 Till I Die............
axe_effect said:
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.
 

ilugd

Beware of the innocent
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?
 

Garbage

God of Mistakes...
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:
OP
A

axe_effect

Guest
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 a moderator:
OP
A

axe_effect

Guest
@ 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..
 

ilugd

Beware of the innocent
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. :)
 
OP
A

axe_effect

Guest
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..:confused:

hey frndz i hv made this program of pascal triangle plz go through it..

#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 a moderator:
Status
Not open for further replies.
Top Bottom