#include int main() { std::string yesOrNo, itemName; int itemValue, total, numberOfItems; numberOfItems = 0; total = 0; do { numberOfItems++; std::cout << "Please input an item and it's value"; std::cin >> itemName; std::cin >> itemValue; total = total + itemValue; std::cout << "Are you done? Y/N: "; std::cin >> yesOrNo; } while(yesOrNo != "Y"); std::cout << "Your total is: " << total << " with" << numberOfItems << " items" << "\nThank you for choosing Rudy's. Have a nice day!" << std::endl; }