Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

i need this in itis simplest way please! Design class TestProduct. Compile and r

ID: 3885538 • Letter: I

Question

i need this in itis simplest way please!

Design class TestProduct. Compile and run TestProduct program. You should have the following output: You have 2 products now. You have Milk (ID = 1). Its price is $2.50 You have Apple (ID = 2). Its price is $6.00 You have 3 products now. You have Milk (ID = 1). Its price is $2.50 You have Apple (ID = 2). Its price is $6.00 You have Bread (ID = 3). Its price is $1.50 You have 3 products now You have Milk (ID = 1). Its price is $2.50 You have Apple (ID = 2). Its price is $5.99 You have Bread (ID = 3). Its price is $1.50

Explanation / Answer

using namespace std;

class TestProduct

{

Map <String, Double> itemCostList;

public:

addItem(String itemName, double itemPrice);

showAllItemDetails();
};

TestProduct::TestProduct()

{

}

TestProduct::addItem(String itemName, double itemPrice)

{

}

TestProduct::changeItemPrice(String itemName, double itemPrice)

{

}

TestProduct::showAllItemDetails()

{

}

int main()

{

TestProduct myShopping;

myShopping.addItem("Milk", 2.50);

myShopping.addItem("Apple", 6.00);

myShopping.showAllItemDetails();

myShopping.addItem("Bread", 1.50);

myShopping.showAllItemDetails();

myShopping.changeItemPrice("Apple", 5.99);

myShopping.showAllItemDetails();

)