You are on page 1of 5

COURSE: PROGRAMMING TECHNIQUES MARKAH:

CHAPTER : Introduction to Problem


COURSE CODE:
Solving & Programming, I/O Operation,
BCI1023/BCS1023/
Arithmetic Operation and Control
Statement
ASSESSMENT: ASSIGNMENT
(10%)
No: 1
DCI1023

TIME: 30 Days
/100
INSTRUCTIONS:

1. Submit your flowchart and C Code program (softcopy) through KALAM by


28/3/2018 before 5 pm. Hardcopy of the program must also be submitted to your
lecturer before 5 pm on the same day.
2. This assignment carried 10% from the overall 100 marks. Therefore, please make
sure that your program is free from error.
3. Please save the program in your own storage for your backup copy.

=======================================================================

ANSWER THE FOLLOWING QUESTION:

You are required to calculate the monthly phone bill for the specific mobile service
provider in Malaysia (Celcom/Maxis/Digi/UMobile). Create a flowchart and C code
program for monthly billing system based on real call, sms and internet data rates.
Things to be consider in the system:
1. User will select a plan (prepaid or postpaid, name of package plan)
2. Consider monthly commitment fee (depends on package plan).
3. Consider previous balance amount.
4. Consider any additional usage of call, sms or internet data.

Instructions to student:
i. Include all possible inputs in your c codes.
ii. Calculate the total monthly phone bill.
iii. Each student will be given a specific mobile service provider, main and
secondary looping type (refer to Table 1).
iv. Student must use actual scenarios and rates based on assigned mobile service
provider.
v. Main looping type MUST be applied in the program.
vi. If you need to apply another looping type, you may apply the secondary
looping type.
vii. Students are free to apply any appropriate instructions, functions, statements in
answering the question.
viii. The assignment of the combination (mobile service provider, main and
secondary types) will be provided by the lecturer.
ix. Do not plagiarize, if you are caught plagiarizing among BCI1023/ BCS1023/
DCI1023 student, ZERO (0) mark will be given to all that ‘participates’ in the
plagiarism activities.

Table 1: Combination of mobile service providers and looping types

No. Name Student Provider Main Secondary


ID Looping Looping
Type Type
1 MOHAMMED FADHL CA16131 Celcom for do … while
MOHAMMED NAJI
2 NIELA AMEIRA BINTI SA16008 Celcom while for
MAZLAN
3 NURUL ASYHIKIN BINTI SA16011 Celcom do … while while
MAT YUSOF
4 NURHAMEEZA BINTI SA16012 Celcom for do … while
ZAKARIA
5 NURUL HAFIZAH BINTI SA16015 Celcom while for
MOHD SAUFI
6 NUR SYAFIQAH BINTI SA16019 Celcom do … while while
ROSLAN
7 NURMA ARISHA BINTI SA16026 Celcom for do … while
RUZALANI
8 NORSYAFIQAH BINTI SA16038 Celcom while for
MOHD RASIDI
9 NORSUHANA BINTI MUZI SA16043 Celcom do … while while
10 RAJA NURZULAIKHA BINTI SA16046 Celcom for do … while
RAJA ZULKEFLI
11 NOR ASYIKIN SYUHADA SA16059 Celcom while for
BINTI SUHAIMI
12 MUNIRAH BINTI ABDUL SA16093 Celcom do … while while
MUNIR
13 MOHAMAD SYAFIQ BIN SA17004 Maxis for do … while
NORBAHAZLY
14 SEVITHA A/P SANDARAN SA17005 Maxis while for
MUTHY
15 LEE MENG YAN SA17009 Maxis do … while while
16 SABRINA CHUA WEN HUI SA17010 Maxis for do … while
17 CHAN PEI YIN SA17016 Maxis while for
18 TAN HUI ZHAN SA17033 Maxis do … while while
19 CHEAM WEI KANG SA17036 Maxis for do … while
20 WAN MUHAMMAD HAMDI SB16117 Maxis while for
BIN WAN AHMAD ZAIRI
21 SIN PHIN YIN SB17001 Maxis do … while while
22 HEMADEWI A/P SB17006 Maxis for do … while
MANIMARAN
23 SOONG YU QING SB17009 Maxis while for

