Skip to content

Commit 7ae7b6d

Browse files
authored
August 10th files
1 parent ad88ecc commit 7ae7b6d

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

First.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("First Python Program!")

Interest.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
print('Interest Calculator:')
2+
amount = float(input('Principal amount ?'))
3+
roi = float(input('Rate of Interest ?'))
4+
years = int(input('Duration (no. of years) ?'))
5+
total = (amount * pow(1 + (roi / 100), years))
6+
interest = total - amount
7+
print('\nInterest = %0.2f' % interest)

PaintProblem.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
A room will be painted
2+
The room has no windows, no door
3+
Only the walls and ceiling will be painted, not the floor.
4+
5+
Write a Python program to:
6+
Ask the user for the room's width
7+
Ask the user for the room's height
8+
Ask the user for the room's length
9+
Ask the user for the coverage in squared meters, of a liter of paint.
10+
The program will output how much paint is needed to paint the room.

0 commit comments

Comments
 (0)