Salam.
Download here.
Struggle to Achieve Success
Oct 29, 2015
Oct 25, 2015
Exercise - PCP
Question 1:
Electricity usage charges as follows:-
For the first 100 units – 35p/unit
For the next 200 units – 50p/unit
Beyond 300 units – 60p/unit.
Write a program that prompt 3 users by read the names of each users and number of units consumed and print out the charges with names.
Question 2:
By using repetition control structure, write a program that prompt for 5 student marks. Print out the grade for each students according to table below:
Marks Grade
80-100 A
70-79 B
60-69 C
40-59 D
0-39 F
Every student, please do this exercise to enhance your skills in programming. Our next lab session on Thursday, 5th November 2015.
Electricity usage charges as follows:-
For the first 100 units – 35p/unit
For the next 200 units – 50p/unit
Beyond 300 units – 60p/unit.
Write a program that prompt 3 users by read the names of each users and number of units consumed and print out the charges with names.
Question 2:
By using repetition control structure, write a program that prompt for 5 student marks. Print out the grade for each students according to table below:
Marks Grade
80-100 A
70-79 B
60-69 C
40-59 D
0-39 F
Every student, please do this exercise to enhance your skills in programming. Our next lab session on Thursday, 5th November 2015.
Subscribe to:
Comments (Atom)