Professional Documents
Culture Documents
Answer:
# program to find the largest number among the three input numbers
#pre_defined initialization.
#num1 = 11111.
#num2 = 181.
#num3 = 121.
largest = num1
largest = num2
else:
largest = num3
Problem 2: Take hourly rate and no. of hours worked to calculate salary.
Answer:
#This program will calculate salary by getting no of hours and the rate per hour.
#Rate is predefined.
Rate_per_hour=200
Number_of_hours=float(input("Enter working hours"))
Salary=0.0
salary=Rate_per_hour*Number_of_hours
print("Wages according to your working hours in rupees",salary)
Problem 4: Get marks from user and assign grade as per below chart
Marks Grade
80plus A
70_79 B+
60_69 B
50_59 C
Below F
5o
Answer:
Problem 6: List oil wells which are inside the boundary of Punjab
province and operating company is OGDCL.
Answer: