0% found this document useful (0 votes)
22 views4 pages

1312 - 109 LAB Project 1

This document is a lab project report for a Bachelor in Computer Science course, focusing on a Python program that evaluates student grades based on their marks. The project requires students to implement a program that uses loops and conditional statements to assign grades to three students. The report includes grading criteria, a section for code implementation, and a space for student and evaluator details.

Uploaded by

rbd45585h5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views4 pages

1312 - 109 LAB Project 1

This document is a lab project report for a Bachelor in Computer Science course, focusing on a Python program that evaluates student grades based on their marks. The project requires students to implement a program that uses loops and conditional statements to assign grades to three students. The report includes grading criteria, a section for code implementation, and a space for student and evaluator details.

Uploaded by

rbd45585h5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

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

You might also like