0% found this document useful (0 votes)
31 views2 pages

Simple Programs

The document contains examples of simple programs including converting temperatures, calculating grades, finding areas of shapes, displaying Fibonacci series, factorials and mathematical series. It also includes examples of visual Python programs like creating 3D objects, displaying histograms and graphs, and plotting equations of motion.

Uploaded by

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

Simple Programs

The document contains examples of simple programs including converting temperatures, calculating grades, finding areas of shapes, displaying Fibonacci series, factorials and mathematical series. It also includes examples of visual Python programs like creating 3D objects, displaying histograms and graphs, and plotting equations of motion.

Uploaded by

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

SIMPLE PROGRAMS

1 .Write a menu driven program to convert the given temperature


from Fahrenheit to Celsius and vice versa depending upon user’s
choice.
2. WPA to calculate total marks, percentage and grade of a student.
Marks obtained in each of the three subjects are to be input by the
user. Assign grades according to the following criteria:
Grade A: Percentage>=80
Grade
Percentage>=70 and
<80 Grade C:
Percentage>=60 and
<70 Grade D:
Percentage>=40 and
<60 Grade E:
Percentage<40
3. Write a menu driven program using user defined function to find
the area of rectangle, square, circle and triangle by accepting
suitable input parameters from users.

4. WAP to display the first ‘n’ terms of Fibonacci Series.


5. WAP to find Factorial of the given number.
6. WAP to find sum of the following series for n terms
1-2/2! + 3/3! ..... n/n!

(VISUAL PYTHON)

1. Write a menu driven program to create mathematical 3D


objects.
1.Sphere
2.Cylinder
2 . WAP to read in integers and display them as a Histogram.

3. WAP to display sine, cosine, polynominal and exponential


curves.
4. WAP to plot a graph of people with pulse rate P vs. height h. The
values of P and h to be entered by the user
5. Input initial velocity and acceleration, and plot the following
graphs depicting equation of motion.

You might also like