2. Create 2 class variable and 1 class list 3. Create 1 class method 4. Calculation of branch sell is given below a. If sellQuantity < 10: i. Branch_sell = quantity b. Else if sellQuantity < 20: i. C. Else i. * 300 Branch_sell = quantity * 350 Branch_sell = quantity * 400 5. Calculation of branch's sell percentage = (branch's sell / total sell) * 100
2. Create 2 class variable and 1 class list 3. Create 1 class method 4. Calculation of branch sell is given below a. If sellQuantity < 10: i. Branch_sell = quantity b. Else if sellQuantity < 20: i. C. Else i. * 300 Branch_sell = quantity * 350 Branch_sell = quantity * 400 5. Calculation of branch's sell percentage = (branch's sell / total sell) * 100
Chapter9: Working With Text Functions And Creating Custom Formats
Section: Chapter Questions
Problem 1.7CP
Related questions
Question
![SultansDine.details()
Total Sell: 17950 Taka
Branch Name: Dhanmondi, Branch Sell: 10000 Taka
Branch consists of total sell's: 55.71%
Branch Name: Baily Road, Branch Sell: 5250 Taka
Branch consists of total sell's: 29.25%
Branch Name: Gulshan, Branch Sell: 2700 Taka
Branch consists of total sell's: 15.04%
Subtaks:
1. Create SultansDine class
2. Create 2 class variable and 1 class list
3. Create 1 class method
4. Calculation of branch sell is given below
a. If sellQuantity < 10:
i.
b. Else if sellQuantity < 20:
i.
C. Else
i.
Branch_sell = quantity * 300
%3D
Branch_sell = quantity * 350
Branch_sell = quantity * 400
5. Calculation of branch's sell percentage = (branch's sell / total sell) * 100](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F72cf5bc9-b705-4f76-b7f6-4442cb6d3246%2Fd15126c6-72b5-46ed-aa01-b84e8e16786e%2Fjr1ihp_processed.png&w=3840&q=75)
Transcribed Image Text:SultansDine.details()
Total Sell: 17950 Taka
Branch Name: Dhanmondi, Branch Sell: 10000 Taka
Branch consists of total sell's: 55.71%
Branch Name: Baily Road, Branch Sell: 5250 Taka
Branch consists of total sell's: 29.25%
Branch Name: Gulshan, Branch Sell: 2700 Taka
Branch consists of total sell's: 15.04%
Subtaks:
1. Create SultansDine class
2. Create 2 class variable and 1 class list
3. Create 1 class method
4. Calculation of branch sell is given below
a. If sellQuantity < 10:
i.
b. Else if sellQuantity < 20:
i.
C. Else
i.
Branch_sell = quantity * 300
%3D
Branch_sell = quantity * 350
Branch_sell = quantity * 400
5. Calculation of branch's sell percentage = (branch's sell / total sell) * 100
![[You are not allowed to change the code below]
Оutput:
Total Number of branch(s): 0
# Write your code here
SultansDine.details()
Total Sell: 0 Taka
print('#####
##)
SultansDine('Dhanmondi')
dhanmodi =
Branch Name: Dhanmondi
Branch Sell: 10000 Taka
dhanmodi.sellQuantity(25)
dhanmodi.branchInformation()
Total Number of branch(s): 1
print('--
SultansDine.details()
Total Sell: 10000 Taka
Branch Name: Dhanmondi, Branch Sell: 10000 Taka
Branch consists of total sell's: 100.00%
print('=
=')
Branch Name: Baily Road
baily_road = SultansDine('Baily Road')
baily_road.sellQuantity(15)
baily_road.branchInformation()
print('-
SultansDine.details()
Branch Sell: 5250 Taka
Total Number of branch(s): 2
Total Sell: 15250 Taka
Branch Name: Dhanmondi, Branch Sell: 10000 Taka
Branch consists of total sell's: 65.57%
Branch Name: Baily Road, Branch Sell: 5250 Taka
print('=
Branch consists of total sell's: 34.43%
===
gulshan = SultansDine('Gulshan')
gulshan.sellQuantity(9)
gulshan.branchlnformation()
print(-
SultansDine.details()
%3D
Branch Name: Gulshan
Branch Sell: 2700 Taka
Total Number of branch(s): 3
Total Sell: 17950 Taka
Branch Name: Dhanmondi, Branch Sell: 10000 Taka
Branch consists of total sell's: 55.71%
Branch Name: Baily Road, Branch Sell: 5250 Taka
Branch consists of total sell's: 29.25%
Branch Name: Gulshan, Branch Sell: 2700 Taka
Branch consists of total sell's: 15.04%
Subtaks:
1. Create SultansDine class](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F72cf5bc9-b705-4f76-b7f6-4442cb6d3246%2Fd15126c6-72b5-46ed-aa01-b84e8e16786e%2F6fqrta_processed.png&w=3840&q=75)
Transcribed Image Text:[You are not allowed to change the code below]
Оutput:
Total Number of branch(s): 0
# Write your code here
SultansDine.details()
Total Sell: 0 Taka
print('#####
##)
SultansDine('Dhanmondi')
dhanmodi =
Branch Name: Dhanmondi
Branch Sell: 10000 Taka
dhanmodi.sellQuantity(25)
dhanmodi.branchInformation()
Total Number of branch(s): 1
print('--
SultansDine.details()
Total Sell: 10000 Taka
Branch Name: Dhanmondi, Branch Sell: 10000 Taka
Branch consists of total sell's: 100.00%
print('=
=')
Branch Name: Baily Road
baily_road = SultansDine('Baily Road')
baily_road.sellQuantity(15)
baily_road.branchInformation()
print('-
SultansDine.details()
Branch Sell: 5250 Taka
Total Number of branch(s): 2
Total Sell: 15250 Taka
Branch Name: Dhanmondi, Branch Sell: 10000 Taka
Branch consists of total sell's: 65.57%
Branch Name: Baily Road, Branch Sell: 5250 Taka
print('=
Branch consists of total sell's: 34.43%
===
gulshan = SultansDine('Gulshan')
gulshan.sellQuantity(9)
gulshan.branchlnformation()
print(-
SultansDine.details()
%3D
Branch Name: Gulshan
Branch Sell: 2700 Taka
Total Number of branch(s): 3
Total Sell: 17950 Taka
Branch Name: Dhanmondi, Branch Sell: 10000 Taka
Branch consists of total sell's: 55.71%
Branch Name: Baily Road, Branch Sell: 5250 Taka
Branch consists of total sell's: 29.25%
Branch Name: Gulshan, Branch Sell: 2700 Taka
Branch consists of total sell's: 15.04%
Subtaks:
1. Create SultansDine class
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
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
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![Oracle 12c: SQL](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)