each item name has to be in a array
and item price in another array.
one item can be chosen at a time, the vending machine should continuously display the menu, unless the transaction ends or if the customer has ran out of money
At the end of the transaction it should display the total cost
#include <iostream>
using namespace std;
int main ()
{
void displayHeader ();
void showMenu (string[],double[]);
This is better at BEGINNERS, btw you can make your code look prettier with UNIFORM INITIALIZATION, instead of declaring your array and manually assigning each value you can do something like