commit 67d6432b25e66ba70d1d639a4e3c938e6d7939f4
parent 8bf6bee4fe31c72b4819123379c3fcbaeb7aff61
Author: Amit Dutta <amitdutta4255@gmail.com>
Date: Wed, 14 Jan 2026 19:39:43 +0530
[2026-01-14] : .\{root} : updated README.md (added the new website link), added college works
Diffstat:
7 files changed, 609 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
@@ -22,7 +22,7 @@ Any unauthorized use for academic submission is a violation of **Copyright Law**
---
🔗 **Website**
For better viewing experience:
-👉 [notamitgamer.github.io/bsc](https://notamitgamer.github.io/bsc) (Preferred) ***or*** [aranag.site/bsc](https://amit.is-a.dev/bsc)
+👉 [amit.is-a.dev/bsc](https://amit.is-a.dev/bsc) (Preferred) ***or*** [notamitgamer.github.io/bsc](https://notamitgamer.github.io/bsc)
---
diff --git a/Semester_1/tuition-c/APC-S-014.c b/Semester_1/tuition-c/APC-S-014.c
@@ -0,0 +1,48 @@
+/*
+ * ======================================================================================
+ * COPYRIGHT (C) 2026 AMIT DUTTA. ALL RIGHTS RESERVED.
+ * Repository : https://github.com/notamitgamer/bsc
+ * License : ESAL-1.0 ( https://esal.amit.is-a.dev )
+ * ======================================================================================
+ * [ ACADEMIC INTEGRITY WARNING ]
+ * The use of this code for academic assignments at ANY educational institution,
+ * college, or university is STRICTLY PROHIBITED.
+ * Any other use requires prior written permission from the author.
+ * Violations will be reported as academic misconduct.
+ * ======================================================================================
+ */
+
+/* Write a program to store roll no, name and marks of 5 students then print it. use structure */
+
+#include <stdio.h>
+#include <string.h>
+
+struct student
+{
+ int roll_no;
+ char name[30];
+ float marks;
+};
+
+int main()
+{
+ int i, stu_count = 3;
+ struct student s[stu_count];
+ for (i = 0; i < stu_count; i++)
+ {
+ printf("\nEnter the Roll Number: ");
+ scanf("%d", &s[i].roll_no);
+ getchar();
+ printf("Enter the name: ");
+ gets(s[i].name);
+ printf("Enter the Marks: ");
+ scanf("%f", &s[i].marks);
+ }
+ printf("\n%-10s %-20s %-10s\n", "ROLL", "NAME", "MARKS");
+ printf("%-10s %-20s %-10s\n", "====", "====", "=====");
+ for (i = 0; i < stu_count; i++)
+ {
+ printf("%-10d %-20s %-10.2f\n", s[i].roll_no, s[i].name, s[i].marks);
+ }
+ return 0;
+}+
\ No newline at end of file
diff --git a/Semester_1/tuition-c/P066.c b/Semester_1/tuition-c/P066.c
@@ -0,0 +1,43 @@
+/*
+ * ======================================================================================
+ * COPYRIGHT (C) 2026 AMIT DUTTA. ALL RIGHTS RESERVED.
+ * Repository : https://github.com/notamitgamer/bsc
+ * License : ESAL-1.0 ( https://esal.amit.is-a.dev )
+ * ======================================================================================
+ * [ ACADEMIC INTEGRITY WARNING ]
+ * The use of this code for academic assignments at ANY educational institution,
+ * college, or university is STRICTLY PROHIBITED.
+ * Any other use requires prior written permission from the author.
+ * Violations will be reported as academic misconduct.
+ * ======================================================================================
+ */
+
+/* WAP to find the length of a string using
+ i) Library Method
+ ii) User defined method
+*/
+
+#include <stdio.h>
+#include <string.h>
+
+int sLength(char str[])
+{
+ int i = 0;
+ while (str[i] != '\0')
+ {
+ i++;
+ }
+ return i;
+}
+
+int main()
+{
+ char str[30];
+ int len;
+ printf("Enter the string: ");
+ gets(str);
+ len = strlen(str);
+ printf("Length of the string: %d", len);
+ printf("\nLength of the string (U-D): %d", len);
+ return 0;
+}+
\ No newline at end of file
diff --git a/Semester_1/tuition-c/P067.c b/Semester_1/tuition-c/P067.c
@@ -0,0 +1,45 @@
+/*
+ * ======================================================================================
+ * COPYRIGHT (C) 2026 AMIT DUTTA. ALL RIGHTS RESERVED.
+ * Repository : https://github.com/notamitgamer/bsc
+ * License : ESAL-1.0 ( https://esal.amit.is-a.dev )
+ * ======================================================================================
+ * [ ACADEMIC INTEGRITY WARNING ]
+ * The use of this code for academic assignments at ANY educational institution,
+ * college, or university is STRICTLY PROHIBITED.
+ * Any other use requires prior written permission from the author.
+ * Violations will be reported as academic misconduct.
+ * ======================================================================================
+ */
+
+/* Write a program using function which concatenates two string s1 and s2 in to a third string */
+
+#include <stdio.h>
+
+void string_concat(char *s3, char s1[], char s2[])
+{
+ int l1, l2, i, j, k;
+ i = j = k = 0;
+ l1 = strlen(s1);
+ l2 = strlen(s2);
+ s3 = (char *)malloc((l1 + l2 + 1) * sizeof(char));
+ while (s1[i] != '\0')
+ {
+ s3[k++] = s1[i++];
+ }
+ while (s2[j] != '\0')
+ {
+ s3[k++] = s2[j++];
+ }
+ s3[k] = '\0';
+ puts(s3);
+}
+
+int main()
+{
+ char s1[] = "JAVA";
+ char s2[] = "PYTHON";
+ char *s3 = NULL;
+ string_concat(s3, s1, s2);
+ return 0;
+}+
\ No newline at end of file
diff --git a/Semester_1/tuition-c/P068.c b/Semester_1/tuition-c/P068.c
@@ -0,0 +1,54 @@
+/*
+ * ======================================================================================
+ * COPYRIGHT (C) 2026 AMIT DUTTA. ALL RIGHTS RESERVED.
+ * Repository : https://github.com/notamitgamer/bsc
+ * License : ESAL-1.0 ( https://esal.amit.is-a.dev )
+ * ======================================================================================
+ * [ ACADEMIC INTEGRITY WARNING ]
+ * The use of this code for academic assignments at ANY educational institution,
+ * college, or university is STRICTLY PROHIBITED.
+ * Any other use requires prior written permission from the author.
+ * Violations will be reported as academic misconduct.
+ * ======================================================================================
+ */
+
+/* Write a c program that perform the operation of strcmp() */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+int string_compare1(char s1[], char s2[])
+{
+ int i, c, cmp = 0, p = 0;
+ i = 0;
+ while (s1[i] != '\0' && s2[i] != '\0')
+ {
+ if (s1[i] != s2[i])
+ {
+ cmp = s1[i] - s2[i];
+ p = 1;
+ break;
+ }
+ i++;
+ }
+ c = s1[i] != '\0' ? s1[i] : (-1) * s2[i];
+ return p == 1 ? cmp : c;
+}
+int string_compare2(char *s1, char *s2)
+{
+ while (*s1 != '\0' && (*s1 == *s2))
+ {
+ s1++;
+ s2++;
+ }
+ return *s1 - *s2;
+}
+
+int main()
+{
+ char str1[] = "AMIT";
+ char str2[] = "Amit";
+ printf("Result 1 = %d", string_compare1(str1, str2));
+ printf("\nResult 2 = %d", string_compare2(str1, str2));
+ return 0;
+}+
\ No newline at end of file
diff --git a/Semester_1/tuition-c/P069.c b/Semester_1/tuition-c/P069.c
@@ -0,0 +1,74 @@
+/*
+ * ======================================================================================
+ * COPYRIGHT (C) 2026 AMIT DUTTA. ALL RIGHTS RESERVED.
+ * Repository : https://github.com/notamitgamer/bsc
+ * License : ESAL-1.0 ( https://esal.amit.is-a.dev )
+ * ======================================================================================
+ * [ ACADEMIC INTEGRITY WARNING ]
+ * The use of this code for academic assignments at ANY educational institution,
+ * college, or university is STRICTLY PROHIBITED.
+ * Any other use requires prior written permission from the author.
+ * Violations will be reported as academic misconduct.
+ * ======================================================================================
+ */
+
+/* Write a program using user defined method to implement the following
+ JAVA PROG Mastery -> JPM
+ java prog mastery -> JPM
+ Acharya Prafulla Chandra -> JPM
+*/
+
+#include <stdio.h>
+#include <ctype.h>
+
+void _short_1(char str[])
+{
+ int i = 0, j = 0;
+ char s[10];
+ if (str[0] != '\0' && str[0] != ' ')
+ {
+ s[j] = toupper(str[j]);
+ i++;
+ j++;
+ }
+ while (str[i] != '\0')
+ {
+ if (str[i] == ' ')
+ {
+ s[j] = toupper(str[i + 1]);
+ i++;
+ j++;
+ }
+ i++;
+ }
+ s[j] = '\0';
+ printf("\nResult 1: %s", s);
+}
+
+void _short_2(char str[])
+{
+ int i, j;
+ char strnew[10];
+ strnew[0] = toupper(str[0]);
+ i = j = 1;
+ while (str[i] != '\0')
+ {
+ if (str[i] == ' ')
+ {
+ strnew[j++] = toupper(str[i + 1]);
+ }
+ i++;
+ }
+ strnew[j] = '\0';
+ printf("\nResult 2: %s", strnew);
+}
+
+int main()
+{
+ char str[30];
+ printf("Enter the string: ");
+ gets(str);
+ _short_1(str);
+ _short_2(str);
+ return 0;
+}+
\ No newline at end of file
diff --git a/docs/index.html b/docs/index.html
@@ -14081,6 +14081,69 @@ double average(int marks[10])
</div>
<div class="file-item flex items-center justify-between px-3 py-2 hover:bg-white hover:shadow-sm rounded-lg transition-all group border border-transparent hover:border-slate-100 mb-1">
+ <div class="flex items-center gap-2.5 min-w-0 cursor-pointer flex-1" onclick="showCode('code-Semester_1-tuition-c-APC-S-014-c', 'APC-S-014.c', 'https://github.com/notamitgamer/bsc/blob/main/Semester_1/tuition-c/APC-S-014.c')">
+ <svg class="w-4 h-4 text-slate-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
+ </svg>
+ <span class="text-sm text-slate-600 font-medium group-hover:text-blue-600 truncate">APC-S-014.c</span>
+ </div>
+ <div class="flex items-center gap-2 opacity-0 group-hover:opacity-100 transition-opacity">
+ <a href="https://github.com/notamitgamer/bsc/blob/main/Semester_1/tuition-c/APC-S-014.c" target="_blank" class="p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-100 rounded-md" title="View on GitHub">
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-2.126 1.029-2.935-.103-.253-.446-1.372.097-2.897 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.525.202 2.644.1 2.897.64.809 1.026 1.841 1.026 2.935 0 3.847-2.337 4.687-4.565 4.935.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd"></path></svg>
+ </a>
+ </div>
+ <!-- Embedded Code Storage -->
+ <div id="code-Semester_1-tuition-c-APC-S-014-c" style="display:none;">/*
+ * ======================================================================================
+ * COPYRIGHT (C) 2026 AMIT DUTTA. ALL RIGHTS RESERVED.
+ * Repository : https://github.com/notamitgamer/bsc
+ * License : ESAL-1.0 ( https://esal.amit.is-a.dev )
+ * ======================================================================================
+ * [ ACADEMIC INTEGRITY WARNING ]
+ * The use of this code for academic assignments at ANY educational institution,
+ * college, or university is STRICTLY PROHIBITED.
+ * Any other use requires prior written permission from the author.
+ * Violations will be reported as academic misconduct.
+ * ======================================================================================
+ */
+
+/* Write a program to store roll no, name and marks of 5 students then print it. use structure */
+
+#include <stdio.h>
+#include <string.h>
+
+struct student
+{
+ int roll_no;
+ char name[30];
+ float marks;
+};
+
+int main()
+{
+ int i, stu_count = 3;
+ struct student s[stu_count];
+ for (i = 0; i < stu_count; i++)
+ {
+ printf("\nEnter the Roll Number: ");
+ scanf("%d", &s[i].roll_no);
+ getchar();
+ printf("Enter the name: ");
+ gets(s[i].name);
+ printf("Enter the Marks: ");
+ scanf("%f", &s[i].marks);
+ }
+ printf("\n%-10s %-20s %-10s\n", "ROLL", "NAME", "MARKS");
+ printf("%-10s %-20s %-10s\n", "====", "====", "=====");
+ for (i = 0; i < stu_count; i++)
+ {
+ printf("%-10d %-20s %-10.2f\n", s[i].roll_no, s[i].name, s[i].marks);
+ }
+ return 0;
+}</div>
+ </div>
+
+ <div class="file-item flex items-center justify-between px-3 py-2 hover:bg-white hover:shadow-sm rounded-lg transition-all group border border-transparent hover:border-slate-100 mb-1">
<div class="flex items-center gap-2.5 min-w-0 cursor-pointer flex-1" onclick="showCode('code-Semester_1-tuition-c-APC-SPS-001-c', 'APC-SPS-001.c', 'https://github.com/notamitgamer/bsc/blob/main/Semester_1/tuition-c/APC-SPS-001.c')">
<svg class="w-4 h-4 text-slate-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
@@ -18420,6 +18483,282 @@ void str_rev(char str[])
}</div>
</div>
+ <div class="file-item flex items-center justify-between px-3 py-2 hover:bg-white hover:shadow-sm rounded-lg transition-all group border border-transparent hover:border-slate-100 mb-1">
+ <div class="flex items-center gap-2.5 min-w-0 cursor-pointer flex-1" onclick="showCode('code-Semester_1-tuition-c-P066-c', 'P066.c', 'https://github.com/notamitgamer/bsc/blob/main/Semester_1/tuition-c/P066.c')">
+ <svg class="w-4 h-4 text-slate-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
+ </svg>
+ <span class="text-sm text-slate-600 font-medium group-hover:text-blue-600 truncate">P066.c</span>
+ </div>
+ <div class="flex items-center gap-2 opacity-0 group-hover:opacity-100 transition-opacity">
+ <a href="https://github.com/notamitgamer/bsc/blob/main/Semester_1/tuition-c/P066.c" target="_blank" class="p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-100 rounded-md" title="View on GitHub">
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-2.126 1.029-2.935-.103-.253-.446-1.372.097-2.897 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.525.202 2.644.1 2.897.64.809 1.026 1.841 1.026 2.935 0 3.847-2.337 4.687-4.565 4.935.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd"></path></svg>
+ </a>
+ </div>
+ <!-- Embedded Code Storage -->
+ <div id="code-Semester_1-tuition-c-P066-c" style="display:none;">/*
+ * ======================================================================================
+ * COPYRIGHT (C) 2026 AMIT DUTTA. ALL RIGHTS RESERVED.
+ * Repository : https://github.com/notamitgamer/bsc
+ * License : ESAL-1.0 ( https://esal.amit.is-a.dev )
+ * ======================================================================================
+ * [ ACADEMIC INTEGRITY WARNING ]
+ * The use of this code for academic assignments at ANY educational institution,
+ * college, or university is STRICTLY PROHIBITED.
+ * Any other use requires prior written permission from the author.
+ * Violations will be reported as academic misconduct.
+ * ======================================================================================
+ */
+
+/* WAP to find the length of a string using
+ i) Library Method
+ ii) User defined method
+*/
+
+#include <stdio.h>
+#include <string.h>
+
+int sLength(char str[])
+{
+ int i = 0;
+ while (str[i] != '\0')
+ {
+ i++;
+ }
+ return i;
+}
+
+int main()
+{
+ char str[30];
+ int len;
+ printf("Enter the string: ");
+ gets(str);
+ len = strlen(str);
+ printf("Length of the string: %d", len);
+ printf("\nLength of the string (U-D): %d", len);
+ return 0;
+}</div>
+ </div>
+
+ <div class="file-item flex items-center justify-between px-3 py-2 hover:bg-white hover:shadow-sm rounded-lg transition-all group border border-transparent hover:border-slate-100 mb-1">
+ <div class="flex items-center gap-2.5 min-w-0 cursor-pointer flex-1" onclick="showCode('code-Semester_1-tuition-c-P067-c', 'P067.c', 'https://github.com/notamitgamer/bsc/blob/main/Semester_1/tuition-c/P067.c')">
+ <svg class="w-4 h-4 text-slate-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
+ </svg>
+ <span class="text-sm text-slate-600 font-medium group-hover:text-blue-600 truncate">P067.c</span>
+ </div>
+ <div class="flex items-center gap-2 opacity-0 group-hover:opacity-100 transition-opacity">
+ <a href="https://github.com/notamitgamer/bsc/blob/main/Semester_1/tuition-c/P067.c" target="_blank" class="p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-100 rounded-md" title="View on GitHub">
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-2.126 1.029-2.935-.103-.253-.446-1.372.097-2.897 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.525.202 2.644.1 2.897.64.809 1.026 1.841 1.026 2.935 0 3.847-2.337 4.687-4.565 4.935.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd"></path></svg>
+ </a>
+ </div>
+ <!-- Embedded Code Storage -->
+ <div id="code-Semester_1-tuition-c-P067-c" style="display:none;">/*
+ * ======================================================================================
+ * COPYRIGHT (C) 2026 AMIT DUTTA. ALL RIGHTS RESERVED.
+ * Repository : https://github.com/notamitgamer/bsc
+ * License : ESAL-1.0 ( https://esal.amit.is-a.dev )
+ * ======================================================================================
+ * [ ACADEMIC INTEGRITY WARNING ]
+ * The use of this code for academic assignments at ANY educational institution,
+ * college, or university is STRICTLY PROHIBITED.
+ * Any other use requires prior written permission from the author.
+ * Violations will be reported as academic misconduct.
+ * ======================================================================================
+ */
+
+/* Write a program using function which concatenates two string s1 and s2 in to a third string */
+
+#include <stdio.h>
+
+void string_concat(char *s3, char s1[], char s2[])
+{
+ int l1, l2, i, j, k;
+ i = j = k = 0;
+ l1 = strlen(s1);
+ l2 = strlen(s2);
+ s3 = (char *)malloc((l1 + l2 + 1) * sizeof(char));
+ while (s1[i] != '\0')
+ {
+ s3[k++] = s1[i++];
+ }
+ while (s2[j] != '\0')
+ {
+ s3[k++] = s2[j++];
+ }
+ s3[k] = '\0';
+ puts(s3);
+}
+
+int main()
+{
+ char s1[] = "JAVA";
+ char s2[] = "PYTHON";
+ char *s3 = NULL;
+ string_concat(s3, s1, s2);
+ return 0;
+}</div>
+ </div>
+
+ <div class="file-item flex items-center justify-between px-3 py-2 hover:bg-white hover:shadow-sm rounded-lg transition-all group border border-transparent hover:border-slate-100 mb-1">
+ <div class="flex items-center gap-2.5 min-w-0 cursor-pointer flex-1" onclick="showCode('code-Semester_1-tuition-c-P068-c', 'P068.c', 'https://github.com/notamitgamer/bsc/blob/main/Semester_1/tuition-c/P068.c')">
+ <svg class="w-4 h-4 text-slate-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
+ </svg>
+ <span class="text-sm text-slate-600 font-medium group-hover:text-blue-600 truncate">P068.c</span>
+ </div>
+ <div class="flex items-center gap-2 opacity-0 group-hover:opacity-100 transition-opacity">
+ <a href="https://github.com/notamitgamer/bsc/blob/main/Semester_1/tuition-c/P068.c" target="_blank" class="p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-100 rounded-md" title="View on GitHub">
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-2.126 1.029-2.935-.103-.253-.446-1.372.097-2.897 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.525.202 2.644.1 2.897.64.809 1.026 1.841 1.026 2.935 0 3.847-2.337 4.687-4.565 4.935.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd"></path></svg>
+ </a>
+ </div>
+ <!-- Embedded Code Storage -->
+ <div id="code-Semester_1-tuition-c-P068-c" style="display:none;">/*
+ * ======================================================================================
+ * COPYRIGHT (C) 2026 AMIT DUTTA. ALL RIGHTS RESERVED.
+ * Repository : https://github.com/notamitgamer/bsc
+ * License : ESAL-1.0 ( https://esal.amit.is-a.dev )
+ * ======================================================================================
+ * [ ACADEMIC INTEGRITY WARNING ]
+ * The use of this code for academic assignments at ANY educational institution,
+ * college, or university is STRICTLY PROHIBITED.
+ * Any other use requires prior written permission from the author.
+ * Violations will be reported as academic misconduct.
+ * ======================================================================================
+ */
+
+/* Write a c program that perform the operation of strcmp() */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+int string_compare1(char s1[], char s2[])
+{
+ int i, c, cmp = 0, p = 0;
+ i = 0;
+ while (s1[i] != '\0' && s2[i] != '\0')
+ {
+ if (s1[i] != s2[i])
+ {
+ cmp = s1[i] - s2[i];
+ p = 1;
+ break;
+ }
+ i++;
+ }
+ c = s1[i] != '\0' ? s1[i] : (-1) * s2[i];
+ return p == 1 ? cmp : c;
+}
+int string_compare2(char *s1, char *s2)
+{
+ while (*s1 != '\0' && (*s1 == *s2))
+ {
+ s1++;
+ s2++;
+ }
+ return *s1 - *s2;
+}
+
+int main()
+{
+ char str1[] = "AMIT";
+ char str2[] = "Amit";
+ printf("Result 1 = %d", string_compare1(str1, str2));
+ printf("\nResult 2 = %d", string_compare2(str1, str2));
+ return 0;
+}</div>
+ </div>
+
+ <div class="file-item flex items-center justify-between px-3 py-2 hover:bg-white hover:shadow-sm rounded-lg transition-all group border border-transparent hover:border-slate-100 mb-1">
+ <div class="flex items-center gap-2.5 min-w-0 cursor-pointer flex-1" onclick="showCode('code-Semester_1-tuition-c-P069-c', 'P069.c', 'https://github.com/notamitgamer/bsc/blob/main/Semester_1/tuition-c/P069.c')">
+ <svg class="w-4 h-4 text-slate-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
+ </svg>
+ <span class="text-sm text-slate-600 font-medium group-hover:text-blue-600 truncate">P069.c</span>
+ </div>
+ <div class="flex items-center gap-2 opacity-0 group-hover:opacity-100 transition-opacity">
+ <a href="https://github.com/notamitgamer/bsc/blob/main/Semester_1/tuition-c/P069.c" target="_blank" class="p-1.5 text-slate-400 hover:text-slate-700 hover:bg-slate-100 rounded-md" title="View on GitHub">
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-2.126 1.029-2.935-.103-.253-.446-1.372.097-2.897 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.525.202 2.644.1 2.897.64.809 1.026 1.841 1.026 2.935 0 3.847-2.337 4.687-4.565 4.935.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd"></path></svg>
+ </a>
+ </div>
+ <!-- Embedded Code Storage -->
+ <div id="code-Semester_1-tuition-c-P069-c" style="display:none;">/*
+ * ======================================================================================
+ * COPYRIGHT (C) 2026 AMIT DUTTA. ALL RIGHTS RESERVED.
+ * Repository : https://github.com/notamitgamer/bsc
+ * License : ESAL-1.0 ( https://esal.amit.is-a.dev )
+ * ======================================================================================
+ * [ ACADEMIC INTEGRITY WARNING ]
+ * The use of this code for academic assignments at ANY educational institution,
+ * college, or university is STRICTLY PROHIBITED.
+ * Any other use requires prior written permission from the author.
+ * Violations will be reported as academic misconduct.
+ * ======================================================================================
+ */
+
+/* Write a program using user defined method to implement the following
+ JAVA PROG Mastery -> JPM
+ java prog mastery -> JPM
+ Acharya Prafulla Chandra -> JPM
+*/
+
+#include <stdio.h>
+#include <ctype.h>
+
+void _short_1(char str[])
+{
+ int i = 0, j = 0;
+ char s[10];
+ if (str[0] != '\0' && str[0] != ' ')
+ {
+ s[j] = toupper(str[j]);
+ i++;
+ j++;
+ }
+ while (str[i] != '\0')
+ {
+ if (str[i] == ' ')
+ {
+ s[j] = toupper(str[i + 1]);
+ i++;
+ j++;
+ }
+ i++;
+ }
+ s[j] = '\0';
+ printf("\nResult 1: %s", s);
+}
+
+void _short_2(char str[])
+{
+ int i, j;
+ char strnew[10];
+ strnew[0] = toupper(str[0]);
+ i = j = 1;
+ while (str[i] != '\0')
+ {
+ if (str[i] == ' ')
+ {
+ strnew[j++] = toupper(str[i + 1]);
+ }
+ i++;
+ }
+ strnew[j] = '\0';
+ printf("\nResult 2: %s", strnew);
+}
+
+int main()
+{
+ char str[30];
+ printf("Enter the string: ");
+ gets(str);
+ _short_1(str);
+ _short_2(str);
+ return 0;
+}</div>
+ </div>
+
</div>
</div>