Write a C++ program for simple Malaysian currency conversion. For example: to convert to a Malaysian currency, we just n
Posted: Fri May 20, 2022 1:28 pm
Write a C++ program for simple Malaysian currency conversion. For example: to convert to a Malaysian currency, we just need the value of that currency in which we want to convert. After receiving the amount and rate from the user the program show the converted currency Formula: Malaysian ringgit = amount * rate Create a program that includes: i) Create a MYR-Currency class that includes the interface and the implementation of the class that have the following: Attributes: amount and rate of any numerical type. Behaviours: . Constructor will initialise the value of amount and rate to 0. • Destructor • Mutator - set the value of amount and rate; given from user through parameters convertCurrency () - calculate and return the converted currency. il) Create a main converter program that should accept amount and rate values and then show the converted currency