~On a certain day the British pound was equivalent to $1.467 U.S., the French franc was $0.172, the German deutschmark was $0.584, and the Japanese yen was $0.00955. Write a program that allows the user to enter an amount in dollars, and then displays this value converted to these four other monetary units.
CODE:
#include <iostream>
/* Author: Danial Ahmed
Website: http://program-cpp.blogspot.com/
Contact: danyalphc@gmail.com */
using namespace std;
int main(){
float dollar;
cout << "Enter amount in dollars($): ";
cin >> dollar;
cout << "$" << dollar << " = " << dollar/1.487 << " Pounds" << endl;
cout << "$" << dollar << " = " << dollar/0.172 << " Franc" << endl;
cout << "$" << dollar << " = " << dollar/0.584 << " Deutchemark" << endl;
cout << "$" << dollar << " = " << dollar/0.00955 << " Yen" << endl;
return 0;
}
OUTPUT:
I invite you to the page where see how much we have in common. convert 7.99
ReplyDeleteThis is very appealing, however , it is very important that will mouse click on the connection: cryptocurrency price ticker widget
ReplyDeleteI have also the solution of this problem. Please check out my method
ReplyDeleteCurrency Converter Program
Excellent read, Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. cupo dolares
ReplyDelete