File Work For PA-1
File Work For PA-1
1. Write a Python program that takes three integers as input from the user and prints
them in ascending order without using any built-in sorting functions or methods.
2. Create a program that prompts the user to enter the lengths of three sides of a triangle.
Based on these lengths, determine and print whether the triangle is equilateral,
isosceles, or scalene.
3. Write a program that simulates a simple ATM machine. It should ask the user for their
current balance and the amount they wish to withdraw. If the balance is sufficient,
deduct the amount and print the new balance. If the balance is insufficient, print a
message indicating so.
4. Create a program that simulates a simple online shopping experience. Prompt the user
to enter the total amount of their purchase and their membership status (premium or
regular). Apply different discount rates based on the total purchase amount and
membership status, and print the final amount payable
Project Work
1. Perform the machine morality test using following link and upload the screenshot
of the final result.
http://moralmachine.mit.edu