All C programming & Algorithm

All C programming & Algorithm

Share

An Electric power Distribution Company charges its consumers 15/06/2019

Consumption Unit Rate of Charges For First 50 Units Rs 2.30 Next 50 Units Rs 2.60 Next 150 Units Rs 3.25 More than 250 Units Rs 4.35 Write a program to take no of units consumed from user and calculate the bill Amount. int main() { int unit; float amt, total_amt, sur_charge; /* Input unit consumed from user */ printf("Enter total units consumed: "); scanf("%d", &unit); /* Calculate electricity bill according to given conditions */ if(unit

An Electric power Distribution Company charges its consumers Consumption Unit Rate of Charges For First 50 Units Rs 2.30 Next 50 Units Rs 2.60 Next 150 Units Rs 3.25 More than 250 Units Rs 4.35 Write a program to take no of units consumed from user and calcu…

Write a program to check eligibility of student for admission. Student should fulfill the following criteria for admission : 15/06/2019

Mathematics >= 50 Physics >= 45 Chemistry >= 60 Total of all subject >= 170 OR Total of Mathematics + Physics >= 120 Accept the marks of all the three subjects from the user and check if the student is eligible for admission. Print the message : Student is eligible for Admission OR Student is not eligible for admission void main() { int math,phy,che,total,totalmp; printf("\n\nEnter the marks of mathematics="); scanf("%d",&math); printf("\n\nEnter the marks of physics="); scanf("%d",&phy); printf("\n\nEnter the marks of chemistry="); scanf("%d",&che); total=math+phy+che; totalmp=math+phy; printf("\n\nTotal of all subject=%d",total); printf("\n\nTotal of mathematics and physics=%d",totalmp); if(math>=50&&phy>=45&&che>=60&&total>=170&&totalmp>=120) { printf("\n\n\n\n\nStudent is eligible for admission\n\n\n"); } else { printf("\n\n\n\n\nStudent is not eligible for admission\n\n\n"); } }
, List, , C Programming Example, Example, , LIst Stack, Stack, Queue, Queue, Queue, Ended Queue (Dequeue), Search, Search, Sort, Sort, Sort, Sort, Sort, Sort, Sort, Doubly Linked List, Singly Linked List, Linked Lists, Linked Lists, AND SEARCHING, , c programs, c language, Programming,

Write a program to check eligibility of student for admission. Student should fulfill the following criteria for admission : Mathematics >= 50 Physics >= 45 Chemistry >= 60 Total of all subject >= 170 OR Total of Mathematics + Physics >= 120 Accept the marks of all the three subjects from the user and chec…

Want your business to be the top-listed Computer & Electronics Service in Ahmednagar?
Click here to claim your Sponsored Listing.

Address


Ahmednagar
380024