Wednesday, March 18, 2020

  • Session

    Input & Ouput
  • Question ID

    1111110004 : IO 33
  • Problem Description

    Raj deposit Rupees 10000 into a bank account paying 7% simple interest per year. He left the deposited money in the account for 5 years. Find the interest earned and the amount at the end of those 5 years by Raj? Help him to find the interest and amount resided in bank after 5 years?

    STEP 1: Find an interest by using the formula I=P<=i<=t, where I is interest, P is total principal, i is rate of interest per year, and t is total time in years.

    STEP 2: Find an amount by using the formula A=P+I, where A stands for Amount

    Input and Output Format:

    Refer sample input and output for formatting specification.

    All float values are displayed correct to 2 decimal places.

    All text in bold corresponds to input and the rest corresponds to output.
  • Logic Test Case 1

    Input (stdin)
    10000
    
    7
    
    5
    
    
    Expected Output
    Interest=3500.00
    
    Amount=13500.00
  • Logic Test Case 2

    Input (stdin)
    20000
    
    8
    
    4
    
    
    Expected Output
    Interest=6400.00
    
    Amount=26400.00  





No comments:

Post a Comment

cisco Cybersecurity Essentials Quiz 8 answer in bold

Question  1 Correct Mark 2.00 out of 2.00 Flag question Question text A company has had several incidents involving users downloading unauth...