Question

In: Computer Science

Python/Thonny - In an office chair store, 3 types are sold: basic, standard and luxury. In...

Python/Thonny - In an office chair store, 3 types are sold: basic, standard and luxury. In addition there are normal customers and frequent customers. The price of the chairs is: Basic $ 700.00 each Standard $ 900.00 each Luxury $ 1,500.00 each The store owner has decided to give a 20% discount to frequent customers. In addition, it has decided to apply the following wholesale discount policy to normal customers: If your purchase is> = $ 10,000 and <$ 20,000 a 10% discount if your purchase is> = $ 20,000 a 15% discount Write a program that asks the type of chair, the type of customer and the quantity to buy (suppose that only one type of chair is to be purchased) and calculate and show: the price before applying discount, the amount of money granted by discount and The total to be paid by the customer.

Solutions

Expert Solution

chairType = input("Enter type of chair (basic, standard or luxury): ")
customerType = input("Enter type of customer (frequent or normal): ")
quantity = int(input("Enter quantity to buy: "))
price = 0
discount = 0
if(chairType=="basic"):
    price = quantity*700
elif(chairType=="standard"):
    price = quantity*900
else:
    price = quantity*1500
print("Price before applying discount =",price)
if(customerType=="frequent"):
    discount = price*0.20
else:
    if(price>=10000 and price<=20000):
        discount = price*0.10
    elif(price>=20000):
        discount = price * 0.15
price = price - discount
print("Amount of money granted by discount =",discount)
print("The total to be paid by the customer =",(price-discount))


Related Solutions

A furniture supplier, Acme Chairs, Inc., manufactures a Basic office chair and a Deluxe office chair....
A furniture supplier, Acme Chairs, Inc., manufactures a Basic office chair and a Deluxe office chair. Each Basic chair costs $25.00 to manufacture, and each Deluxe office chair costs $40.00 to manufacture. Acme Chairs wishes to determine the optimal production quantities per day for each chair model in order to minimize overall total cost. The production of each chair requires three types of materials: Wood, Primer, and Paint. The amount of material available per day to manufacture the chairs is...
An office furniture store is having a sale on a certain type of office chair. The...
An office furniture store is having a sale on a certain type of office chair. The chairs are priced at GH¢800 per chair. The probability distribution for the number of chairs sold to an individual customer is Number of chairs 1 2 3 4 Probability 0.15 0.40 0.10 0.35 a) Find the probability that the number of chairs sold to an individual customer is odd. b) Find the expected number and standard deviation of chairs sold to an individual customer....
Graham Inc. produces three different types of chairs: an outdoor chair, an office chair, and a...
Graham Inc. produces three different types of chairs: an outdoor chair, an office chair, and a kitchen chair. The outdoor chairs are made entirely of plastic. The office chairs have a plastic base and are covered in leather. The kitchen chairs are made out of wood with a leather seat. As the controller, you are expected to prepare Graham 's operating budget for January of 2021. Here is Graham's balance sheet as of 12/31/2020: Cash 12100 AR 9000 DM 810875...
3. The Chair Trade is an independent furniture store that specializes in selling Amish-style furniture and...
3. The Chair Trade is an independent furniture store that specializes in selling Amish-style furniture and household items. Until the first of the year, its overall sales revenue was slowly increasing. Since the first of the year, however, sales of small items increased while sales of furniture decreased, leading to declining sales revenue. How could the owner of the store rely on market intelligence to understand the change in consumer buying behavior? Should the owner rely solely on market intelligence?...
Lee’s Furniture manufactures two types of chairs---recliner and office chair. The following activity and cost information...
Lee’s Furniture manufactures two types of chairs---recliner and office chair. The following activity and cost information has been compiled:                                Number of             Number of                        Number of Product                         Setups          Components           Direct Labor Hours Recliner                                5                          40                                    300 Office chair                           8                          45                                    175 Overhead costs          $80,000               $180,000 Assume a traditional costing system applies the $260,000 of overhead costs based on direct labor hours. a.   What is the total amount of overhead costs assigned to the recliner? b.   What is the total amount...
3-44) Scholes Systems supplies a particular type of office chair to large retailers such as Target,...
3-44) Scholes Systems supplies a particular type of office chair to large retailers such as Target, Costco, and Office Max. Scholes is concerned about the possible effects of inflation on its operations. Presently, the company sells 88,000 units for $60 per unit. The variable production costs are $30, and fixed costs amount to $1,480,000. Production engineers have advised management that they expect unit labor costs to rise by 20 percent and unit materials costs to rise by 15 percent in...
Several types of yogurt are sold in a small general store. From a past study of...
Several types of yogurt are sold in a small general store. From a past study of customer​ selections, the owner knows that 25​% of the customers ordered flavor​ A, 30​%, flavor​ B, 18​%, flavor​ C, 13​%, flavor​ D, and the​ remainder, flavor E. Now the​ owner, who thinks that the customer preferences have​ changed, randomly samples 80 customers and finds that 15 prefer​ A, 17 prefer​ B, 30 prefer​ C, 7 7 prefer E and the remainder prefer D. Determine...
Ruby Company produces a chair for which the standard specifies 3 yards of material per unit....
Ruby Company produces a chair for which the standard specifies 3 yards of material per unit. The standard price of one yard of material is $10.40. During the month, 5,900 chairs were manufactured, using 17,300 yards at a cost of $9.78 per yard. Determine the following: Enter favorable variances as negative numbers. a. Direct materials price variance $ b. Direct materials quantity variance $ c. Total direct materials cost variance $
What are the 3 types of boundary effects and give a basic description of each?
What are the 3 types of boundary effects and give a basic description of each?
Create a Python 3 program that acts as a grocery store shopping cart. 1. Create a...
Create a Python 3 program that acts as a grocery store shopping cart. 1. Create a class named GroceryItem. This class should contain: - an __init__ method that initializes the item’s name and price - a get_name method that returns the item’s name - a get_price method that returns the item’s price - a __str__ method that returns a string representation of that GroceryItem - an unimplemented method is_perishable Save this class in GroceryItem.py. 2. Create a subclass Perishable that...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT