Question: Variable declaration and simple input and output Write a java program that asks the user for an item description, a quantity, and a price (for
Variable declaration and simple input and output
Write a java program that asks the user for an item description, a quantity, and a price (for something they are buying from the store running this program.) Make sure to use appropriate variables in this java program to store these values. Calculate a total based on the quantity and the price and output a sales message telling the user what the total is for this item.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
