Projects Inventory

Simulation of Business Analytics Gaming Project in C++

Explanation:

  1. SalesData Class:
    • monthlySales: A vector to store sales data for each month.
    • Advertisement
    • recordSale(int month, double amount): Records a sale for a given month.
    • Advertisement
    • totalSales() const: Calculates the total sales for the year.
    • averageSales() const: Calculates the average sales per month.
    • printSales() const: Prints the sales data and statistics.
  2. Main Function:
    • Creates a SalesData object.
    • Records sales data for each month (sample data).
    • Prints the sales data and basic statistics (total and average sales).
Exit mobile version