Question
Note: Use Python 3 code. Many product codes include information to classify or provide additional detail around a product. See the following product code for
Note: Use Python 3 code.
Many product codes include information to classify or provide additional detail around a product. See the following product code for a sample:
HTZ10IS16-10565
The product code is comprised of 5 parts:
First 3 letters | Manufacturer (either Hertz-HTZ, Enterprise-ENT, Budget-BGT) |
2 numbers after the manufacturer | Maximum allowed discount (ex 10%) |
6th-7th characters | IS in stock, OD to order |
Number before the hyphen | Year that the product was introduced |
Number after the hyphen | Manufacturer product sku |
Using the information above, create a program that prompts a user for a product code in the format above. The program should then print out all of the information we can determine (Manufacturer name, maximum discount, in stock or out of stock, year product was introduced, and the manufacturer sku. Use Python 3 code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started