ICT1402 Tutorial 05
ICT1402 Tutorial 05
Department of Computing1.
2.
ICT 1402 - Principles of Program
3. Design and Programming
Tutorial 05
Your answers for each question should include analysis, task list and pseudocode and
algorithm.
In this task list, for each student you must input marks of three subjects. Students’ grade is
determined according to following criteria:
2. Assume a village has 20 houses. Input electricity unit charges and calculate total
electricity bill according to the following criteria:
1
3. Develop a cashier system for a shop.
Your system should display following prompt for the cashier and the entire program is
controlled according to the command given by the cashier.
Press S Start
Press Q Quit
Once you press S: System will display welcome message and ready for processing a
bill by initializing required variables.
Once you press Q: You can shut down the cashier system.
Once you press P: Process the current customer’s shopping cart.
Here, you can enter the item code, qty, unit price of the items in shopping cart and
calculate and display the total.
Once you finished serving to the current customer, you can press N to move to the
prompt.
* *******
** *******
*** *******
**** *******
***** *******
******
****** *
***** **
**** ***
*** ****
** *****
* ******
****** 1
***** 12
**** 123
*** 1234
** 12345
2
*
2 10 1800 200