Anyone know how to write a flowchart for this code?
#include<iostream>
#include <fstream>
using namespace std;
double amount = 0.0;
int main()
{
ofstream fout; //instance of output file stream
fout.open("Conversion.txt"); //opens the file, it will be in the same directory as the executable
cout<<"Currency Conversion"<<endl;
cout<<"--------------------\n";
cout<<"Enter the amount in US Dollar: ";
cin>>amount;
fout<<amount<<" US Dollars = "<<amount/0.6072<<" Swiss Francs\n";
fout<<amount<<" US Dollars = "<<amount/1.4320<<" British Pounds\n";
fout<<amount<<" US Dollars = "<<amount/0.0081<<" Japanese Yens\n";
fout<<amount<<" US Dollars = "<<amount/0.6556<<" Canadian Dollars\n";
fout<<amount<<" US Dollars = "<<amount/0.8923<<" Euros\n";
fout.close(); //closes the file, VERY IMPORTANT
return 0;
}