Code Monkey home page Code Monkey logo

pps-assigments's Introduction

Programming and Problem Solving Assignments

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.

Table of Contents

  1. Problem Statement 1
  2. Problem Statement 2
  3. Problem Statement 3
  4. Problem Statement 4
  5. Problem Statement 5
  6. Problem Statement 6
  7. Problem Statement 7
  8. Problem Statement 8
  9. Problem Statement 9
  10. Problem Statement 10
  11. Problem Statement 11
  12. Problem Statement 12
  13. Problem Statement 13
  14. Problem Statement 14
  15. Problem Statement 15
  16. Problem Statement 16
  17. Problem Statement 17
  18. Problem Statement 18
  19. Problem Statement 19
  20. Submission Guidelines

Problem Statement 1:

  • 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.

Link to Assignment 1

Output of Assignment 1


Problem Statement 2:

  • 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

Link to Assignment 2

Output of Assignment 2


Problem Statement 3:

  • Description: To accept N numbers from user. Compute and display maximum in list, minimum in list, sum and average of numbers.

Link to Assignment 3

Output of Assignment 3


Problem Statement 4:

  • 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.

Link to Assignment 4

Output of Assignment 4


Problem Statement 5:

  • 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.

Link to Assignment 5

Output of Assignment 5


Problem Statement 6:

  • 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!.

Link to Assignment 6

Output of Assignment 6


Problem Statement 7:

  • 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

Link to Assignment 7

Output of Assignment 7


Problem Statement 8:

  • Description: To accept two numbers from user and compute smallest divisor and Greatest Common Divisor of these two numbers.

Link to Assignment 8

Output of Assignment 8


Problem Statement 9:

  • Description: To accept a number from user and print digits of number in a reverse order.

Link to Assignment 9

Output of Assignment 9


Problem Statement 10:

  • Description: To input binary number from user and convert it into decimal number.

Link to Assignment 10

Output of Assignment 10


Problem Statement 11:

  • Description: To generate pseudo random numbers.

Link to Assignment 11

Output of Assignment 11


Problem Statement 12:

  • Description: To accept list of N integers and partition list into two sub lists even and odd numbers.

Link to Assignment 12

Output of Assignment 12


Problem Statement 13:

  • Description: To accept the number of terms a finds the sum of sine series.

Link to Assignment 13

Output of Assignment 13


Problem Statement 14:

  • Description: To accept from user the number of Fibonacci numbers to be generated and print the Fibonacci series.

Link to Assignment 14

Output of Assignment 14


Problem Statement 15:

  • 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.

Link to Assignment 15

Output of Assignment 15


Problem Statement 16:

  • 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.

Link to Assignment 16

Output of Assignment 16


Problem Statement 17:

  • Description: To count total characters in file, total words in file, total lines in file and frequency of given word in file.

Link to Assignment 17

Output of Assignment 17


Problem Statement 18:

  • 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.”

Link to Assignment 18

Output of Assignment 18


Problem Statement 19:

  • 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.

Link to Assignment 19

Output of Assignment 19


Submission Guidelines

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.

pps-assigments's People

Contributors

avianage avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.