Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can someone please help me with this code. especially with requirements 2 and 3

ID: 3740299 • Letter: C

Question

Can someone please help me with this code. especially with requirements 2 and 3

Your assignment is to implement a currency transaction exchange. An experienced C++ programmer will achieve this task in about 40 minutes and take about 100 lines of code. As inexperienced programmers, the project is expected to require 4 hours work per week over 7 weeks. Your exchange must: Requirement 1 The program MUST provide a user interface and functionality for users There must be an option to convert from Fijiian Dollars to Vanuatu Vatu and There must be an option to convert from Fijiian Dollars to Samoan Tala and There must be an option to convert from Samoan Tala to Vanuatu Vatu and Requirement 2 The program MUST provide a user interface option and functionality Hint: this requires keeping a list of previous transactions, something we won't to convert between Fijiian Dollars, Vanuatu Vatu and Samoan Tala. vice versa vice versa vice versa to recall all the previous transactions since the start of the program. cover in class for the first few weeks. Requirement 3 The program SHOULD start with an internal opening balance of FJD$10,000, V10,000,000 and T1,000,000. Each transaction should increment or decrement the internal balances. Transactions that result in an internal balance that is less than 0 should be disallowed.

Explanation / Answer

#include <iostream>
using namespace std;
void main()
{
      int amt=0;
      char choice1, choice2, choice3='Y';
      while (choice3=='Y')
      {
           cout<<"Select the currencies that you want to exchange ";
           cout<<" - Enter R for Pakistani Rupees ";
           cout<<" - Enter E for Euro ";
           cout<<" - Enter D for Dollar "<<endl;
           cout<<"Please select the currency that you want to convert"<<endl;
           cin>>choice1;
           cout<<"Please enter the currency that you want to convert into"<<endl;
           cin>>choice2;
           cout<<"Enter Amount: ";
           cin>>amt;
           if ( choice1=='R' && choice2=='E')
           {
                    cout<<amt <<" Rupees = "<<amt/112<<" Euros"<<endl;  
           }
           if ( choice1=='R' && choice2=='D')
           {
                    cout<<amt <<" Rupees = "<<amt/84<<" Dollars"<<endl;
           }
           if ( choice1=='E' && choice2=='R')
           {
                    cout<<amt <<" Euros = "<<amt*112<<" Rupees"<<endl;
           }
           if ( choice1=='E' && choice2=='D')
           {
                    cout<<amt <<" Euros = "<<amt*1.33<<" Dollars"<<endl;
           }
           if ( choice1=='D' && choice2=='R')
           {
                    cout<<amt <<" Dollars = "<<amt*84<<" Rupees"<<endl;
           }
           if ( choice1=='D' && choice2=='E')
           {
                cout<<amt <<" Dollars = "<<amt/1.33<<" Euros"<<endl;
           }
           cout<<"Do you want to make another conversion? ( Y/N ) :";
           cin>>choice3;
      }
      cout<<"Goodbye :) "<<endl;
}