2
24 KAHVIYAAH A/P SB17012 Maxis do … while while
LETCHUMANAN
25 GOH XIN PEI SB17014 DiGi for do … while
26 NURUL FARAHIZZATI SB17018 DiGi while for
BINTI MOHD NAZLI
27 NURUL FATIHAH BT. SB17024 DiGi do … while while
MOHAMED FAUZI
28 CHONG SOOK CHI SB17025 DiGi for do … while
29 LAU CHEN WEI SB17029 DiGi while for
30 HIN JUN KIT SB17031 DiGi do … while while
31 HOOI ZHI WEI SB17068 DiGi for do … while
32 MUHAMAD ALIM BIN CHE SB17077 DiGi while for
AZMI
33 NUR MUHAMMAD CB17063 DiGi do … while while
RASYDAN BIN MOHMAD
ROFEE
34 MUNIF BIN MASWAN CB17167 DiGi for do … while
35 FATIN NABILAH BINTI AZIS SA16025 DiGi while for
36 NUR NADIA SHAMILA SA16033 DiGi do … while while
BINTI ZAILANI
37 CHERYLENE TERRY SA16037 U Mobile for do … while
38 SITI SARAH SOFEAH BINTI SA16039 U Mobile while for
AMRAN
39 FARAH MUMTAZ BINTI SA16040 U Mobile do … while while
A.AZIS @ A.AZIZ
40 NUR SYAMIILA BINTI SA16041 U Mobile for do … while
MOHD ARAFAH
41 NADHIRA AKASYAH BINTI SA16044 U Mobile while for
ZUL AZMAN
42 NUR SHAHIRA BINTI AB SC16018 U Mobile do … while while
SUKOR
43 NOOR FARAHATUL SC16030 U Mobile for do … while
ADLENE BINTI MOHD
SUKRI
44 AIN NABILA BINTI MD SC17040 U Mobile while for
NASHA
45 NIK NURDINI NDARINA SC17053 U Mobile do … while while
BINTI SHARIFFUDDIN
SHAIK
46 SHASHITHARAN A/L SC17058 U Mobile for do … while
ANNADORAI
47 MUHAMMAD SYUKRY BIN SC17064 U Mobile while for
KAMARUDIN
48 DAYANG NOR SUHAILA SC17069 U Mobile do … while while
BINTI SULAIMAN

Assignment rubric

Course Outcomes (CO2 and CO3) Full Marks


CO2 Construct and run programs 50

3
Overall program structure
- ability to execute without errors(syntax and logical errors) (5 marks) 5

Apply appropriate input variables and statement relevant to the


problem
- apply appropriate type of variables (5 marks)

- apply appropriate input statement based on different values 15


(char/string/ integer/float etc.) (5 marks)

- follow logical sequence to enter the input data (5 marks)

Apply appropriated Processes and related to the problem


- apply appropriate selection control statement (if, if..else, etc) (15
marks)

- arithmetic expression (10 marks) 25


o Calculation of phone bill based on package
o Other relevant calculations

Output 5m
- presentation of final output (3 marks)

- apply different type of output statement (integer/float/char/constant 5


etc.) (2 marks)

CO3 Differentiate various techniques in solving a problem


(Lifelong Learning 1 : ability to search and manage relevant information 50
from various resources)

1. Flowchart 25
Flowchart: Ability to search and manage correct information related
to problem (given mobile service provider)
- appropriate input, process and output based on selected mobile service
provider list (8 marks) 10

- other related information regarding to mobile billing system (2 marks)

Flowchart: Usage of different symbols/pseudo code statement in


presenting the problem
• start/finish (2 marks)
• input (2 marks)
• output (2 marks)
• process (3 marks) 15
• decision symbol (2 marks)
• appropriate connection (2 marks)
• appropriate sequence (2 marks)
2. Coding 25
Apply appropriate input variables and statements relevant to the
problem
6
- apply various type of variables (3 marks)

4
- apply different type of input statement based on different values
(char/string/ integer/float etc.) (3 marks)
Apply various arithmetic operators and operands
- should be proved in at least 3 arithmetic statements. 6
Applying various type of output format to produce the output of the
problem
3
- char/string/ integer/float etc.
Applying various types of control structure in solving the problem

- Selection statement (if, if.. else) (4 marks)


10
- 2 different types of looping statements (6 marks)

You might also like