Assignment No: 1 To calculate salary of an employee given his basic pay (take as input from user). Calculate gross salary of employee. Let HRA be 10 % of basic pay and TA be 5% of basic pay. Let employee pay professional tax as 2% of total salary. Calculate net salary payable after deductions. Download Source Code Assignment No: 2 To accept an object mass in kilograms and velocity in meters per second and display its momentum. Momentum is calculated as e=mc2 where m is the mass of the object and c is its velocity. Download Source Code Assignment No: 3 To accept N numbers from user. Compute and display maximum in list, minimum in list, sum and average of numbers. Download Source Code Assignment No: 4 To accept student’s five courses marks and compute his/her result. Student is passing if he/she scores marks equal to and above 40 in each course. If student scores aggregate greater than 75%, then the grade is distinction. If aggregate is 60>= and <75 then the grade if first div...
Example 1 : Flow chart for finding the sum of and product of two numbers. Declare Integer a Declare Integer b Declare Integer sum Declare Integer product Display "Enter any two numbers :" Input a Input b Set sum = a + b Set product = a * b Display "Sum and Product of given two number is :" Display sum Display product Example 2 : Flow chart for convert temperature in farenheit to celcius. Declare Real farenheit Declare Real celcius Display "Enter the temperature value in farenheit :" Input farenheit Set celcius = 5 / 9 * (farenheit - 32) Display "Given temperature in celcius is :" Display celcius (Note : All flowcharts prepared using Flowgorithm (Download the flowgorithm from link : http://www.flowgorithm.org/ ) Next Topic : Basics of Python Programming
Unit IV Strings Strings and Operations- concatenation, appending, multiplication and slicing. Strings are immutable, strings formatting operator, built in string methods and functions. Slice operation, ord() and chr() functions, in and not in operators, comparing strings, Iterating strings, the string module
Comments
Post a Comment