100% found this document useful (1 vote)
128 views4 pages

Programming Concepts (Practical)

The document outlines the requirements and instructions for a practical examination in Programming Concepts for a National Certificate in Information Technology in Zimbabwe. It includes various programming tasks to be completed in C++, such as creating programs for displaying messages, determining palindromes, categorizing athletes by age, handling student data, sorting arrays, file operations, and creating a class for employee management. Candidates are required to submit both hardcopy and softcopy of their work, which must be printed and include specific outputs.

Uploaded by

kcharachimwe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
100% found this document useful (1 vote)
128 views4 pages

Programming Concepts (Practical)

The document outlines the requirements and instructions for a practical examination in Programming Concepts for a National Certificate in Information Technology in Zimbabwe. It includes various programming tasks to be completed in C++, such as creating programs for displaying messages, determining palindromes, categorizing athletes by age, handling student data, sorting arrays, file operations, and creating a class for employee management. Candidates are required to submit both hardcopy and softcopy of their work, which must be printed and include specific outputs.

Uploaded by

kcharachimwe
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
ZIMBABWE MINISTRY OF HIGHER AND ‘TERTIARY EDUCATION, INNOVATION, SCIENCE AND TECHNOLOGY DEVELOPMENT HIGHER EDUCATION EXAMINATIONS COUNCIL (HEXCO) NATIONAL CERTIFICATE IN INFORMATION TECHNOLOGY MODULE: Programming Concepts (Practical) PAPER NO: 317/22/MO02B DURATION: 3 hours REQUIREMENTS 1) Computer with C++ compiler. 2) Printing facility. 3) Storage medium for each candidate. INSTRUCTIONS TO CANDIDATE 1) Answer all questions. 2) Print both code and output. 3) Submit both hardcopy and softcopy- This paper consists of 4 printed pages. PAPER NO: 317/22/MO2B PROGRAMMING CONCEPTS (PRACTICAL) QUESTION 1 create a C++ program that displays the following using & single cout a) Create a ¢ cpvery program attempts to expand until itcan read Email. ‘Those programs which cannot are replaced” (8 marks) b) Write a program that allows the user to enter a number and it veiternines whether the number is a Palindrome or not. Your Progrem should display on appropriate message. NB: A number is said to be a Palindrome if the reverse of its digits is itself e.g. 959, 1551, 12421. (12 marke) QUESTION 2 a) Write a program that accepts the age of an athlete and displays the category in which the athlete is eligible to compete using the following classification, Age Group (in years) Category 8-10 Under eleven 11-16 Juniors 17-21 Seniors aa Open (10 marks) b) Write a program that capture and stores the name, age and gender of 5 students using structures. The program should display th ; the following format: e play the details using Student Details Student 1 Name: John Age: 21 Gender: Male 7 - PAPER NO: 317/22/M02B PROGRAMMING CONCEPTS (PRACTICAL) Student 2 Name: Tinotenda Age: 19 Gender: Female (10 marks) QUESTION 3 a) ‘Write a program that creates an array and initialise it with the following elements: CsTo [1 JT 200 [ 2 50, 90 4113 | 16 | Your program should sort the array in descending order and display the resultant array. (15 marks) b) Write a program that creates a text file and write the following information into the file: «Pile streams are used to store data permanently. A stream is an abstraction that represents a device on which operations of input and output are performed.” Your program should count and display the number of lines in the text file. (10 marks) QUESTION 4 a) Develop a program that displays the following output using loops: 2 5 8 ll 14 (17 20 23 26 29 32 35 38 41 44 (10 marks) b) Using function prototyping, write a program that requests the user to capture the first name and age of a customer in the main function and display them in a called function. (10 marks) , PAPER NO: 317/22/M02B PROGRAMMING CONCEPTS (PRACTICAL) QUESTION 5 Create a C++ program that includes a class called Employee. The class Employee should contain the following: a) Two (2) data members hours worked and salary. b) _ Amethod to capture the hours worked and salary. c) _ Amethod to add $500 to the salary if the salary is less than $1500. 4) Amethod to display the hours worked and the new salary. NB: Assume there are five (5) employees. (15 marks) suffer

You might also like