python code Input: Name of a person Age of that person Original Price of an item Process: For every vowel in the name of that person, add 0.5% to the discount. If that person is below 18 years old, add 10% discount. If that person is above 60 years old, add 2% multiply by the number of consonants in the person’s name If the length of that person’s name is odd, remove 15% discount else add 10% discount. If the original price of the item is odd, add 20% discount else remove 15% Output: Discounted Price of the item
python code Input: Name of a person Age of that person Original Price of an item Process: For every vowel in the name of that person, add 0.5% to the discount. If that person is below 18 years old, add 10% discount. If that person is above 60 years old, add 2% multiply by the number of consonants in the person’s name If the length of that person’s name is odd, remove 15% discount else add 10% discount. If the original price of the item is odd, add 20% discount else remove 15% Output: Discounted Price of the item
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 16PP: (Computation) Among other applications, Pascal’s triangle (see Figure 7.22) provides a means of...
Related questions
Question
100%
python code
Input:
Name of a person
Age of that person
Original Price of an item
Process:
- For every vowel in the name of that person, add 0.5% to the discount.
- If that person is below 18 years old, add 10% discount.
- If that person is above 60 years old, add 2% multiply by the number of consonants in the person’s name
- If the length of that person’s name is odd, remove 15% discount else add 10% discount.
- If the original price of the item is odd, add 20% discount else remove 15%
Output:
Discounted Price of the item
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 4 images
Knowledge Booster
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.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage