PPS Project Report
on
‘Student Admission
Form ’
Submitted to Punjab Technical University, Jalandhar
In partial fulfillment of the requirements for
the degree of
B. Tech in Computer Science & Engineering
(AIML)
(Batch 2024-2028)
Submitted To: Submitted By:
Ms. Nisha Arora Anmolveer Singh (RollNo 2445829)
Ansh Narula(Roll No 2444530)
Ansh singh (Rollno )
B. Tech (AIML)
Features of Project
1. Basic Student Admission System
Collects and stores essential details about a student for admission purposes.
Works like a command-line form where users fill their information step-by-step.
2. Interactive User Experience
Uses clear prompts to guide the user through the form.
Provides a friendly final summary showing all submitted information.
3. Input Management
Inputs are taken safely using fgets() (prevents buffer overflow).
Handles newline characters smartly by removing them after every input.
Converts data types (e.g., string input to integer for age) carefully.
4. Data Presentation
Displays a formatted preview of the user's submitted details.
Makes it easy for students to review their information immediately.
5. Good Code Structure
Separate function (removeNewline()) for code modularity and better organization.
Maintains clean coding style: proper prompts, input handling, and output formatting.
6. Single-Session Application
Runs once, collects and displays data, then exits.
No database or file storage — everything is runtime-based
Ends with a thank-you message.
SCREENSHORT OF PROJRCT
CODE OF THE PROJECT
# #include <stdio.h>
#include <string.h>
// Function to remove the newline character from fgets input
void removeNewline(char *str) {
size_t len = strlen(str);
if (len > 0 && str[len - 1] == '\n') {
str[len - 1] = '\0';
}
}
int main() {
// Personal Details
char name[50], fatherName[50], motherName[50], gender[10];
int age;
char phone[15], address[100], nationality[30], dob[20];
// Academic Details
char course[30], tenthSchool[50], twelfthSchool[50];
float tenthPercentage, twelfthPercentage;
// Parent/Guardian Contact Information
char fatherContact[15], motherContact[15];
// Additional Details
char emergencyContact[15], passportNumber[20], bloodGroup[5];
char hobbies[100], religiousBackground[50], previousInstitution[50], admissionDate[20];
char modeOfFees[20]; // Mode of payment for the admission fee
printf("===== ADMISSION FORM =====\n\n");
// Personal Details Section
printf("===== PERSONAL DETAILS =====\n\n");
printf("Enter your full name: ");
fgets(name, sizeof(name), stdin);
removeNewline(name);
printf("Enter your father's name: ");
fgets(fatherName, sizeof(fatherName), stdin);
removeNewline(fatherName);
printf("Enter your mother's name: ");
fgets(motherName, sizeof(motherName), stdin);
removeNewline(motherName);
printf("Enter your age: ");
scanf("%d", &age);
getchar(); // To consume the newline character left by scanf
printf("Enter your gender: ");
fgets(gender, sizeof(gender), stdin);
removeNewline(gender);
printf("Enter your nationality: ");
fgets(nationality, sizeof(nationality), stdin);
removeNewline(nationality);
printf("Enter your date of birth (DD/MM/YYYY): ");
fgets(dob, sizeof(dob), stdin);
removeNewline(dob);
printf("Enter your phone number: ");
fgets(phone, sizeof(phone), stdin);
removeNewline(phone);
printf("Enter your address: ");
fgets(address, sizeof(address), stdin);
removeNewline(address);
// Academic Details Section
printf("\n===== ACADEMIC DETAILS =====\n\n");
printf("Enter the course you want to apply for: ");
fgets(course, sizeof(course), stdin);
removeNewline(course);
printf("Enter the name of your 10th class school: ");
fgets(tenthSchool, sizeof(tenthSchool), stdin);
removeNewline(tenthSchool);
printf("Enter your 10th class percentage: ");
scanf("%f", &tenthPercentage);
getchar(); // To consume the newline character left by scanf
// Fixing the issue with the newline after 10th school and percentage
printf("Enter the name of your 12th class school: ");
fgets(twelfthSchool, sizeof(twelfthSchool), stdin);
removeNewline(twelfthSchool);
printf("Enter your 12th class percentage: ");
scanf("%f", &twelfthPercentage);
getchar(); // To consume the newline character left by scanf
// Parent/Guardian Contact Information
printf("\n===== PARENT/GUARDIAN CONTACT DETAILS =====\n\n");
printf("Enter your father's contact number: ");
fgets(fatherContact, sizeof(fatherContact), stdin);
removeNewline(fatherContact);
printf("Enter your mother's contact number: ");
fgets(motherContact, sizeof(motherContact), stdin);
removeNewline(motherContact);
// Additional Details Section
printf("\n===== ADDITIONAL DETAILS =====\n\n");
printf("Enter the name of your previous institution: ");
fgets(previousInstitution, sizeof(previousInstitution), stdin);
removeNewline(previousInstitution);
printf("Enter your emergency contact number: ");
fgets(emergencyContact, sizeof(emergencyContact), stdin);
removeNewline(emergencyContact);
printf("Enter your passport number (if applicable): ");
fgets(passportNumber, sizeof(passportNumber), stdin);
removeNewline(passportNumber);
printf("Enter your blood group: ");
fgets(bloodGroup, sizeof(bloodGroup), stdin);
removeNewline(bloodGroup);
printf("Enter your hobbies/interests: ");
fgets(hobbies, sizeof(hobbies), stdin);
removeNewline(hobbies);
printf("Enter your religious background (if any): ");
fgets(religiousBackground, sizeof(religiousBackground), stdin);
removeNewline(religiousBackground);
printf("Enter the date of admission (DD/MM/YYYY): ");
fgets(admissionDate, sizeof(admissionDate), stdin);
removeNewline(admissionDate);
printf("Enter the mode of fees (e.g., Online, Cash, Cheque): ");
fgets(modeOfFees, sizeof(modeOfFees), stdin);
removeNewline(modeOfFees);
// Display collected information
printf("\n===== YOUR DETAILS =====\n\n");
printf("Name: %s\n", name);
printf("Father's Name: %s\n", fatherName);
printf("Mother's Name: %s\n", motherName);
printf("Age: %d\n", age);
printf("Gender: %s\n", gender);
printf("Nationality: %s\n", nationality);
printf("Date of Birth: %s\n", dob);
printf("Phone Number: %s\n", phone);
printf("Address: %s\n", address);
// Display academic details
printf("\n===== ACADEMIC DETAILS =====\n");
printf("Course Applied: %s\n", course);
printf("10th Class School: %s\n", tenthSchool);
printf("10th Class Percentage: %.2f\n", tenthPercentage);
printf("12th Class School: %s\n", twelfthSchool);
printf("12th Class Percentage: %.2f\n", twelfthPercentage);
// Display parent contact info
printf("\n===== PARENT/GUARDIAN CONTACT DETAILS =====\n");
printf("Father's Contact: %s\n", fatherContact);
printf("Mother's Contact: %s\n", motherContact);
// Display additional details
printf("\n===== ADDITIONAL DETAILS =====\n");
printf("Previous Institution: %s\n", previousInstitution);
printf("Emergency Contact: %s\n", emergencyContact);
printf("Passport Number: %s\n", passportNumber);
printf("Blood Group: %s\n", bloodGroup);
printf("Hobbies/Interests: %s\n", hobbies);
printf("Religious Background: %s\n", religiousBackground);
printf("Admission Date: %s\n", admissionDate);
printf("Mode of Fees: %s\n", modeOfFees);
printf("\nThank you for filling out the Admission Form!\n");
return 0;
}
CONCLUSION
The Admission Form Project successfully demonstrates the ability to collect, manage, and display
user information through a simple and interactive C program. It emphasizes safe input handling
using fgets(), modular programming through the removeNewline() function, and basic type
conversion for user data.
This project serves as an excellent introduction to user interaction, string manipulation, and
structured output formatting in C. While it currently handles single-session data collection without
storage, it lays a strong foundation for future enhancements, such as data validation, file storage, or
handling multiple student entries.
Overall, the project showcases good programming practices and provides a practical approach to
real-world form handling, making it a valuable learning experience for beginners in C programming.