Question: beginner c++ code Write a program that allows the user to enter two values: a product ID (a letter) and the number of products to
beginner c++ codeWrite a program that allows the user to enter two values: a product ID (a letter) and the number of products to be purchased. Your program should use the following table to determine the price of an individual product: Product ID Product Price n A $1.44 B $13.67 $23.10 D $3.99 $44.99 Once your program has determined the price of the product, it should calculate the total amount owed: total owed price of individual product number of products purchased Your program should then print out the individual price, the number of items purchased, and the total amount owed. Your program should be able to handle lowercase and uppercase letters. It should alert the user if they enter an invalid product ID or an invalid number of products to purchase (must be greater than 0), and may exit immediately in that case
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
