#pragma once

#include <iostream>
#include <string>

using namespace std;

// Function to display prompt to user and store input
string getInput(string prompt) {
    cout << prompt << " ";

    string value;
    getline(cin, value);
    return value;
}

bool isNumber(const std::string& s)
{
    string::const_iterator it = s.begin();
    while (it != s.end() && std::isdigit(*it)) ++it;
    return !s.empty() && it == s.end();
}