Question: c++ coding Write a program that allows the user to enter two values: a product ID (a letter) and the number of products to be

 c++ coding Write a program that allows the user to enterc++ coding

Write 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 $1.44 B $13.67 C $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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!