Is declaring the variables in the functions like I did below make them global variables?
#include <iostream>
using namespace std;
int menu(int choice);
int balance(double & amount);
double deposit(double & amount);
double inventory(int & widgetb, int & widgetr);
double purchase(int & widgetb, int & widgetr, double & amount);
void leave();
int main()
{
No, using variables as parameters of functions doesn't make them global.