Skip to content

ismailrafique/Python--Input-and-Mathematical-operation-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Python--Input-and-Mathematical-operation-tasks

Write a program that asks user to enter their name and age.Calculate user name and age for the next year? for example: Hi Adan, you will be 12 years old next year

Question 1. Write a Python program that

  1. Asks the user to enter two numbers
  2. Calculates the sum and product of those numbers
  3. Displays the result using print() (edited)

Question no 2. Write a program that:

  1. Asks the user to enter marks in 3 subjects
  2. Calculates the total marks
  3. Calculates the average
  4. Displays the result

Teacher wants to start a quiz based on numbers input from student quiz:

  • find a number
  • sqaure and cube of that number
  • Divide the number by 2
  • Divide by 2 but get the whole number
  • find modulus
  • Display the result

Movie night = Rs 850 per ticket Discount 15% if: *group is 4 or more AND *group price is greater than Rs3000 write a program takes no of people in group calculate the cost applies discount using formula display all of it

Question: Mars travel weight checker You are helping a company that sends people to Mars On Mars, things feel much lighter because of less gravity. Your weight on Mars is 38% less as compared to your weight on earth. Write a program that: Asks the user to type their weight on Earth(kg) Calculates and shows theri weight on Mars. Tell them: if their Mars weight is less than 30 KG, they can take 10kg extra luggage Otherwise, they can't take extra luggage

Problem Statement:

Write a program to help a school calculate student grades based on marks out of 100. Ask the user to enter their marks. Convert the entered marks value to an integer using type casting. Use if, elif, else statement to decide the grade: . if marks are between 90 and 100 (including 90) then grade is A+ with message "Excellent work!" . if marks are in the range of 80-89, grade is A wiht message "Great Job!" . if marks are in the range of 70-79, grade is B wiht message "Good Effort!" . if marks are in the range of 80-89, grade is C wiht message "Pass" . if marks are in the range of 80-89, grade is F wiht message "Fail, Better luck next time" . . if marks are below 0 or above 100, show message "Invalid input, Please enter the marks between 0 and 100" Use formatted string Add line breaks \ for clean output End the program with Thankyou message

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published