bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

commit 3881f69259a164f02131585986b4799dfcbcedff
parent 2b04cc009dbc91b2ca8452b88c6edc27bf955d19
Author: AMIT DUTTA <amitdutta4255@gmail.com>
Date:   Tue,  7 Oct 2025 21:41:54 +0530

Delete tution-c directory
Diffstat:
Dtution-c/APC-PRAC-001.c | 17-----------------
Dtution-c/APC-PRAC-002.c | 16----------------
Dtution-c/APC-PRAC-003.c | 19-------------------
Dtution-c/APC-PRAC-004.c | 15---------------
Dtution-c/APC-PRAC-005.c | 19-------------------
Dtution-c/APC-PRAC-006.c | 18------------------
Dtution-c/APC-PRAC-007.c | 27---------------------------
Dtution-c/APC-PRAC-008.c | 18------------------
Dtution-c/APC-PRAC-009.c | 15---------------
Dtution-c/APC-PRAC-010.c | 18------------------
Dtution-c/APC-S-001.c | 11-----------
Dtution-c/APC-S-002.c | 8--------
Dtution-c/APC-S-003.c | 24------------------------
Dtution-c/APC-SPS-001.c | 21---------------------
Dtution-c/APC-SPS-002.c | 13-------------
Dtution-c/APC-SPS-003.c | 11-----------
Dtution-c/APC-SPS-004.c | 8--------
Dtution-c/APC-SPS-005.c | 13-------------
Dtution-c/APC-SPS-006.c | 12------------
Dtution-c/APC-SPS-007.c | 16----------------
Dtution-c/APC-SPS-008.c | 13-------------
Dtution-c/P001.c | 7-------
Dtution-c/P002.c | 7-------
Dtution-c/P003.c | 15---------------
Dtution-c/P004.c | 10----------
Dtution-c/P005.c | 14--------------
Dtution-c/P006.c | 11-----------
Dtution-c/P007.c | 16----------------
Dtution-c/P008.c | 18------------------
Dtution-c/P009.c | 23-----------------------
Dtution-c/P010.c | 23-----------------------
Dtution-c/P011.c | 18------------------
Dtution-c/P012.c | 14--------------
Dtution-c/P013.c | 15---------------
Dtution-c/P014.c | 17-----------------
Dtution-c/P015.c | 17-----------------
Dtution-c/P016.c | 13-------------
Dtution-c/P017.c | 17-----------------
Dtution-c/P018.c | 27---------------------------
Dtution-c/P019.c | 27---------------------------
Dtution-c/P020.c | 28----------------------------
Dtution-c/README.md | 51---------------------------------------------------
42 files changed, 0 insertions(+), 720 deletions(-)

