Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Case scenario You are working at a retail store and your manager has an issue. Many brands are coming out with new items and your

Case scenario

You are working at a retail store and your manager has an issue. Many brands are coming out with new items and your manager needs a way to modify SKUs and prices for old products. You offer to help by writing a Python program where the manager can enter a product name, price, and old SKU, and your program will output a new name, new price, and new SKU.

What your Python program should do

Ask the user to enter the products price as a decimal value with no dollar sign, the product name, and the products current SKU. All of this information should be on one line. Separate each piece of information with a comma but no spaces. Please see the sample output below.

Display this information to the user.

Using your knowledge of Python, modify the entered information in the following ways:

Increase price by 10%.

Add New- to the product name.

Create a new SKU which is every third letter of the old SKU. Each letter in the new SKU must be capitalized.

Display this new information to the user.

This is the text version of more real output. I copied the text from the black area.

Here are the numbers that appear in both lists

[48, 33, 31, 43, 37, 31, 4, 3]

Please enter a price, product name, and product SKU, on one line, no spaces.

Separate each field with a comma: 2.99,myproduct,abcdefghijkl

Old product price: 2.99

Old product name: myproduct

Old product SKU: abcdefghijkl

New product price: 3.2890000000000006

New product name: New-myproduct

New product SKU: CFIL

Here are the numbers that appear in both lists

[48, 33, 31, 43, 37, 31, 4, 3]

Please enter a price, product name, and product SKU, on one line, no spaces.

Separate each field with a comma: 2398.017,it doesn't matter if there's spaces or punctuation in the product name as long as it's not a comma,itDoesntMatterHowLongTheOldSKUIs

Old product price: 2398.017

Old product name: it doesn't matter if there's spaces or punctuation in the product name as long as it's not a comma

Old product SKU: itDoesntMatterHowLongTheOldSKUIs

New product price: 2637.8187

New product name: New-it doesn't matter if there's spaces or punctuation in the product name as long as it's not a comma

New product SKU: DSMTHLGEDU

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions