Welcome to the repository for the "Programming and Problem Solving" course assignments. This repository contains a collection of assignments of the subject "Programming and Problem Solving" which is there for Students of First Year Engineering Department.
- Problem Statement 1
- Problem Statement 2
- Problem Statement 3
- Problem Statement 4
- Problem Statement 5
- Problem Statement 6
- Problem Statement 7
- Problem Statement 8
- Problem Statement 9
- Problem Statement 10
- Problem Statement 11
- Problem Statement 12
- Problem Statement 13
- Problem Statement 14
- Problem Statement 15
- Problem Statement 16
- Problem Statement 17
- Problem Statement 18
- Problem Statement 19
- Submission Guidelines
- Description: 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.
- Description: 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
- Description: To accept N numbers from user. Compute and display maximum in list, minimum in list, sum and average of numbers.
- Description: 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 division. If aggregate is 50>= and <60, then the grade is second division. If aggregate is 40>= and <50, then the grade is third division.
- Description: To check whether input number is Armstrong number or not. An Armstrong number is an integer with three digits such that the sum of the cubes of its digits is equal to the number itself.
- Description: To simulate simple calculator that performs basic tasks such as addition, subtraction, multiplication and division with special operations like computing x^y and x!.
- Description: To accept the number and Compute: a. Square root of number. b. Square of number. c. Cube of number d. Check for prime. e. Factorial of number. f. Prime factors
- Description: To accept two numbers from user and compute smallest divisor and Greatest Common Divisor of these two numbers.
- Description: To accept a number from user and print digits of number in a reverse order.
- Description: To input binary number from user and convert it into decimal number.
- Description: To generate pseudo random numbers.
- Description: To accept list of N integers and partition list into two sub lists even and odd numbers.
- Description: To accept the number of terms a finds the sum of sine series.
- Description: To accept from user the number of Fibonacci numbers to be generated and print the Fibonacci series.
- Description: Write a python program that accepts a string from user and perform following string operations- i. Calculate length of string. ii. String reversal. iii. Equality check of two strings. iv. Check palindrome. v. Check substring.
- Description: To copy contents of one file to other. While copying: a. All full stops are to be replaced with commas. b. Lower case are to be replaced with upper case. c. Upper case are to be replaced with lower case.
- Description: To count total characters in file, total words in file, total lines in file and frequency of given word in file.
- Description: Create class EMPLOYEE for storing details (Name, Designation, gender, Date of Joining and Salary). Define function members to compute: a. Total Number of Employees in an Organization. b. Count of Male and Female employee. c. Employee with Salary more than 10,000. d. Employee with designation “Assistant Manager.”
- Description: Create class STORE to keep track of Products ( Product Code, Name and price). Display menu of all products to user. Generate bill as per order.
Please follow these guidelines for submitting your assignments:
- Download / Copy the code from the repository.
- Confirm the correct directory in your terminal.
- Run command "python3 filename.py"
- Screenshot the output.
- Submit your completed assignment to the faculty.
Happy coding!
For any questions, clarifications or but fixes, feel free to contact us.