Need help with creating conversion function
//function in C++
#include <iostream>
using namespace std;
int checkout (int ,int ,int);
int main(){
cout <<"checkout (0, 0, 1) -> "<<checkout (0, 0, 1)<<"\n";
cout <<"checkout (0, 1, 0) -> "<<checkout (0, 1, 0)<<"\n";
cout <<"checkout (0, 2, 0) -> "<<checkout (0, 2, 0)<<"\n";
cout <<"checkout (1, 1, 1) -> "<<checkout (1, 1, 1)<<"\n";
return 0;
}
int checkout (int num_hats, int num_tels, int num_creams){
int sickle =29;
int galleons =17 * sickle;
int price = num_hats * 2* galleons + num_tels *(12*sickle +26) +num_creams * 7 *sickle;
return price;
}
//sample output
Need help with creating conversion function checkout (num_hats, num_tels, num_creams): This function starts off knowing how...