/ReceiptMaker

Greet the user “Welcome to the 10 items or less checkout line” Scan the cart items by prompting the user for the item name and price until either 10 items have been scanned or the user enters “checkout” The prompts should appear as follows: Enter item #1's name and price separated by a space, or enter "checkout" to end transaction early Enter item #2's name and price separated by a space, or enter "checkout" to end transaction early Enter item #3's name and price separated by a space, or enter "checkout" to end transaction early … … ... If the price entered for an item is negative the user should be told the price cannot be negative, and prompted to reenter the price for the item until a valid price is entered (Example output if “-5.0” is entered as the price of an item) Price "-5.0" cannot be negative. Reenter price

Primary LanguageJava

This repository is not active