Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
45 views
Lab Task 3 - Question
Uploaded by
F2066 MUHAMMAD JOSHWAN BIN MUHD IRWAN JOHNSON
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Lab Task 3 - Question For Later
Download
Save
Save Lab Task 3 - Question For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
45 views
Lab Task 3 - Question
Uploaded by
F2066 MUHAMMAD JOSHWAN BIN MUHD IRWAN JOHNSON
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save Lab Task 3 - Question For Later
Carousel Previous
Carousel Next
Save
Save Lab Task 3 - Question For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 4
Search
Fullscreen
NAME REGISTRATIONNO | MARKS DATE a [eas - 4 ‘CODEISUBJECT FC20113 - PROGRAMMING | 4 FUNDAMENTALS: 1 00 TAB TASK 3 LECTURER —_ CLO 2: Show simple programs by developing code to solve problems in a computer using C++ programming language. (P2, PLO 3) TOPIC: 3.2 SHOW PROBLEM USING SELECTION CONTROL STRUCTURES 3.3 SHOW PROBLEMS USING LOOPS CONTROL STRUCTURES DURATION: 2 HOURS INSTRUCTION: ANSWER ALL THE QUESTIONS QUESTION 1 i. Write a complete C + program to calculate the monthly bill for outgoing calls including the local and international call. The rate of calling is fixed at RMO.20 and RMO.50 per minutes for local and international calls, respectively. 6% service charge will be included in the total bill for a customer. (CLO2, P2) To do that, you may need to follow these steps a. Create variables. b. Declare each variable with the most suitable data type. c. Initialize variable with initial value if applicable. d. Write input statement to accept input from user. e. Using do..while and if..else statement, this program should be able to: + + Display "Invalid input” message when user enters minutes for local or international calls less than 0. Sample output as in Figure 1 eeu scar aeey C es vereC eying Coast eee Cece vereC ety ais Figure 1{Using another do...while statement, allow the user to enter the character "Y" or "y" to continue. Otherwise, the program will be terminated. ii, Execute the program. (CLO2, P1) iii, Fix any error if occurred. Expected output as in Figure 2 and Figure 3. (CLO2, P2) a ee a Bt eee eer es rer CeCe ieee phone number : @12-3456789 cere eRe U RC Fa eee EL) international call in minutes : 20 Demet ee POM CR Ca ICs crore mere eT ED ag Srey aera iat Tate : RM 10 Monthly Outgoing Call Paid : RM 37 otal Monthly Paid Including Service Charge Cie peace st MEGae ee Ura ey a SC Dye ee Teeny EE nter local call in minutes PBC ets local call in minut Reger etie aer eee Un eae PSEC Reus eet istu rae CSU ees) COBO RS La Greeters sme OMe FU ee) ieoeeebeeeeae Tn Te ers Ga eae Muhammad Amar Haikal bin Ahmad : @11-2233445 cing Call Paid As Belo 1 Local Call Total International Call aes Stace St Rea) Figure 3NAME z REGISTRATION NO MARKS DATE GLASS ‘CODEISUBJECT DFC20113 - PROGRAMMING FUNDAMENTALS LAB TASK 3 100 LECTURER RUBRIC LABORATORY TASK 3 Performance ADVANCED INTERMEDIATE BEGINNER WEAK ea z . 7 x Weightage | score Allvariables are named with ‘Able to declare variables and most | Able to declare variables and some| Able to declare variables but all ae descriptive names and using the | of variables using descriptive ‘of variables using descriptive variable names are cryptic and 10 ©) | most suitable datatypes. names and suitable data types. | names and suitable data types. | using incorrect data types. ‘Student able to write allthe input | Student able to write most the | Studentable to write some the | Student able to write a few input Input & Output | output statements given and | input & output statements based | input & output statements based | & output statements but not Statement (P)_ | use correct symbol based on the | onthe scenario given and use _| on the scenario given but notin | based on scenario gwen, 20 scenario, correct symbol correct symbol Selection Students able to write code and | students able to write most ofthe | csent able townte some the | Student able to wre some the Control Use the correct selection contrl_| selection contol structures but | Stems abletciurte some the | Student able to write some the as Structures | structures and clearly solves does not derive a solution tothe | Ssiecton control structures with | selection con es e) the problem, problem. u ‘Students able to write most ofthe | Students able to write some the | Students able to write some the Loops Control | students able to writecode use igo control structures but does | loap cantal structures with minor | loop control structures with major Sens | tc eaetop contol atures morécivescoumonetie | ener was Le crenitation | Program withexpected output | programs with unexpected output. | minor errors major errors ecaton roran | 00% | 00 : a *Zero (0) mark will be given if students do not answer / perform the criteria needed. " F fua Progham |PPPT DH6d) tn
You might also like
Lab Task 3-Question
PDF
No ratings yet
Lab Task 3-Question
4 pages
Polytechnic Seberang Perai Department of Information and Communication Technology
PDF
No ratings yet
Polytechnic Seberang Perai Department of Information and Communication Technology
8 pages
DFC20113 - PBT1 (Q) - Sesi 2 2023 - 2024
PDF
No ratings yet
DFC20113 - PBT1 (Q) - Sesi 2 2023 - 2024
3 pages
Problem Solving and Programming With C 12 September 2021 With Lab Exercises
PDF
No ratings yet
Problem Solving and Programming With C 12 September 2021 With Lab Exercises
6 pages
PBT1 Question
PDF
No ratings yet
PBT1 Question
5 pages
If..else Related Problems1
PDF
100% (1)
If..else Related Problems1
6 pages
Demo PPS
PDF
No ratings yet
Demo PPS
2 pages
Lab Task # 03
PDF
No ratings yet
Lab Task # 03
20 pages
DCP5101 Lab 6
PDF
No ratings yet
DCP5101 Lab 6
6 pages
Course Module-C Lab
PDF
No ratings yet
Course Module-C Lab
7 pages
Second Semester 2014 - 2015 Midterm Exam, Thursday April 2, 2015 Time: 120 Minutes
PDF
No ratings yet
Second Semester 2014 - 2015 Midterm Exam, Thursday April 2, 2015 Time: 120 Minutes
9 pages
Template For Front Page Lab Manual
PDF
No ratings yet
Template For Front Page Lab Manual
85 pages
Lab 21
PDF
No ratings yet
Lab 21
8 pages
CBSE Class 11 Computer Science Sample Paper 2018
PDF
No ratings yet
CBSE Class 11 Computer Science Sample Paper 2018
6 pages
SRM Institute of Science and Technology College of Engineering and Technology
PDF
No ratings yet
SRM Institute of Science and Technology College of Engineering and Technology
5 pages
Lab Task 2
PDF
No ratings yet
Lab Task 2
2 pages
23escs11 Lab Mannual
PDF
No ratings yet
23escs11 Lab Mannual
40 pages
C Mid Sem PPR
PDF
No ratings yet
C Mid Sem PPR
2 pages
Chapter 4 Programming
PDF
No ratings yet
Chapter 4 Programming
56 pages
III Sem BSC (CBCS)
PDF
No ratings yet
III Sem BSC (CBCS)
4 pages
Updated CPL Manual 2019-20
PDF
No ratings yet
Updated CPL Manual 2019-20
36 pages
C Syll 21 Scheme
PDF
No ratings yet
C Syll 21 Scheme
4 pages
CompSci U1 P2 2019
PDF
No ratings yet
CompSci U1 P2 2019
26 pages
CPL Lab Manual With Cover Page Jan2021
PDF
No ratings yet
CPL Lab Manual With Cover Page Jan2021
71 pages
M3-R4 Programming and Problem Solving Through C PDF
PDF
No ratings yet
M3-R4 Programming and Problem Solving Through C PDF
16 pages
CompSci U1 P2 2024
PDF
No ratings yet
CompSci U1 P2 2024
16 pages
The Following Code Should Output The Odd Integers From 999 To 1
PDF
No ratings yet
The Following Code Should Output The Odd Integers From 999 To 1
2 pages
Computer Science Ssc-Ii: Answer Sheet No.
PDF
No ratings yet
Computer Science Ssc-Ii: Answer Sheet No.
8 pages
SSC-II Computer Science (2 Sets With Solutions) - Combined
PDF
No ratings yet
SSC-II Computer Science (2 Sets With Solutions) - Combined
37 pages
Section A: y Z y X
PDF
No ratings yet
Section A: y Z y X
5 pages
Previous Year Question Papers
PDF
No ratings yet
Previous Year Question Papers
12 pages
Solution of PPS Mid Sem 1 Exam Paper W24.Docx
PDF
No ratings yet
Solution of PPS Mid Sem 1 Exam Paper W24.Docx
16 pages
Assignment of P & T: Infosys Connect Program
PDF
No ratings yet
Assignment of P & T: Infosys Connect Program
52 pages
CT 1 - Solution
PDF
No ratings yet
CT 1 - Solution
4 pages
EE124 Assignment I
PDF
No ratings yet
EE124 Assignment I
1 page
Slot 05-06-07 Basic Logics
PDF
No ratings yet
Slot 05-06-07 Basic Logics
60 pages
Asgn2-20aug2024
PDF
No ratings yet
Asgn2-20aug2024
3 pages
CSC128 - Lesson Plan (1E)
PDF
No ratings yet
CSC128 - Lesson Plan (1E)
3 pages
PDS LAB 1 Manual
PDF
No ratings yet
PDS LAB 1 Manual
77 pages
class 10 computer
PDF
No ratings yet
class 10 computer
2 pages
11 Ict
PDF
No ratings yet
11 Ict
16 pages
CC-1 LAB MANUAL
PDF
No ratings yet
CC-1 LAB MANUAL
51 pages
Selection Control Structures: Problem Concept
PDF
No ratings yet
Selection Control Structures: Problem Concept
57 pages
18CS101 FOCS Question Bank
PDF
No ratings yet
18CS101 FOCS Question Bank
13 pages
N 66027965 Bef 32
PDF
No ratings yet
N 66027965 Bef 32
23 pages
FPG511S Examination 3, Opportunity 1 Memo
PDF
No ratings yet
FPG511S Examination 3, Opportunity 1 Memo
15 pages
2.1 Flowchart Workbook by Inqilab Patel
PDF
No ratings yet
2.1 Flowchart Workbook by Inqilab Patel
87 pages
PPS Important Questions
PDF
No ratings yet
PPS Important Questions
3 pages
CSCP1013 Introduction To Computing Theory
PDF
No ratings yet
CSCP1013 Introduction To Computing Theory
9 pages
Pps CT 1 Set 1
PDF
No ratings yet
Pps CT 1 Set 1
8 pages
C Programming Material
PDF
No ratings yet
C Programming Material
10 pages
10th Computer FLPs
PDF
No ratings yet
10th Computer FLPs
10 pages
PC previous year question papers_adf4ff00-6ed5-4f5f-b59f-a12e0749d51e
PDF
No ratings yet
PC previous year question papers_adf4ff00-6ed5-4f5f-b59f-a12e0749d51e
5 pages
B.Sc. Electrical Engineering Technology Maximum Marks:: Switch-Case? A Sample Output of The Program Is Given Below
PDF
No ratings yet
B.Sc. Electrical Engineering Technology Maximum Marks:: Switch-Case? A Sample Output of The Program Is Given Below
2 pages
Syllabus - 2024 - Sem - 1 - FOP - T and FOP - P
PDF
No ratings yet
Syllabus - 2024 - Sem - 1 - FOP - T and FOP - P
10 pages
PIC PYQ
PDF
No ratings yet
PIC PYQ
13 pages
Cpps Lab Maunal
PDF
No ratings yet
Cpps Lab Maunal
27 pages
Computer Science
PDF
No ratings yet
Computer Science
7 pages
CS 211 Term 1 Assignment PDF
PDF
No ratings yet
CS 211 Term 1 Assignment PDF
3 pages
Related titles
Click to expand Related Titles
Carousel Previous
Carousel Next
Lab Task 3-Question
PDF
Lab Task 3-Question
Polytechnic Seberang Perai Department of Information and Communication Technology
PDF
Polytechnic Seberang Perai Department of Information and Communication Technology
DFC20113 - PBT1 (Q) - Sesi 2 2023 - 2024
PDF
DFC20113 - PBT1 (Q) - Sesi 2 2023 - 2024
Problem Solving and Programming With C 12 September 2021 With Lab Exercises
PDF
Problem Solving and Programming With C 12 September 2021 With Lab Exercises
PBT1 Question
PDF
PBT1 Question
If..else Related Problems1
PDF
If..else Related Problems1
Demo PPS
PDF
Demo PPS
Lab Task # 03
PDF
Lab Task # 03
DCP5101 Lab 6
PDF
DCP5101 Lab 6
Course Module-C Lab
PDF
Course Module-C Lab
Second Semester 2014 - 2015 Midterm Exam, Thursday April 2, 2015 Time: 120 Minutes
PDF
Second Semester 2014 - 2015 Midterm Exam, Thursday April 2, 2015 Time: 120 Minutes
Template For Front Page Lab Manual
PDF
Template For Front Page Lab Manual
Lab 21
PDF
Lab 21
CBSE Class 11 Computer Science Sample Paper 2018
PDF
CBSE Class 11 Computer Science Sample Paper 2018
SRM Institute of Science and Technology College of Engineering and Technology
PDF
SRM Institute of Science and Technology College of Engineering and Technology
Lab Task 2
PDF
Lab Task 2
23escs11 Lab Mannual
PDF
23escs11 Lab Mannual
C Mid Sem PPR
PDF
C Mid Sem PPR
Chapter 4 Programming
PDF
Chapter 4 Programming
III Sem BSC (CBCS)
PDF
III Sem BSC (CBCS)
Updated CPL Manual 2019-20
PDF
Updated CPL Manual 2019-20
C Syll 21 Scheme
PDF
C Syll 21 Scheme
CompSci U1 P2 2019
PDF
CompSci U1 P2 2019
CPL Lab Manual With Cover Page Jan2021
PDF
CPL Lab Manual With Cover Page Jan2021
M3-R4 Programming and Problem Solving Through C PDF
PDF
M3-R4 Programming and Problem Solving Through C PDF
CompSci U1 P2 2024
PDF
CompSci U1 P2 2024
The Following Code Should Output The Odd Integers From 999 To 1
PDF
The Following Code Should Output The Odd Integers From 999 To 1
Computer Science Ssc-Ii: Answer Sheet No.
PDF
Computer Science Ssc-Ii: Answer Sheet No.
SSC-II Computer Science (2 Sets With Solutions) - Combined
PDF
SSC-II Computer Science (2 Sets With Solutions) - Combined
Section A: y Z y X
PDF
Section A: y Z y X
Previous Year Question Papers
PDF
Previous Year Question Papers
Solution of PPS Mid Sem 1 Exam Paper W24.Docx
PDF
Solution of PPS Mid Sem 1 Exam Paper W24.Docx
Assignment of P & T: Infosys Connect Program
PDF
Assignment of P & T: Infosys Connect Program
CT 1 - Solution
PDF
CT 1 - Solution
EE124 Assignment I
PDF
EE124 Assignment I
Slot 05-06-07 Basic Logics
PDF
Slot 05-06-07 Basic Logics
Asgn2-20aug2024
PDF
Asgn2-20aug2024
CSC128 - Lesson Plan (1E)
PDF
CSC128 - Lesson Plan (1E)
PDS LAB 1 Manual
PDF
PDS LAB 1 Manual
class 10 computer
PDF
class 10 computer
11 Ict
PDF
11 Ict
CC-1 LAB MANUAL
PDF
CC-1 LAB MANUAL
Selection Control Structures: Problem Concept
PDF
Selection Control Structures: Problem Concept
18CS101 FOCS Question Bank
PDF
18CS101 FOCS Question Bank
N 66027965 Bef 32
PDF
N 66027965 Bef 32
FPG511S Examination 3, Opportunity 1 Memo
PDF
FPG511S Examination 3, Opportunity 1 Memo
2.1 Flowchart Workbook by Inqilab Patel
PDF
2.1 Flowchart Workbook by Inqilab Patel
PPS Important Questions
PDF
PPS Important Questions
CSCP1013 Introduction To Computing Theory
PDF
CSCP1013 Introduction To Computing Theory
Pps CT 1 Set 1
PDF
Pps CT 1 Set 1
C Programming Material
PDF
C Programming Material
10th Computer FLPs
PDF
10th Computer FLPs
PC previous year question papers_adf4ff00-6ed5-4f5f-b59f-a12e0749d51e
PDF
PC previous year question papers_adf4ff00-6ed5-4f5f-b59f-a12e0749d51e
B.Sc. Electrical Engineering Technology Maximum Marks:: Switch-Case? A Sample Output of The Program Is Given Below
PDF
B.Sc. Electrical Engineering Technology Maximum Marks:: Switch-Case? A Sample Output of The Program Is Given Below
Syllabus - 2024 - Sem - 1 - FOP - T and FOP - P
PDF
Syllabus - 2024 - Sem - 1 - FOP - T and FOP - P
PIC PYQ
PDF
PIC PYQ
Cpps Lab Maunal
PDF
Cpps Lab Maunal
Computer Science
PDF
Computer Science
CS 211 Term 1 Assignment PDF
PDF
CS 211 Term 1 Assignment PDF