diff --git a/tution-c/APC-PRAC-001.c b/tution-c/APC-PRAC-001.c @@ -1,17 +0,0 @@ -/* WAP to calculate area and perimeter of a rectangle -by accepting length and breadth as input. */ -// Author - Amit Dutta, Date - 18th SEP, 2025 - -#include<stdio.h> -int main() { - double length, breadth, area, perimeter; - printf("Enter the length and breadth of the Rectangle : "); - scanf("%lf %lf", &length, &breadth); - area = length * breadth; - perimeter = 2 * (length + breadth); - printf("\nArea of the Rectangle : %g" - "\nPerimeter of the Rectangle : %g", area, perimeter); - return 0; - -} - diff --git a/tution-c/APC-PRAC-002.c b/tution-c/APC-PRAC-002.c @@ -1,15 +0,0 @@ -/* WAP to calculate area of a circle using math library -method. Take radius of the circle as input. */ -/* Author - Amit Dutta, Date - 18th SEP, 2025 */ - -#include <stdio.h> -#include <math.h> -int main() -{ - double r, area; - printf("Enter the radius of the circle : "); - scanf("%lf", &r); - area = M_PI * pow(r, 2); - printf("\nArea of the circle : %g", area); - return 0; -}- \ No newline at end of file diff --git a/tution-c/APC-PRAC-003.c b/tution-c/APC-PRAC-003.c @@ -1,18 +0,0 @@ -/* WAP to accept diagonal of a square and calculate area, parimeter */ -/* Author - Amit Dutta, Date - 18th SEP, 2025 */ - -#include <stdio.h> -#include <math.h> -int main() -{ - double dia, side, area, peri; - printf("Enter the diagonal of the square : "); - scanf("%lf", &dia); - side = dia / sqrt(2); - area = pow(side, 2); - peri = 4 * side; - printf("\nArea of the square : %g" - "\nPerimeter of the square : %g", - area, peri); - return 0; -}- \ No newline at end of file diff --git a/tution-c/APC-PRAC-004.c b/tution-c/APC-PRAC-004.c @@ -1,14 +0,0 @@ -/* WAP to calculate and display radius of a circle by taking the area as input. */ -/* Author - Amit Dutta, Date - 18th SEP, 2025 */ - -#include <stdio.h> -#include <math.h> -int main() -{ - double r, area; - printf("Enter the area of the circle : "); - scanf("%lf", &area); - r = sqrt(area / M_PI); - printf("\nRadius of the circle : %g", r); - return 0; -}- \ No newline at end of file diff --git a/tution-c/APC-PRAC-005.c b/tution-c/APC-PRAC-005.c @@ -1,18 +0,0 @@ -/* WAP a program that accept number of days -as input and represent it as years, months and days. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ - -#include <stdio.h> -int main() -{ - int days, months, years, temp; - printf("Enter the No. of days : "); - scanf("%d", &days); - temp = days; - years = days / 365; - days = days % 365; - months = days / 30; - days = days % 30; - printf("%d Days = %d Years, %d Months, %d Days", temp, years, months, days); - return 0; -}- \ No newline at end of file diff --git a/tution-c/APC-PRAC-006.c b/tution-c/APC-PRAC-006.c @@ -1,17 +0,0 @@ -/* WAP that accept seconds as input and represent it an hours, minutes and seconds. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ - -#include <stdio.h> -int main() -{ - int sec, hours, minutes, temp; - printf("Enter the no of seconds : "); - scanf("%d", &sec); - temp = sec; - hours = sec / 3600; - sec = sec % 3600; - minutes = sec / 60; - sec = sec % 60; - printf("\n%d Seconds = %d Hours, %d Minutes, %d Seconds.", temp, hours, minutes, sec); - return 0; -}- \ No newline at end of file diff --git a/tution-c/APC-PRAC-007.c b/tution-c/APC-PRAC-007.c @@ -1,26 +0,0 @@ -/* WAP that accept basic salary of an employee and display gross salary, -net salary generated by below formula. - DA = 25% of the basic salary. - HRA = 12.5% of the basic salary. - PF = 10% of the basic salary. - gross salary = basic salary + da + hra - net salary = gross salary - pf -*/ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ - -#include <stdio.h> -int main() -{ - double bs, gs, ns, da, hra, pf; - printf("Enter the basic salary of the employee : "); - scanf("%lf", &bs); - da = bs * 0.25; - hra = bs * 0.125; - pf = bs * 0.10; - gs = bs + da + hra; - ns = gs - pf; - printf("\nGross Salary : %g" - "\nNet Salary : %g", - gs, ns); - return 0; -}- \ No newline at end of file diff --git a/tution-c/APC-PRAC-008.c b/tution-c/APC-PRAC-008.c @@ -1,17 +0,0 @@ -/* WAP to multiply and divide a number by 4 without -using multiplication and division operator. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ - -#include <stdio.h> -int main() -{ - int num, multi, div; - printf("Enter the number : "); - scanf("%d", &num); - multi = num << 2; - div = num >> 2; - printf("Multiplication : %d" - "\nDivision : %d", - multi, div); - return 0; -}- \ No newline at end of file diff --git a/tution-c/APC-PRAC-009.c b/tution-c/APC-PRAC-009.c @@ -1,14 +0,0 @@ -/* WAP to swap two integer variable without using Third variable. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ - -#include <stdio.h> -int main() -{ - int a = 4, b = 6; - printf("Before swap : A = %d and B = %d", a, b); - a = a ^ b; - b = a ^ b; - a = a ^ b; - printf("\nAfter swap : A = %d and B = %d", a, b); - return 0; -}- \ No newline at end of file diff --git a/tution-c/APC-PRAC-010.c b/tution-c/APC-PRAC-010.c @@ -1,17 +0,0 @@ -/* WAP to calculate and display the valve of the given expression : - (1/a^3) + (1/(b+2)^3) + (1/(c^4 + root(2))) - take a, b, c as input. -*/ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ - -#include <stdio.h> -#include <math.h> -int main() -{ - double a, b, c, result; - printf("Enter the value for a, b and c : "); - scanf("%lf %lf %lf", &a, &b, &c); - result = (1 / pow(a, 3)) + (1 / pow((b + 2), 3)) + (1 / (pow(c, 4) + sqrt(2))); - printf("\nResult = %g", result); - return 0; -}- \ No newline at end of file diff --git a/tution-c/APC-S-001.c b/tution-c/APC-S-001.c @@ -1,11 +0,0 @@ -#include<stdio.h> -int main() { - int a = 9, b = 4, c; - c = a + b; - printf("A + B = %d\n", c); - c = a / b; - printf("A / B = %d\n", c); - c = a % b; - printf("A %% B = %d\n", c); - return 0; -} diff --git a/tution-c/APC-S-002.c b/tution-c/APC-S-002.c @@ -1,8 +0,0 @@ -#include<stdio.h> -int main() { - int a = 5, b = 5, c = 10; - printf("a = b = %d\n", a == b); - printf("a > b = %d\n", a > b); - printf("a < b = %d\n", a < b); - return 0; -} diff --git a/tution-c/APC-S-003.c b/tution-c/APC-S-003.c @@ -1,24 +0,0 @@ -#include <stdio.h> -int main() { - int a = 5, b = 5, c = 10, result; - - result = (a == b) && (c > b); - printf("Result is %d\n", result); - - result = (a == b) && (c < b); - printf("Result is %d\n", result); - - result = (a != b) || (c < b); - printf("Result is %d\n", result); - - result = (a != b) || (c < b); - printf("Result is %d\n", result); - - result = !(a != b); - printf("Result is %d\n", result); - - result = !(a == b); - printf("Result is %d\n", result); - - return 0; -} diff --git a/tution-c/APC-SPS-001.c b/tution-c/APC-SPS-001.c @@ -1,21 +0,0 @@ -// WAP to perform arithmatic operation on integer data - -#include<stdio.h> -int main() { - int a, b, sum, sub, multi, div, mod; - printf("Enter 1st number : "); - scanf("%d", &a); - printf("Enter 2nd number : "); - scanf("%d", &b); - sum = a + b; - sub = a - b; - multi = a * b; - div = a / b; - mod = a % b; - printf("\nSum = %d", sum); - printf("\nSubtraction = %d", sub); - printf("\nMultiplication = %d", multi); - printf("\nDivision = %d", div); - printf("\nModulas = %d", div); - return 0; -} diff --git a/tution-c/APC-SPS-002.c b/tution-c/APC-SPS-002.c @@ -1,13 +0,0 @@ -/* WAP to swap two integers. Display both numbers -before and after swap */ - -#include<stdio.h> -int main() { - int a = 10, b = 20, temp; - printf("Before swap A : %d, B : %d", a, b); - temp = a; - a = b; - b = temp; - printf("\nAfter swap A : %d, B : %d", a, b); - return 0; -} diff --git a/tution-c/APC-SPS-003.c b/tution-c/APC-SPS-003.c @@ -1,11 +0,0 @@ -/* Bitwise AND '&' */ - -#include<stdio.h> -int main() { - unsigned int a = 4, b = 5, c = 6; - unsigned int x, y; - x = a & b; - y = b & c; - printf("x = %u y = %u", x, y); - return 0; -} diff --git a/tution-c/APC-SPS-004.c b/tution-c/APC-SPS-004.c @@ -1,8 +0,0 @@ -#include<stdio.h> -int main() { - int x = 25, y = 19, z; - z = x - y; - z = z & x ; - printf("Z = %d", z); - return 0; -} diff --git a/tution-c/APC-SPS-005.c b/tution-c/APC-SPS-005.c @@ -1,13 +0,0 @@ -/* Bitwise OR '|' */ - -#include<stdio.h> -int main() { - int x = 12, y = 14, z = 10, res; - x++; - z++; - x = x + y + z; - res = x | y; - z = res | z; - printf("x = %d y = %d z = %d res = %d", x, y, z, res); - return 0; -} diff --git a/tution-c/APC-SPS-006.c b/tution-c/APC-SPS-006.c @@ -1,12 +0,0 @@ -/* Bitwise NOT '~' */ - -#include<stdio.h> -int main() { - int x = 12, y = 15, z = 21; - int res, res1, res2; - res = x > 10; - res1 = ~res; - res2 = ~x; - printf("REs = %d, Res1 = %d, Res2 = %d", res, res1, res2); - return 0; -} diff --git a/tution-c/APC-SPS-007.c b/tution-c/APC-SPS-007.c @@ -1,16 +0,0 @@ -/* WAP to check a number is even or odd using bitwise operator */ - -#include<stdio.h> -int main() { - int x, res = 1; - printf("Enter a number : "); - scanf("%d", &x); - res = res & x; - if (res == 0) { - printf("\nInput %d is a even number.", x); - } - else { - printf("\nInput %d is a odd number.", x); - } - return 0; -} diff --git a/tution-c/APC-SPS-008.c b/tution-c/APC-SPS-008.c @@ -1,13 +0,0 @@ -/* WAP to calculate area of circle by accepting radius as input */ -/* Author : Amit Dutta, Date : 15th September, 2025 */ - -#include<stdio.h> -#include<math.h> -int main() { - double r, area; - printf("Enter the radius of circle : "); - scanf("%lf", &r); - area = M_PI * r * r; - printf("\nArea : %lf", area); - return 0; -} diff --git a/tution-c/P001.c b/tution-c/P001.c @@ -1,7 +0,0 @@ -//sample code - -#include<stdio.h> -int main() { - printf("Hello world"); - return 0; -} diff --git a/tution-c/P002.c b/tution-c/P002.c @@ -1,7 +0,0 @@ -//sample code with a new line charecter - -#include<stdio.h> -int main() { - printf("Hello\nworld"); - return 0; -} diff --git a/tution-c/P003.c b/tution-c/P003.c @@ -1,15 +0,0 @@ -//WAP to perform addtion and multiplication of two integer numbers - -#include<stdio.h> -int main() { - int a, b, sum, multi; - printf("Enter the 1st number : "); - scanf("%d",&a); - printf("Enter the 2nd number : "); - scanf("%d",&b); - sum = a + b; - multi = a * b; - printf("\nSum = %d" - "\nMultiplication = %d",sum,multi); - return 0; -} diff --git a/tution-c/P004.c b/tution-c/P004.c @@ -1,10 +0,0 @@ -/* WAP to find and display the value of given expression : -((x+3)/4) - ((2x+4)/3) taking the value of x = 5 */ - -#include<stdio.h> -int main() { - double x =5, result; - result = ((x + 3) / 4) - ((2 * x + 4) / 3); - printf("Result = %lf",result); - return 0; -} diff --git a/tution-c/P005.c b/tution-c/P005.c @@ -1,14 +0,0 @@ -/* A person is paid Rs. 455 for each day he works and fined -Rs. 150 for each day he remains absent. WAP to calculate his -monthly income taking the number of days present as input. */ - -#include<stdio.h> -int main() { - int daily_wage = 455, fine = 150, present, absent, income; - printf("No of days present : "); - scanf("%d", &present); - absent = 30 - present; - income = (present * 455) - (absent * 150); - printf("\nIncome : %d",income); - return 0; -} diff --git a/tution-c/P006.c b/tution-c/P006.c @@ -1,11 +0,0 @@ -/* The normal temperature of human body -is 98.6 Degree Fahrenheit. WAP to convert the temperature -to Degree Celcius and display the output. */ - -#include<stdio.h> -int main() { - double f = 98.6, c; - c = ((f - 32) * 5) / 9; - printf("Temperature in Celcius is : %lf",c); - return 0; -} diff --git a/tution-c/P007.c b/tution-c/P007.c @@ -1,16 +0,0 @@ -/* A shopkeeper offers 10% discount on printed -price of a digital camera. However a customer has -to pay 6% GST on the remaining amount. WAP to -calculate and display the amount to paid by the -customer, taking the printed price as input. */ - -#include<stdio.h> -int main() { - double mrp, final_price, temp; - printf("Enter the printed price : "); - scanf("%lf", &mrp); - temp = mrp * 0.90; - final_price = temp * 1.06; - printf("\nCustomer have to pay : %lf", final_price); - return 0; -} diff --git a/tution-c/P008.c b/tution-c/P008.c @@ -1,18 +0,0 @@ -/* A shopkeeper offers 30% discount on purchasing an -item whereas the other shopkeeper offers 2 successive -discount of 20% and 10% for purchasing the same item. -WAP to caompute and display the discounted price of the -item by taking the price as input. */ - -#include<stdio.h> -int main() { - double mrp, shop1, shop2, temp; - printf("Enter the price : "); - scanf("%lf", &mrp); - shop1 = mrp * 0.70; - temp = mrp * 0.80; - shop2 = temp * 0.90; - printf("\nShopkeeper 1 price : %lf" - "\nShopkeeper 2 price : %lf",shop1,shop2); - return 0; -} diff --git a/tution-c/P009.c b/tution-c/P009.c @@ -1,23 +0,0 @@ -/* WAP to calculate gross and net salary -by accepting basic salary as input. -IMP : DA = 30% of Basic Pay - HRA = 20% of Basic Pay - PF = 12.5% of Basic Pay - Gross Salary = Basic Pay + DA + HRA - Net Salary = Gross Salary - PF -*/ - -#include<stdio.h> -int main() { - double bs, da, hra, pf, gs, ns; - printf("Enter the Basic Salary : "); - scanf("%lf", &bs); - da = bs * 0.3; - hra = bs * 0.2; - pf = bs * 0.125; - gs = bs + da + hra; - ns = gs - pf; - printf("\nGross Salary : %lf" - "\nNet Salary : %lf", gs, ns); - return 0; -} diff --git a/tution-c/P010.c b/tution-c/P010.c @@ -1,23 +0,0 @@ -/* WAP to find and display the difference -between compound Interest and Simple Interest. -Take principle amount as input. -Hint : si = (p * r * t) / 100 - a = p * ((1 + (r / 100)) ^ t) - ci = a - p -*/ - -#include<stdio.h> -#include<math.h> -int main() { - double p, r, t, si, a, ci, dif; - printf("Enter the principle amount, rate of interest, time in year : "); - scanf("%lf %lf %lf", &p, &r, &t); - si = (p * r * t) / 100; - a = p * pow((1 + (r / 100)), t); - ci = a - p; - dif = ci - si; - printf("\nSimple Interest : %lf" - "\nCompound Interest : %lf" - "\nInterest Difference : %lf", si, ci, dif); - return 0; -} diff --git a/tution-c/P011.c b/tution-c/P011.c @@ -1,18 +0,0 @@ -/* The time period of a simple pendulam is -given by the formula : - t = 2 * pi * square_root(l / g) -WAP to calculate T take length(L) and gravity -as input -*/ - -#include<stdio.h> -#include<math.h> -int main() { - double l, g, t; - printf("Enter the Length and Gravity measures : "); - scanf("%lf %lf", &l, &g); - t = 2 * M_PI * sqrt(l / g); - // using M_PI variable for PI value from math.h header file - printf("\nTime Period : %lf", t); - return 0; -} diff --git a/tution-c/P012.c b/tution-c/P012.c @@ -1,14 +0,0 @@ -/* WAP to swap two integer variable without -using third variable */ -// using Approch Mode : simple, slow, time consuming - -#include<stdio.h> -int main() { - int a = 4, b = 6; - printf("Before Swap : A = %d, B = %d", a, b); - a = a + b; - b = a - b; - a = a - b; - printf("\nAfter Swap : A = %d, B = %d", a, b); - return 0; -} diff --git a/tution-c/P013.c b/tution-c/P013.c @@ -1,15 +0,0 @@ -/* WAP to swap two integer variable without -using third variable */ -// using Approch Mode : complex, fast, less time consumimg - -#include<stdio.h> -#include<math.h> -int main() { - int a = 4, b = 6; - printf("Before Swap : A = %d, B = %d", a, b); - a = a ^ b; - b = a ^ b; - a = a ^ b; - printf("\nAfter Swap : A = %d, B = %d", a, b); - return 0; -} diff --git a/tution-c/P014.c b/tution-c/P014.c @@ -1,17 +0,0 @@ -/* WAP to accept the diagonal of -square. Find and display the area and -perimeter of the square. */ - -#include<stdio.h> -#include<math.h> -int main() { - double d, side, area, per; - printf("Enter the diagonal : "); - scanf("%lf", &d); - side = d / sqrt (2); - area = side * side; - per = 4 * side; - printf("\nArea of the Square : %lf" - "\nPerimeter of the Square : %lf", area, per); - return 0; -} diff --git a/tution-c/P015.c b/tution-c/P015.c @@ -1,17 +0,0 @@ -/*WAP to accept number of days and -display it after converting into -number of years, months and days */ - -#include<stdio.h> -int main() { - int day, month, year, temp; - printf("Enter the number of days : "); - scanf("%d", &day); - temp = day; - year = day / 365; - day = day % 365; - month = day / 30; - day = day % 30; - printf("\n%d Days = %d Years %d Months %d Days", temp, year, month, day); - return 0; -} diff --git a/tution-c/P016.c b/tution-c/P016.c @@ -1,13 +0,0 @@ -/* WAP to calculate and display radius of a -circle by taking the area as input */ - -#include<stdio.h> -#include<math.h> -int main() { - double area, r; - printf("Enter the area of a circle : "); - scanf("%lf", &area); - r = sqrt((7 * area) / 22); - printf("\nRadius : %lf", r); - return 0; -} diff --git a/tution-c/P017.c b/tution-c/P017.c @@ -1,16 +0,0 @@ -/* Find maximum between three number. */ - -#include <stdio.h> -int main() -{ - int a, b, c, max; - printf("Enter the value for a, b, c : "); - scanf("%d %d %d", &a, &b, &c); - max = a; - if (max < b) - max = b; - if (max < c) - max = c; - printf("Maximum : %d", max); - return 0; -}- \ No newline at end of file diff --git a/tution-c/P018.c b/tution-c/P018.c @@ -1,26 +0,0 @@ -/* WAP to input the cost price and selling price and -calculate profit, profit percentage, loss percentage or -display the manage nither profit nor loss. */ - -#include <stdio.h> -int main() -{ - double cost, sell, pro, prop, loss, lossp; - printf("Enter the cost and selling price : "); - scanf("%lf %lf", &cost, &sell); - if (sell > cost) - { - pro = sell - cost; - prop = (pro / cost) * 100; - printf("Profit : RS %g, Profit Percentage : %g", pro, prop); - } - else if (sell < cost) - { - loss = cost - sell; - lossp = (loss / cost) * 100; - printf("Loss : RS %g, Loss Percentage : %g", loss, lossp); - } - else - printf("Neither loss nor Profit."); - return 0; -}- \ No newline at end of file diff --git a/tution-c/P019.c b/tution-c/P019.c @@ -1,26 +0,0 @@ -/* WAP to input the distance covered and calculate -the amount to be paid by the passanger. - Distance Rate - =<5KM RS 90 - next 10KM RS 20/KM - next 10KM RS 10/KM - more than 25KM RS 9/KM -*/ - -#include <stdio.h> -int main() -{ - double dis, amt; - printf("Enter the distance : "); - scanf("%lf", &dis); - if (dis <= 5.0) - amt = 90.0; - else if (dis > 5.0 && dis <= 15.0) - amt = 90.0 + (dis - 5.0) * 20; - else if (dis > 15.0 && dis <= 25.0) - amt = 90.0 + 200.0 + (dis - 15.0) * 10; - else if (dis > 25.0) - amt = 90.0 + 200.0 + 100.0 + (dis - 25.0) * 9; - printf("\nAmount to be paid : %g", amt); - return 0; -}- \ No newline at end of file diff --git a/tution-c/P020.c b/tution-c/P020.c @@ -1,27 +0,0 @@ -/* WAP to calculate and display the maturity amount -taking the sum and number of days as input. - No. of Days Rate of Interest - Upto 180 days 5.5 % - 181 to 364 days 7.5 % - exact 365 days 9.0 % - more than 365 days 8.5 % -*/ - -#include <stdio.h> -int main() -{ - double nod, amt, s, i; - printf("Enter the amount and the time in days : "); - scanf("%lf %lf", &s, &nod); - if (nod <= 180) - i = (s * 5.5 * (nod / 365)) / 100; - else if (nod > 180.0 && nod <= 364.0) - i = (s * 7.5 * (nod / 365)) / 100; - else if (nod == 365.0) - i = (s * 9.0 * 1) / 100; - else if (nod > 365.0) - i = (s * 8.5 * (nod / 365)) / 100; - amt = s + i; - printf("Amount to be paid : %g", amt); - return 0; -}- \ No newline at end of file diff --git a/tution-c/README.md b/tution-c/README.md @@ -1,51 +0,0 @@ -# C Programming Exercises: Tution Collection 📚 - -This repository contains a collection of C programs, organized by their source of origin from my tuition and lab classes. The aim is to create a clear and well-documented archive of all my work for easy reference. - -## Project Overview - -This folder serves as a centralized hub for all my C programming exercises. The files are meticulously named using a specific prefix to easily identify their source, as detailed in the section below. - -## File Naming Convention - -Each C source file (`.c`) follows a clear prefix system to indicate its origin. A quick glance at the filename tells you which class or lab session the code belongs to. - -| Prefix | Description | Source | -| :--- | :--- | :--- | -| **`APC-S`** | Programs from class sessions with Soumi Madam. | Soumi Madam's Class | -| **`APC-SPS`** | Programs from class sessions with SPS Sir. | SPS Sir's Class | -| **`APC-PRAC`** | Programs completed during practical lab sessions. | Lab Practical | -| **`P`** | Programs from private tuition classes at Eduincs. | Eduincs (Private Tuition) | - -## Getting Started - -### Prerequisites - -You need a C compiler installed on your system to compile and run these programs. **[GCC](https://gcc.gnu.org/)** is highly recommended. - -### How to Compile and Run - -To compile and run any C program in this directory, follow these simple steps using your terminal: - -1. **Navigate to the `tution-c` folder:** - ```bash - cd tution-c - ``` - -2. **Compile the program:** - ```bash - gcc your_file_name.c -o your_file_name - ``` - (Replace `your_file_name.c` with the actual file name, e.g., `APC-S-001.c`) - -3. **Run the executable:** - ```bash - ./your_file_name - ``` - (Replace `your_file_name` with the name of the executable you just created.) - ---- - -## License - -All programs in this repository are licensed under the MIT License. You can find the full license details in the [main `LICENSE` file](https://www.google.com/search?q=../LICENSE).
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror