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
Problem solving with computers. Results means the outcome or the completed computer-assisted answer. Program means the set of instructions that make up the solution after they have been coded into a particular computer language. Computers are built to deal with algorithmic solutions, which are often difficult or very time consuming for humans. People are better than computers at developing heuristic solutions. Solving a complicated calculus problem or alphabetizing 10,000 names is an easy task for the computer, but the problem of how to throw a ball or how to speak English is not. The difficulty lies in the programming. How can problems such as how to throw a ball or speak English be solved in a set of steps that the computer can understand? The field of computers that deals with heuristic types of problems is called artificial intelligence. Artificial intelligence enables a computer to do things like build its own knowledge bank and speak in a human language. ...
Comments
Post a Comment