Question: Question 20 of Chapter 13 Strings for the 8th edition of An Introduction to Programming with C++ Write a string program that displays the appropriate

Question 20 of Chapter 13 Strings for the 8th edition of An Introduction to Programming with C++

Write a string program that displays the appropriate shipping charge based on the region code entered by the user. To be valid, the region code must contain exactly three characters: a letter (either A or B) followed by two numbers. The shipping charge for region A is $25. The shipping charge for region Bis $30. Display an appropriate message if the region code is invalid. Use a sentinel value to end the program. Save and then run the program. Test the program using the following region code: A11, B34, C7, D2A, A3N, C45, and 74TV.

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!