College of Computer Science
Department of Computer Science
Bachelor in Computer Science
Semester II Academic Year 2024-2025
1312 CCS-3, Introduction to Programming
Lab Project Report
Student Name: _____________________________________________________________
Student ID: ___________________
Section: 109
Submission Date: ______________
Grading Marks
Criteria Maximum Points Points Awarded Comments
Code 2
Implementation(40%)
Demo(30%) 1.5
Report(20%) 1
Logistics(10%) 0.5
Total 5
Final Grade: ___________________
Evaluator's Name: _____________
Signature: ____________________
Date: ________________________
Project 1
Description
A University evaluates student marks and assigns grades: A+ (95-100),A (90-94), B+ (85-89) B (80-84), C+
(75-79) C (70-74), D+ (65-69) D (60-64), or Fail (below 60). The process repeats for multiple students.
Write a Python program to evaluate grades for 3 students. Your program should:
• Use a for loop to iterate over 3 students (use range (1, 4)).
• Use sequential statements inside the loop to prompt for each student’s marks.
• Use an if-elif-else statement to assign a grade based on the marks.
• Ensure proper indentation for all blocks.
• Print each result as "Student [number] grade: [grade]".
Write your Code here
for student_num in range(1, 4):
marks = float(input(f"Enter marks for Student {student_num}: "))
if 95 <= marks <= 100:
grade = "A+"
elif 90 <= marks < 95:
grade = "A"
elif 85 <= marks < 90:
grade = "B+"
elif 80 <= marks < 85:
grade = "B"
elif 75 <= marks < 80:
grade = "C+"
elif 70 <= marks < 75:
grade = "C"
elif 65 <= marks < 70:
grade = "D+"
elif 60 <= marks < 65:
grade = "D"
else:
grade = "Fail"
print(f"Student {student_num} grade: {grade}")
Paste your program and output Screen here
Different outputs with different scenarios by screenshots