Enter the following Python programs into the repl.it editor, run them and observe the results. (copy-paste your results from the right side of the screen to a word document and upload the word file to...

1 answer below »
Enter the following Python programs into the repl.it editor, run them and copy results


Enter the following Python programs into the repl.it editor, run them and observe the results. (copy-paste your results from the right side of the screen to a word document and upload the word file to the Assignment 2) 1) Write a program to ask the user to enter his/her monthly pay. Calculate the yearly pay(salary) Display the result formatted with two decimals and displayed as currency. 2) Ask the user to enter amount_due. Calculate the monthly payment for the next year to pay all and display the result. amount_due = monthly_payment = amount_due / 12 3) Ask user his/her salary. Ask the user how much bonus he/she will get and print the total pay. 4) Write a program that asks the user to enter the radius of a circle and displays the perimeter and the area of the circle. 5) Write a program that accepts two integers from the user and calculate the sum of the two integers 6) Write a program that accepts an employee's name, total worked hours in a month and the amount he received per hour. Print the employee's name, and salary (with two decimal places) of a particular month Test Data : Input the Employees Name : James Hank Input the working hrs: 8 Salary amount/hr: 15000 Expected Output: Employees Name = James Hank Salary = U$ 120000.00 7) Write a program to calculate a bike’s average consumption from the given total distance (integer value) traveled (in km) and spent fuel (in liters, float number – 2 decimal point). Test Data : Input total distance in km: 350 Input total fuel spent in liters: 5 Expected Output: Average consumption (km/lt) 70.000
Answered Same DayApr 09, 2021

Answer To: Enter the following Python programs into the repl.it editor, run them and observe the results....

Aniket answered on Apr 09 2021
161 Votes
Q1
Code    
month=int(input("Enter your monthly salary \n"))
sal=month*12
print("U$ "+"{:.2f}".form
at(sal))
Result
Enter your monthly salary
1000
U$ 12000.00
Q2
Code
amount_due=int(input("Enter your amount due \n"))
monthly_payment=amount_due/12
print("U$ "+"{:.2f}".format(monthly_payment))
Result
Enter your amount due
3982
U$ 331.83
Q3
Code
salary=int(input("Enter your Salary \n"))
bonus=int(input("Enter your Bonus \n"))
total_pay=salary+bonus
print("U$ "+"{:.2f}".format(total_pay))
Result
Enter your Salary
129
Enter your Bonus
32
U$...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here