What your Python program should do Create a new repl for this lab. 1. Ask the user to enter the product name. 2. Ask the user to enter the product's price as a decimal value with no dollar sign. 3. Ask the user to enter the product's category. 4. Ask the user to enter the product's current SKU. Show this original information to the user. Using your knowledge of Python, show the appropriate output below based on what the user typed in.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter7: String Manipulation
Section: Chapter Questions
Problem 3E
icon
Related questions
Question
100%

Please avoid hardcoding.

What your Python program should do
Create a new repl for this lab.
1. Ask the user to enter the product name.
2. Ask the user to enter the product's price as a decimal value with no dollar sign.
3. Ask the user to enter the product's category.
4. Ask the user to enter the product's current SKU.
Show this original information to the user.
Using your knowledge of Python, show the appropriate output below based on what the user
typed in.
Transcribed Image Text:What your Python program should do Create a new repl for this lab. 1. Ask the user to enter the product name. 2. Ask the user to enter the product's price as a decimal value with no dollar sign. 3. Ask the user to enter the product's category. 4. Ask the user to enter the product's current SKU. Show this original information to the user. Using your knowledge of Python, show the appropriate output below based on what the user typed in.
Product name
If the length of the product name is an even number, tell the user:
"Wow, this is even better!"
If the length of the product name is an odd number, tell the user:
"What an odd product!"
Product price
If the original product price is less than $50, tell the user:
"This is a big purchase"
If the original product price is less than $25, tell the user:
"This is a medium purchase"
If the original product price is less than $10, tell the user:
"This is a small purchase"
Your program must show only one of the outputs in this section.
Product category
If the product category is "tech", increase the original price by 20%.
If the product category is "personal", discount the original price by 10%.
If the product category is anything other than "tech" or "personal", increase the original price
by 10%.
Tell the user what the new price is.
Product SKU
Reverse the entire original SKU and capitalize all the letters. This becomes the new SKU.
For example, if the original SKU is:
abcdefg
The new SKU is:
GFEDCBA
Tell the user what the new SKU is.
Transcribed Image Text:Product name If the length of the product name is an even number, tell the user: "Wow, this is even better!" If the length of the product name is an odd number, tell the user: "What an odd product!" Product price If the original product price is less than $50, tell the user: "This is a big purchase" If the original product price is less than $25, tell the user: "This is a medium purchase" If the original product price is less than $10, tell the user: "This is a small purchase" Your program must show only one of the outputs in this section. Product category If the product category is "tech", increase the original price by 20%. If the product category is "personal", discount the original price by 10%. If the product category is anything other than "tech" or "personal", increase the original price by 10%. Tell the user what the new price is. Product SKU Reverse the entire original SKU and capitalize all the letters. This becomes the new SKU. For example, if the original SKU is: abcdefg The new SKU is: GFEDCBA Tell the user what the new SKU is.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Top down approach design
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT