Create a Raptor flowchart and name the file Software Discountslname where Iname is YOUR last name. Here is the problem to solve: A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Discount Quantity 10-19 20% 20-99 30% 100 or more 40% Use the flowchart on the next page as a guide. You will need to fill in the conditions or Boolean expressions in the selection structures, using the variables that are indicated in the model on the next page. Do not add any variables. Fill in the missing assignment statements in the selection structures. Last, fill in the three assignment boxes to calculate: 1) the amount the customer owes before the discount (quantity times the price of one software package) 2) the amount of the discount (you've already calculated the discountRate in the selection structure) and 3) the amount the customer owes after the discount is applied Output the information to the user. Test your program 4 times, using the quantities 9, 19, 25, and 110.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
### Software Discount Calculation using Raptor Flowchart

**Objective**: Create a Raptor flowchart and name the file `Software Discounts\lname` where `lname` is **YOUR** last name.

**Problem Statement**: 
A software company sells a package that retails for $99. Quantity discounts are given according to the following table:

| Quantity      | Discount  |
| ------------- |:---------:|
| 10-19         | 20%       |
| 20-99         | 30%       |
| 100 or more   | 40%       |

**Instructions**:

1. **Flowchart Guidance**: 
    - Use the flowchart on the next page as a guide.
    - Fill in the conditions or Boolean expressions in the selection structures using the variables indicated in the model.
    - Do not add any variables.
    - Fill in the missing assignment statements in the selection structures.
    - Fill in the three assignment boxes to calculate:
        1. The amount the customer owes before the discount (quantity times the price of one software package)
        2. The amount of the discount (already calculated as `discountRate` in the selection structure)
        3. The amount the customer owes after the discount is applied.

2. **Output**:
    - Display the information to the user.

3. **Testing**:
    - Test your program 4 times using the quantities 9, 19, 25, and 110.

**Flowchart Step-by-Step Explanation**:
 
- **Start**: Begin the Raptor flowchart.
- **Input**:
  - Read the quantity of software packages the customer wants to purchase.
  
- **Selection Structure**:
  - **Condition 1**: If quantity is between 10 and 19, set `discountRate` to 20%.
  - **Condition 2**: If quantity is between 20 and 99, set `discountRate` to 30%.
  - **Condition 3**: If quantity is 100 or more, set `discountRate` to 40%.
  - If none of the above conditions are met, `discountRate` remains 0%.

- **Assignments**:
  - Calculate the amount before discount: `amountBeforeDiscount = quantity * $99`
  - Calculate the discount: `discountAmount = amountBeforeDiscount * (discountRate / 100)`
  - Calculate the amount
Transcribed Image Text:### Software Discount Calculation using Raptor Flowchart **Objective**: Create a Raptor flowchart and name the file `Software Discounts\lname` where `lname` is **YOUR** last name. **Problem Statement**: A software company sells a package that retails for $99. Quantity discounts are given according to the following table: | Quantity | Discount | | ------------- |:---------:| | 10-19 | 20% | | 20-99 | 30% | | 100 or more | 40% | **Instructions**: 1. **Flowchart Guidance**: - Use the flowchart on the next page as a guide. - Fill in the conditions or Boolean expressions in the selection structures using the variables indicated in the model. - Do not add any variables. - Fill in the missing assignment statements in the selection structures. - Fill in the three assignment boxes to calculate: 1. The amount the customer owes before the discount (quantity times the price of one software package) 2. The amount of the discount (already calculated as `discountRate` in the selection structure) 3. The amount the customer owes after the discount is applied. 2. **Output**: - Display the information to the user. 3. **Testing**: - Test your program 4 times using the quantities 9, 19, 25, and 110. **Flowchart Step-by-Step Explanation**: - **Start**: Begin the Raptor flowchart. - **Input**: - Read the quantity of software packages the customer wants to purchase. - **Selection Structure**: - **Condition 1**: If quantity is between 10 and 19, set `discountRate` to 20%. - **Condition 2**: If quantity is between 20 and 99, set `discountRate` to 30%. - **Condition 3**: If quantity is 100 or more, set `discountRate` to 40%. - If none of the above conditions are met, `discountRate` remains 0%. - **Assignments**: - Calculate the amount before discount: `amountBeforeDiscount = quantity * $99` - Calculate the discount: `discountAmount = amountBeforeDiscount * (discountRate / 100)` - Calculate the amount
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY