Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft SQL Server 2012 Unleashed

Authors: Ray Rankins, Paul Bertucci

1st Edition

0133408507, 9780133408508

More Books

Students also viewed these Databases questions