CA Swe 2025
CA Swe 2025
Work Plan:
1. Group Formation:
• Form groups of 2 students.
• Assign roles:
• Student 1: Focuses on implementing input, output, and bonus functionalities.
• Student 2: Implements search (sequential and binary), sorting, and ranking.
2. Setup Environment:
• Ensure Code::Blocks is installed and functional.
• Create a new project named CA-Practise.
3. Division of Work:
• Both students will work on separate files/modules:
• student_data.cpp for input, output, and bonus functionalities.
• student_operations.cpp for search, sorting, and ranking functionalities.
4. Integration:
• After completing individual parts, merge the code into a single file named
student_management_system.cpp.
5. Testing:
• Test the program with the following scenarios:
• Input at least 5 students' names and grades.
• Perform sequential and binary search.
• Add bonus for one student and for the entire class.
• Display the minimum and maximum grades.
• Show the sorted list with rankings and mentions.
6. Output:
• Save the output of the program (console results) in a text file named output.txt.
Final Submission:
1. Packaging Results:
• Include the following files in a single ZIP file:
• student_management_system.cpp (final code)
• output.txt (program output)
• Any other associated files (e.g., project files if necessary).
2. File Naming:
• Name the ZIP file as:
CA-Practise-2024-2025-IIG-SWE2B.zip
3. Submission Deadline:
• Duration: 3 hours.
• Submit the ZIP file to the designated folder or via email as instructed by your supervisor.
Evaluation Criteria:
1. Correctness:
• Proper implementation of all functionalities.
2. Team Collaboration:
• Clear division of roles and successful integration.
3. Code Quality:
• Use of meaningful variable names, comments, and structured code.
4. Output Accuracy:
• Matches expected results.
Good luck!
int main() {
const int MAX = 100;
string names[MAX];
float grades[MAX];
int size;
string target;
cout << "Enter the name of a student to find their grade: ";
cin >> target;
int index = sequentialSearch(names, size, target);
if (index != -1)
cout << target << "'s grade: " << grades[index] << endl;
else
cout << "Student not found." << endl;
cout << "Enter the bonus for the whole class: ";
cin >> bonus;
addBonusToAll(names, grades, size, bonus);
return 0;
}
struct Student {
string name;
float grade;
};
int main() {
const int MAX = 100;
Student students[MAX];
int size;
inputData(students, size);
string target;
cout << "Enter the name of a student to find their grade: ";
cin >> target;
int index = sequentialSearch(students, size, target);
if (index != -1)
cout << target << "'s grade: " << students[index].grade << endl;
else
cout << "Student not found." << endl;
findMinAndMax(students, size);
cout << "Enter the bonus for the whole class: ";
cin >> bonus;
addBonusToAll(students, size, bonus);
sortAndRank(students, size);
return 0;
}