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

Python Programs for Random Numbers and Grades

The document outlines three programming tasks in Python: an odd/even counter that generates 100 random numbers, a grade and grade-point calculator for a student's report card based on their marks in five subjects, and a series generator that includes functions for calculating factorial and power. Each task requires user-defined functions and specific outputs. The document provides a structure for implementing these tasks but does not include detailed source code or outputs.
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)
4 views4 pages

Python Programs for Random Numbers and Grades

The document outlines three programming tasks in Python: an odd/even counter that generates 100 random numbers, a grade and grade-point calculator for a student's report card based on their marks in five subjects, and a series generator that includes functions for calculating factorial and power. Each task requires user-defined functions and specific outputs. The document provides a structure for implementing these tasks but does not include detailed source code or outputs.
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

Q1.

ODD/EVEN COUNTER
Write a program that generate 100 random numbers and keeps a count of how many of those random
numbers are even and how many are odd.

Source-

OUTPUT-
2. GRADE AND GRADE-POINT CALCULATOR
Create an application in Python to display the report card of a student. Read name of the
student and marks for 5 subjects from user. Write user defined function to calculate the Grade
and Grade-point for each subject mark to display in the report card

SOURCE-

OUTPUT-
[Link] GENERATOR
Create two functions first one def factorial (n) which takes an argument and finds the factorial
of a number and returns an integer value. Second one def power (x, n) which takes two
arguments and calculate 𝑥 2𝑛 . Write a program that finds the following series, which invokes
the above functions to find factorial and power.

SOURCE-
OUTPUT-

You might also like