Sunday, 12 August 2018

Food Bar @ Fashion Library


Food Bar – Fashion Library is a Community Dining restaurant with a Honor System concept where you pay by dropping the minimum amount into a huge jar. They do not have a cash register and no receipt. The interesting part about this beautiful restaurant is that they are offering really affordable priced all you can eat buffet and kids below 3 years old eat for free.


 Food Bar - Fashion Library Buffet Price: Weekday 
Breakfast (8am - 10.45am) - RM 12
Lunch (12pm - 2.45pm) - RM 19
Tea Time (3pm - 5.15pm) - RM 20

Food Bar - Fashion Library Buffet Price: Saturday & Pub. Holiday
Breakfast (8am - 10.45am) - RM 15
Lunch (12pm - 2.45pm) - RM 25
Tea Time (3pm - 5.15pm) - RM 25






They serve simple food in a rather fancy looking environment, very comfortable, very clean. Food are well presented and different every day. This is also a self-clearing restaurant where you’ll have to bring your used plates, bowls, etc, to a dirty dishes corner. 












Noodle station with various condiments.















We decided to stop by for their Lunch Session. By 11.55am, there were already people sitting inside waiting while the staffs busy working on the meal. I really love the ambiance of this place. It's not overly crowded, tables are well places with enough walking space, fully air conditioned, clean, comfortable, well decorated, overall a lovely restaurant.

Food Bar - Fashion Library (Kota Damansara)
Mon-Sat 8.30am-6pm
A-G-18, Dataran Cascades, 
No 13A, Jalan PJU 5/1, 
Kota Damansara, 
Petaling Jaya, Selangor, Malaysia.
* For private event, kindly contact Ms. Michelle 012-2087808


Thursday, 9 August 2018

Python Payroll Report

A factory has n=12 staff who are paid RM 9.50 per hour. Their wages are calculated as follows:

wage  =  hours * rate                                   for hours between 0 and <=40
          =  380 + (hours - 40) * rate * 1.5      for hours >40 and <=60
          =  665 + (hours - 60) * rate * 2.0      for hours >60


INPUT:
names = ['Sally','Joe','Nick','Nat','May','Wong','Lee','Zoe','Jie','Jay','Kent','Adam']
hours = [10, 15, 20, 25, 30, 30, 35, 45, 60, 65, 55, 40]
wages = [0.00] * len (names)
rate = 9.50
total_wages = 0.00
print ('\n\t PAYROLL RESULTS\t')
print ('')
print('{}.\t{}\t{}\t{}'.format('No', 'Employee name', 'Hours', 'Salary(RM)'))
for i in range (12):
   if (hours[i] > 60):
       wages[i] = 665 + (hours[i] - 60) * rate * 2.0
   elif (hours[i] > 40):
       wages[i] = 380 + (hours[i] - 40) * rate * 1.5
   else:
       wages[i] =hours[i] * rate
       
   total_wages = total_wages + wages[i]
   
   print ('{0}.\t{1}\t\t{2}\t{3:.2f}'.format(i+1, names[i], hours[i], wages[i]))  
print('')
print ('Total salary = RM {0:.2f}'.format(total_wages))



OUTPUT:
        PAYROLL RESULTS

No. Employee name Hours Salary(RM)
1.  Sally          10 95.00
2.  Joe           15 142.50
3.  Nick           20 190.00
4.  Nat           25 237.50
5.  May           30 285.00
6.  Wong           30 285.00
7.  Lee           35 332.50
8.  Zoe           45 451.25
9.  Jie           60 665.00
10. Jay            65 760.00
11. Kent           55 593.75
12. Adam           40 380.00

Total salary = RM 4417.50

Python Examination Report Question 01

Given the names and marks of n=9 students in the course Python Programming.
(a) Calculate their grades (0-49 = F, 50-60=C, 65-79 = B, 80-100 = A)
(b) Calculate the minimum and maximum.

INPUT:
name = ['Susan','May','John', 'Jay', 'Liz','Jason', 'Wen','Bin','Max','Poh','Chong','Adam']
mark = [45, 75, 53, 64, 70, 40, 85, 72, 50, 64, 85, 90]
n= len(name)
print ('\tEXAMINATION RESULTS\n')
print ('\tPYTHON PROGRAMMING\n')
print ('No.  \tStudent name  \tMark \tGrade')
for i in range(n):
   if mark [i] < 50:
       grade='F'
   elif mark[i] <65:
       grade='C'
   elif mark[i] <80:
       grade='B'
   
   else:
       grade='A'
       
   print ('%d    \t%s \t\t%d  \t%s' % (i+1, name[i], mark[i], grade))
print('Min of mark',min(mark))

print ('Max of mark',max(mark))


OUTPUT:
   EXAMINATION RESULTS

   PYTHON PROGRAMMING

No. Student name Mark Grade
1   Susan        45 F
2   May         75 B
3   John         53 C
4   Jay         64 C
5   Liz 70 B
6   Jason        40 F
7   Wen         85 A
8   Bin         72 B
9   Max         50 C
10  Poh         64 C
11  Chong        85 A
12  Adam         90 A
Min of mark 40
Max of mark 90