Practice Questions
Practice Questions
CLO-5
Question 1: Write a python program to calculate area and circumference of circle
Question 2: Write a program for a simple Python game called "Guess the Number". In this
game, the computer generates a random number between 1 and 100, and the player has to
guess the number. After each guess, the computer provides feedback on whether the guess
was too high or too low. The game continues until the player guesses the correct number.
Question 3: You are tasked with creating a Python program that calculates the final grades for
a class of students based on their individual scores in different assignments and exams. The
program should use functions to perform the necessary calculations. The program should have
the following requirements:
1. The program should prompt the user to enter the total number of students in the class.
2. For each student, the program should ask for their name, followed by their scores on
three assignments (out of 100), a midterm exam (out of 100), and a final exam (out of
100).
3. The program should calculate the average assignment score for each student by taking
the average of the three assignment scores.
4. The program should calculate the overall course grade for each student using the
following weights: assignments (25%), midterm exam (25%), and final exam (50%).
5. The program should display the final course grade (out of 100) for each student.
6. Your task is to implement this program using Python and functions. Write the code for
the program and ensure that it fulfills the given requirements.