Computer Science, asked by SidhuSaab9725, 11 months ago

Write an algorithm for calculating the conversion from rupees to dollars.

Answers

Answered by rohitpundir066
0

Explanation:

The algorithm is defined as follows :

Step 1: Start.

Step 2: Read the amount in rupees and conversion rate

.Step 3: Calculate the equivalent amount in dollars using the following formula: amount in dollars = amount in rupees/conversion rate. Step 4: Write the amount in dollars.tep 3: Calculate the equivalent amount in dollars using the following formula: amount in dollars = amount in rupees/conversion rate.

Step 4: Write the amount in dollars.

Answered by poojan
1

Algorithm for calculating the conversion from rupees to dollars :

  • Take a floating input from the user into a variable that represents Indian rupees count.

  • Assign the current conversion rate into another variable. ( You can take it as input from the user too)

  • Now, write a mathematical statement where variable that represents amount of Indian currency divides with conversion rate and store the computed value into a variable that represents dollar amount. As in;

        Dollar Amount = Indian Amount / Conversion Rate

  • Print the dollar amount.

Program:

amount_in_inr=float(input())

conversion_rate=74.88

no_of_dollars = amount_in_inr / conversion_rate

print(amount_in_inr,'INR = ',no_of_dollars,'Dollars')

Input:

1000000

Output:

1000000.0 INR =  13354.700854700855 Dollars

Learn more :

  • Python program for conversion of height from cm to inches

       https://brainly.in/question/12368676

  • Rules for writing an algorithm.

        https://brainly.in/question/5243751

Attachments:
Similar questions