In: Computer Science
IN C++ LANGUAGE PLEASE:::
I’m buyin’ a Ferrari! If you’ve ever travelled to another country, you know that working with different currencies takes a while to get used to. As of the date of making this assignment, there are 9,240.00 Guinean Francs to $1 USD. For this program, design (pseudocode) and implement (source code) aprogram that prompts the user for the amount of U.S. currency they have, and converts it into Ginean Francs.
PSEUDOCODE:
This program is used to convert the amount given in us dollars to Guinean Francs.
Declare a double variable guinean_franc for Guinean Francs
Declare a double variable us_dollar for usa dollars
print prompt "Enter the amount of US dollars: "
Get the input for the us_dollar from the user and store it in us_dollar
calculate the Guinean Francs by us_dollar * 9240 and assign the result to guinean_franc
print the guinean_franc
C++ CODE:
#include <iostream>
using namespace std;
int main()
{
//varible to store guinean_franc and us dollars
double guinea_franc;
double us_dollar;
//getting the us dollar input from the user
cout<<"Enter the amount of US dollars:
";
cin>>us_dollar;
//calculating the guinean_franc
guinea_franc=us_dollar * 9240.0;
//printing the guinean franc for the given us
dollars
cout<<"Guinea Franc =
"<<guinea_franc;
return 0;
}
SCREENSHOT FOR OUTPUT: