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...
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...
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...
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...
Early in 2021, the Excalibur Company began developing a new software package to be marketed. The...
Early in 2021, the Excalibur Company began developing a new software package to be marketed. The project was completed in December 2021 at a cost of $102 million. Of this amount, $68 million was spent before technological feasibility was established. Excalibur expects a useful life of five years for the new product with total revenues of $170 million. During 2022, revenue of $51 million was recognized. Required: 1. Prepare a journal entry to record the 2021 development costs. 2. Calculate...
Company is Apple Apple (who you are - Software developer) (Team you manage – App management...
Company is Apple Apple (who you are - Software developer) (Team you manage – App management ). What type of training do your employee needs? Why do they need training? Need Analysis info Determine an instructional scenario where new or revised training is appropriate; where there is an obvious gap between knowledge and performance. Determine what techniques you will use to gather data to substantiate the instructional need (surveys,questionnaires, interviews, etc). Develop a needs assessment instrument. Survey your target population/gather...
Propose an app or software or system that could be beneficial to the population in "new...
Propose an app or software or system that could be beneficial to the population in "new normal" era post-Covid-19 pandemic. You may include figures, flow charts, animations, pseudocodes, or any materials to explain your idea.
Classification of Cryptocurrency Holdings (Adapted) Software Provider (the “Company”) supports and sells computer software. The Company...
Classification of Cryptocurrency Holdings (Adapted) Software Provider (the “Company”) supports and sells computer software. The Company accepts cryptocurrencies (e.g., Bitcoin, Ether, Ripple) as payment for the sale of its computer software. The Company holds its cryptocurrencies partially for investment (e.g., expectation that they will appreciate in value) and partially to use in the future to purchase goods or services. Cryptocurrency is a new type of value and payment method that is different from fiat currency (e.g., U.S. dollars and foreign...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT