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

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!