Question 1: Data Apps – Hard

Class Attendance Tracker

A teacher wants to track the attendance of students in their class for a week. Create a Python program to collect, save, and analyze attendance records.

  1. Create a New File
    Ask the teacher to submit the following details for each student:

    • Student Name
    • Roll Number
    • Total Days Present
    • Total Days Absent

    Save these details in a CSV file. (20 marks)

  2. Display the Dictionary Representation
    Show the dictionary of all attendance records. (20 marks)

  3. Display the Table Representation
    Display the collected data in a table format. (5 marks)

  4. Show the Table from the CSV File
    Display the first 10 saved responses from the CSV file. (10 marks)

  5. Plot a Bar Chart
    Plot a bar chart with the students’ names on the x-axis and their total days present on the y-axis. (20 marks)

Write what you are looking for, and press enter to begin your search!