I need a programmer -- 2
Budget: $10 – $30 USD
I am working on this programming but I have an error.
The code is as follows.
using System;
using System.Collections.Generic;
using System.Text;
namespace consoleproject
{
class VendingMachine
{
int SerialNumber; //a unique ID for the machine itself
Dictionary<int, int> MoneyFloat;// a dictionary which tracks the quantities of various money pieces that the machine possesses.
Dictionary<Product, int> Inventory;// a dictionary which tracks how many of each product the machine possesses.
public void StockItem(Product product, int quantity)
{
Console.WriteLine(product.Name, "is added, Quantity is ", quantity);
Console.WriteLine("This mothod is StockItem", product.Name, product.price);
}
}
}
The code is as follows.
using System;
using System.Collections.Generic;
using System.Text;
namespace consoleproject
{
class VendingMachine
{
int SerialNumber; //a unique ID for the machine itself
Dictionary<int, int> MoneyFloat;// a dictionary which tracks the quantities of various money pieces that the machine possesses.
Dictionary<Product, int> Inventory;// a dictionary which tracks how many of each product the machine possesses.
public void StockItem(Product product, int quantity)
{
Console.WriteLine(product.Name, "is added, Quantity is ", quantity);
Console.WriteLine("This mothod is StockItem", product.Name, product.price);
}
}
}