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

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter9: Working With Text Functions And Creating Custom Formats
Section: Chapter Questions
Problem 1.7CP
icon
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
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
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
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Data members
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning