Posts

AKTU PROGRAMING FOR PROBLEM SOLVING LAB ( ALL QUESTION )

Download PDF Download Your File Click the button below to download your PDF file: 📄 Download PDF Download All Question In PDF Form. 1. WAP that accepts the marks of 5 subjects and finds the sum and percentage marks obtained by the student.   #include <stdio.h> int main() {     int m, p, c, h, e;     printf("Enter Math Marks: ");     scanf("%d", &m);     printf("Enter Physics Marks: ");     scanf("%d", &p);     printf("Enter Chemestry Marks: ");     scanf("%d", &c);     printf("Enter English Marks: ");     scanf("%d", &e);     printf("Enter Hindi Marks: ");     scanf("%d", &h);     int total = m + p + c + h + e;     printf("Total Marks Obtained = %d", total);     float avg = total / 5.00;     printf("\nAverage of Marks = %.2f %%", avg); ...

FIRST SEM ALL RESOURCES - B.I.E.T. JHANSI

 1 SEM ALL RESOURCES - B.I.E.T. JHANSI 1. Structure of Resources A. Subjects Covered Engineering Mathematics -I Engineering Physics Basic Electrical Engineering Programming for Problem Solving Using C Environmental & Ecology B. Types of Resources Lecture Notes Lab Files and Readings Workshop PBL's Textbooks  FrontPages  Programming Questions  2. Resource Formats PDF Documents Drive Li nks Direct Download 3. Platforms for Sharing Google Drive Website/Blog 4. Collaboration & Tools Collaborate with Students/Teachers Use Tools : Canva for visuals, MS Word for note.

BIET PHYSICS TUTORIAL BY DR. VK SIR

BIET PHYSICS TUTORIAL BY DR. VK SIR. CLICK TO DOWNLOAD THANKS TO ME!

Array

Input age of n people and finding average. #include <stdio.h> int main() {     int s, sum = 0;     printf("Enter number element in array: ");     scanf("%d", &s);     int arr[s];     for (int i = 0; i < s; i++)     {         printf("Enter age person %d = ", i + 1);         scanf("%d", &arr[i]);         sum += arr[i];     }     for (int i = 0; i < s; i++)     {         printf("\nAge of person %d = %d", i + 1, arr[i]);     }     float avg = (float)sum / s;     printf("\nAverage age of people is %.2f.", avg);     return 0; }

Pattern with nested loop under construction

  Pattern - 1 { Enter number of rows: 5 *  * *  * * *  * * * *  * * * * *  } Toggle C Code #include <stdio.h> int main() { int n; printf("Enter number of rows: "); scanf("%d", &n); for (int i = 1; i <= n; i++) { for (int j = 1; j <= i; j++) { printf("* "); } printf("\n"); } }   Pattern - 2 { Enter number of rows: 5 1  1 2  1 2 3 1 2 3 4 1 2 3 4 5 } Toggle C Code #include <stdio.h> int main() { int n; printf("Enter number of rows: "); scanf("%d", &n); for (int i = 1; i <= n; i++) { for (int j = 1; j <= i; j++) { printf("%d ",j); } printf("\n"); } }   Pattern - 3 { Enter number of rows: 5 1  2 3  4 5 6 7 8 9 10 11 12 13 14 15 } Toggle C Code #include <stdio.h> int main() { int n; prin...

Binary , Decimal , Octal , Hexadecimal Numbers INTERCONVERSION

 BINARY TO DECIMAL NUMBER . #include <stdio.h> int main() {     int binary,rem = 0,base = 1,deci = 0;     printf("Enter any binary number: ");     scanf("%d", &binary);     int temp =  binary;     while (temp > 0)     {         rem = temp % 10;         deci += rem * base;         base *= 2;         temp /= 10;     }     printf("Binary number %d is equal to %d decimal number.",binary,deci);     return 0; }

AKTU PROGRAMING FOR PROBLEM SOLVING LAB ( ALL QUESTION )

Download PDF Download Your File Click the button below to download your PDF file: 📄 Download PDF Download All Question In PDF Form. 1. WAP that accepts the marks of 5 subjects and finds the sum and percentage marks obtained by the student.   #include <stdio.h> int main() {     int m, p, c, h, e;     printf("Enter Math Marks: ");     scanf("%d", &m);     printf("Enter Physics Marks: ");     scanf("%d", &p);     printf("Enter Chemestry Marks: ");     scanf("%d", &c);     printf("Enter English Marks: ");     scanf("%d", &e);     printf("Enter Hindi Marks: ");     scanf("%d", &h);     int total = m + p + c + h + e;     printf("Total Marks Obtained = %d", total);     float avg = total / 5.00;     printf("\nAverage of Marks = %.2f %%", avg); ...