Question: Using only the techniques from the class and from the textbook Chapters 1-14 complete the following: Go360 is an online retailer focusing on 360-degree video

Using only the techniques from the class and from the textbook Chapters 1-14 complete the following: Go360 is an online retailer focusing on 360-degree video cameras. You have been asked to assist with validating order data. 1. Zip. Write a program that displays the appropriate shipping charge based on the ZIP code entered by the user. To be valid, the ZIP code must contain exactly five digits and the first three digits must be either "605" or "606". The shipping charge for "605" ZIP codes is $25. The shipping charge for "606" ZIP codes is $30. Display an appropriate message if the ZIP code is invalid. Use a sentinel value to end the program. Save and then run the program. Test the program using the following ZIP codes: 60677, 60511, 60344, and 7130. Demonstrate your testing in your submission. 2. Color. Write a program that displays the color of the camera whose item number is entered by the user. All item numbers contain exactly seven characters. All items are available in four colors: black, green, red, and white. The fourth character in the item number indicates the item's color, as follows: a B or b indicates Black, a G or g indicates Green, an R or r indicates Red, and a W or w indicates White. If the item number does not contain exactly seven characters, or if the fourth character is not one of the valid color characters, the program should display an appropriate message. Use a sentinel value to end the program. Save and then run the program. Test the program using the following item numbers: 123B567, 111r222, 123, and 111k456. Demonstrate your testing in your submission. 3. Shipping. Write a program that allows the user to enter a part number that consists of four or five characters. The second and third characters represent the delivery method, as follows: "MS" represents "Mail - Standard", "MP" represents "Mail - Priority", "FS" represents "FedEx - Standard", "FO" represents "FedEx Overnight", and "UP" represents "UPS". Display an appropriate message when the part number does not contain either four or five characters. Also, display an appropriate message when the second and third characters are not one of the delivery methods. If the part number is valid, the program should display the delivery method. Use a sentinel value to end the program. Save and then run the program. Test the program using the following part numbers: 7MP6, 3fs5, 8ko89, and 1234MS. Demonstrate your testing in your submission
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
