Question

In: Computer Science

Design the logic in pseudocode for Bugz App software company that sells a software package as...

Design the logic in pseudocode for Bugz App software company that sells a software package
as follows.
1. The retail price of the package is $99
2. Quantity discounts are given on purchases of 10 or more units as follows The program
must allow the user to enter the customer’s name and number of units purchased, and
output the original cost of the units purchased, the percentage discount given, the dollar
amount of the discount given, and the final cost after discount.
1. If the customer purchases up to 19 units, they receive a discount of 20%
2. 20 to 49 units – discount of 30%
3. 50 to 99 units – discount of 40%
4. 100 or more units – discount of 50%

Solutions

Expert Solution

Thanks for the question.


Here is the completed code for this problem. 

Comments are included, go through it, learn how things work and let me know if you have any doubts or if you need anything to change. 

If you are satisfied with the solution, please rate the answer. 


Thanks
===========================================================================


=======================
PSEUDO CODE GIVEN BELOW
=======================


// set the price per unit
retail_price=99
// create a variable discount with value as 0
discount=0
//ask name and units from user
name = INPUT('Enter customer name: ')
units = INPUT('Enter number of units to be purchased: '))

// check the units are not negative
if (units<=0){
    print('Invalid number')
}
else{
    // find out the discount to be given
    if (units<=19) {
        discount=20
    }
    else if (units<=49){
        discount=30
}
    else if (units<=99){

        discount=40
}
    else{
        units=50
}

//calculations are done below
original_cost=units*retail_price
total_discount=original_cost*discount/100
net_cost=original_cost-total_discount

OUTPUT('Original Cost: $',original_cost)
OUTPUT('Discount : ',discount,"%")
OUTPUT('Total Discount: $',total_discount)
OUTPUT('Final Cost: $',net_cost)

}

Related Solutions

Software Sales A software company sells three packages, Package A, Package B, and Package C, which...
Software Sales A software company sells three packages, Package A, Package B, and Package C, which retail for $99, $199, and $299, respectively. Quantity discounts are given according to the following table: Quantity Discount 10 through 19 20% ,20 through 49 30% ,50 through 99 40% ,100 or more 50% . Create a C++ program that allows the user to enter the number of units sold for each software package. The application should calculate and display the order amounts and...
Task #1 – Software Sales A software company sells a package that retails for $99. Quantity...
Task #1 – Software Sales A software company sells a package that retails for $99. Quantity discounts are given according to the following: Quantity Discount 1 - 9 NO DISCOUNT 10 – 19 20% 20 – 49 30% 50 – 99 40% 100 or more 50% Your program calculates the final purchase price of the software packages based on the quantity purchased. If a value of 0 or less (a negative number) is entered, display the message “Invalid Quantity” and...
Design the logic in pseudocode for Sign Over Your Money online bank check ordering company as...
Design the logic in pseudocode for Sign Over Your Money online bank check ordering company as follows: 1. The regular price is $6.95 per box of checks; if the customer orders at least 4 boxes, then the price is $4.95 per box. 2. Standard lettering is included in the price, but if the customer wants either calligraphy or elegant lettering, an additional charge of $3.95 applies. 3. If the customer wants a check register, then an additional charge of $2.95...
this is in excel VB8 Program 2: Software Sales A software company sells three packages, Package...
this is in excel VB8 Program 2: Software Sales A software company sells three packages, Package A, Package B, and Package C, which retail for $99, $199, and $299, respectively. Quantity discounts are given according to the following table: Quantity Discount 10 through 19 20% 20 through 49 30% 50 through 99 40% 100 or more 50% Create an application that allows the user to enter the number of units sold for each software package. The application should calculate and...
Pseudocode and flowcharts are fiexible tool for early development of software design.
 Pseudocode and flowcharts are fiexible tool for early development of software design. They are used only as a plenning tool, and not the final product. Remember that when you eventually convert your pseudocode or your flowchart to a specific programming language (lke Javal you do not have such flexibility because very specific syntax will be required Please study chapter two and the "flowchart symbols article on the "course document" section before you attempt the following project. Flowchart Design The idea...
========================================================================= A software company sells a package that retails for $99. Quantity discounts are given according...
========================================================================= 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–49 30% 50–99 40% 100 or more 50% Write a program that asks for the number of units sold and computes the total cost of the purchase. Input Validation: Make sure the number of units is greater than 0. ========================================================================= the pseudo code is: There comes situations in real life when we need to make some...
´Software Engineer Christopher is hired by software company, ABC Software, and involved in the design of...
´Software Engineer Christopher is hired by software company, ABC Software, and involved in the design of specialized software for Gladstone City Council (GCC) in connection with the operations of facilities that impact on public health and safety, such as those that control air and water quality. Testing the software system is part of the design process. Christopher conducts extensive testing and finds that the software is safe to use under existing standards. But Christopher is aware that new draft standards...
A tool and die company is considering the purchase of a drill press with fuzzy-logic software...
A tool and die company is considering the purchase of a drill press with fuzzy-logic software to improve accuracy and reduce tool wear. The company has the opportunity to buy a slightly used machine for $15,000 or new one for $21,000. Because the new machine is a more sophisticated model, its operating cost is expected to be $7000 per year, while the used machine is expected to require $8200 per year. Each machine is expected to have 25 years life...
PSEUDOCODE: 1. You are designing software for a voting booth. Please create pseudocode for a modular...
PSEUDOCODE: 1. You are designing software for a voting booth. Please create pseudocode for a modular program that: - Takes in a user inputted integer for age. If their age is below 18, display "you are too young to vote" - Only If their age is high enough, please ask them which candidate they wish to vote for. Valid options are "dog", "cat", "horse" - If they did not choose a valid option display "you did not choose a valid...
a.Create the logic for a program using pseudocode that calculates and displays the amount of money...
a.Create the logic for a program using pseudocode that calculates and displays the amount of money you would have if you invested $5000 at 2 percent simple interest for one year. Create a separate method to do the calculation and return the result to be displayed. b.Modify the program in Exercise 2a so that the main program prompts the user for the amount of money and passes it to the interest-calculating method. c.Modify the program in Exercise 2b so that...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT