Question 22 of 22intermediate✨ CreateCase Study5 marks

Schools use “Student Management Information System” (SMIS) to manage student-related data. This system provides facilities for: • recording and maintaining personal details of students. • maintaining marks scored in assessments and computing results of students. • keeping track of student attendance. • managing many other student-related data. Let us automate this process step by step. Identify the personal details of students from your school identity card and write a program to accept these details for all students of your school and display them in the following format. Name of School Student Name: PQR Roll No: 99 Class: XI Section: A Address: Address Line 1 Address Line 2 City: ABC Pin Code: 999999 Parent’s/ Guardian’s Contact No: 999999999

Correct Answer

Personal Details Identified from School Identity Card:

Based on the given format, the personal details of students are: Student Name, Roll No, Class, Section, Address (Address Line 1 and Address Line 2), City, Pin Code, and Parent's/Guardian's Contact No.

Python Program:

python

Program: Student Management Information System

Objective: To accept and display student personal details

Accepting student details

student_name = input("Enter Student Name: ") roll_no = input("Enter Roll No: ") student_class = input("Enter Class: ") section = input("Enter Section: ") address_line1 = input("Enter Address Line 1: ") address_line2 = input("Enter Address Line 2: ") city = input("Enter City: ") pin_code = input("Enter Pin Code: ") contact_no = input("Enter Parent's/Guardian's Contact No: ")

Displaying details in required format

print("\nName of School\n") print("Student Name:", student_name, "\tRoll No:", roll_no) print("Class:", student_class, "\t\tSection:", section) print("Address:", address_line1) print("\t", address_line2) print("\nCity:", city, "\t\tPin Code:", pin_code) print("Parent's/ Guardian's Contact No:", contact_no)

The program uses meaningful variable names like student_name, roll_no, pin_code instead of single letters, following proper naming conventions. The input() function accepts data from the user, and print() function displays output in the specified format. Proper indentation and comments are included for better readability and documentation.

Exercise: CASE STUDY-BASED QUESTION | Q: 22 | (Page 32)
For More Understanding

Explanation

This case study question tests students' ability to identify relevant data fields from a given format and write a Python program to accept and display that data. The context emphasizes good documentation practices including meaningful variable names, proper indentation, and comments. The program should follow naming conventions (like student_name instead of a or b) and include the objective at the beginning as per documentation tips provided in the textbook context.

Solution Steps

  1. Step 1: Identify personal details from the given output format - Student Name, Roll No, Class, Section, Address, City, Pin Code, Contact No.

  2. Step 2: Use input() function with meaningful prompts to accept each detail from the user.

  3. Step 3: Store each input in appropriately named variables following naming conventions.

  4. Step 4: Use print() statements to display output in the exact format specified, with proper spacing and line breaks.