1.Simple Interest

Sara wished to build a new house but she didn’t have a sufficient amount.

So, she is planning to borrow some money from the bank on simple interest.

When she is borrowing some money from the bank, she has to pay back the original

amount accompanied by a certain amount of interest on that amount. She wants to find

the interest for borrowed money within a certain period. Help her to find the simple interest.


Input format:

The first line containing an integer value denoting the borrowed amount(principal amount)

The second line containing an integer value denoting the period in years

The third line containing the float value denoting the rate of interest

 

Output format:

Print the simple interest in float with 2 decimal places.

 

Sample Input:

15000

2

2.8

 

Sample Output:

840.00

Input (stdin)

3000
2
5.0


Output (stdout)

300.00

2.Fencing The Ground

The college ground is rectangular in shape. Management decides to build a fence around the ground.

In order to help the construction workers to build a straight fence, they planned to place a thick rope around the ground.

They wanted to buy only the exact length of the rope that is needed.

They also wanted to cover the entire ground with a thick carpet during the rainy season.

They wanted to buy only the exact quantity of carpet that is needed. They requested your help.

Can you please help them by writing a program to find the exact length of the rope and the exact quantity

of carper that is required?


Input Format:

Input consists of 2 integers.

The first integer corresponds to the length of the ground

The second integer corresponds to the breadth of the ground.

 

Output Format:

Output consists of 2 integers.

The first integer corresponds to the exact length of the rope

The second integer corresponds to the exact quantity of carper.

 

Sample Input:

50

20

 

Sample Output:

140m

1000sqm

Input (stdin)

80
20


Output (stdout)

200m
1600sqm


3.3 idiots

Ajay, Binoy, and Chandru were very close friends at school.

They were very good in Mathematics and they were the pet students of Emily Mam.

Their gang was known as 3-idiots. Ajay, Binoy, and Chandru live in the same locality.

A new student Dinesh joins their class and he wanted to be friends with them.

He asked Binoy about his house address. Binoy wanted to test Dinesh’s mathematical skills.

Binoy told Dinesh that his house is at the midpoint of the line joining Ajay’s house and Chandru’s house.

Dinesh was puzzled. Can you help Dinesh out? Given the coordinates of the 2 endpoints of a line (x1,y1) and (x2,y2),

write a program to find the midpoint of the line.


Input Format:

Input consists of 4 integers.

The first integer corresponds to x1 .

The second integer corresponds to y1.

he third integer corresponds to x2.

he fourth integer corresponds to y2.

 

Output Format:

Refer Sample Input and Output for exact formatting specifications.

[All floating point values are displayed correct to 1 decimal place]

 

Sample Input:

2

4

10

15

 

Sample Output:

Binoy’s house is located at (6.0,9.5)

Input (stdin)

5
4
3
2


Output (stdout)

Binoy’s house is located at (4.0,3.0)

4.Profit Calculation

Each Sunday, a newspaper agency sells x copies of a certain newspaper for Rs.a per copy.

The cost to the agency of each newspaper is Rs.b. The agency pays a fixed cost for storage,

delivery and so on of Rs.100 per Sunday. The newspaper agency wants to calculate the profit obtained on Sundays.

Can you please help them out by writing a program to compute the profit given x, a and b.


Input Format:

Input consists of 3 integers — x, a and b.

X is the number of copies sold, a is the cost per copy and b is the cost the agency spends per copy.

 

Output Format:

Refer Sample Input and Output for exact formatting specifications.

 

Sample Input:

1000

2

1

 

Sample Output:

The profit obtained is Rs.900

Input (stdin)

300
2
1


Output (stdout)

The profit obtained is Rs.200

5.Alice was bored that day, so she was sitting on the riverbank. Suddenly she notices a talking,

White Rabbit with a pocket watch. It ran fast, and she followed it, down a rabbit hole.

She fell into the hole and found a magical wonderland with dark trees, beautiful flowers.

She found many ways numbered from 1,2,3,……..18.she was confused which is the right way

that will lead her to her home. She found a cute bird, standing in one of the trees.

Alice asked the bird the way to go back to her home.

The bird said a two-digit number( say 23 ) and asked her to find the sum of its digits (2+3=5) and

that numbered way will lead her to her home. Alice was already confused, so pls help Alice in finding

the route to her home.


Input Format:

Input consists of an integer corresponding to the 2-digit number.

 

Output Format:

Output consists of an integer corresponding to the sum of its digits.

Refer sample input and output for formatting specifications.

 

Sample Input:

23

 

Sample Output:

Alice must go in path-5

Input (stdin)

26


Output (stdout)

Alice must go in path-8