An 8-gigabyte (GB) thumb drive costs $6.99, and a 32-GB thumb drive costs $12.99 if purchased in quantities of 1–5. Note: You must use different cost values than the examples provided. If you purchase 6–20, there is a 10% discount. If you purchase 21–50, there is a 15% discount. If you purchase 51–100, there is a 20% discount. There is a 25% discount for any quantity over 100. Each of the discounts will be determined by Boolean logic. An example of the necessary interaction is as follows: Enter total number of 8-GB thumb drives to purchase: 10 Enter total number of 32-GB thumb drives to purchase: 76 Total cost: $852.70
An 8-gigabyte (GB) thumb drive costs $6.99, and a 32-GB thumb drive costs $12.99 if purchased in quantities of 1–5. Note: You must use different cost values than the examples provided. If you purchase 6–20, there is a 10% discount. If you purchase 21–50, there is a 15% discount. If you purchase 51–100, there is a 20% discount. There is a 25% discount for any quantity over 100. Each of the discounts will be determined by Boolean logic. An example of the necessary interaction is as follows: Enter total number of 8-GB thumb drives to purchase: 10 Enter total number of 32-GB thumb drives to purchase: 76 Total cost: $852.70
Chapter2: Formatting Workbook Text And Data
Section: Chapter Questions
Problem 1.8CP
Related questions
Question
Using Python
An 8-gigabyte (GB) thumb drive costs $6.99, and a 32-GB thumb drive costs $12.99 if purchased in quantities of 1–5. Note: You must use different cost values than the examples provided.
If you purchase 6–20, there is a 10% discount. If you purchase 21–50, there is a 15% discount. If you purchase 51–100, there is a 20% discount. There is a 25% discount for any quantity over 100. Each of the discounts will be determined by Boolean logic.
An example of the necessary interaction is as follows:
- Enter total number of 8-GB thumb drives to purchase: 10
- Enter total number of 32-GB thumb drives to purchase: 76
- Total cost: $852.70
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 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
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A+ Guide To It Technical Support
Computer Science
ISBN:
9780357108291
Author:
ANDREWS, Jean.
Publisher:
Cengage,
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A+ Guide To It Technical Support
Computer Science
ISBN:
9780357108291
Author:
ANDREWS, Jean.
Publisher:
Cengage,
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage