Science · Paper 2 · 2025
9 questions 🇹🇿 NECTA ✓ MS3-hour timed simulation · auto-graded · counts toward ranking
Pay & start exam →Questions (9)
Section B
A Tax officer at UMOJAWETU Company wants to analyze and track the monthly salesmen’s profit at the end of the year. Due to the large number of salesmen in the company, manual analysis and tracking of profit data become challenging. The sales manager of the company consulted you to assist automating a process. Develop a C++ program that accepts the monthly profit made by each salesman. Your program should also compute and display the total profit made per year for each salesman and the maximum total profit made per year among all salesmen. (HINT: The manager provided three salesmen as a case study).
- prompt a user to input registration number, name, and marks of three subjects for five students. (0 mk)
- Develop a C++ program that accepts the monthly profit made by each salesman. Your program should also compute and display the total profit made per year for each salesman and the maximum total profit made per year among all salesmen. (0 mk)
- Your program should also compute and display the total profit made per year for each salesman and the maximum total profit made per year among all salesmen. (0 mk)
- display the total number and names of students who qualified to join the higher class. (0 mk)
- Display the total number and names of students who failed to join the higher class. (0 mk)
- display the total number and names of students who failed to join the higher class. (0 mk)
Upgrade to see model answers.
(ii) The font colour style and size of the texts “Please Fill Your Information Here” to blue and “Bookman Old Style” and heading 1 respectively. (iii) The size, colour, and width of the first horizontal line should be 8,”CC9933” and 1000, respectively. (iv) The size, width and color of the second horizontal line should be 7, 1000 and “6666ff”, respectively. (v) The table border should be 3. (b) Use JavaScript to activate the “Calculate” button in Figure 1 so that the program validates user inputs and computes the parking charges and display the output under the texts “Your Receipt is:”
- Use HTML to create the interface provided in Figure 1. (0 mk)
- The font colour style and size of the texts “Please Fill Your Information Here” to blue and “Bookman Old Style” and heading 1 respectively. (0 mk)
- The size, colour, and width of the first horizontal line should be 8,”CC9933” and 1000, respectively. (0 mk)
- The colour, font style and the size of the texts “Caution: Price for Parking” should be red, “Bookman Old Style” and heading 2 respectively. (0 mk)
- The size, width and color of the second horizontal line should be 7, 1000 and “6666ff”, respectively. (0 mk)
- The table border should be 3. (0 mk)
- Use HTML to create the interface provided in Figure 1. The size, width and color of the second horizontal line should be 7, 1000 and “6666ff”, respectively. (0 mk)
- Use HTML to create the interface provided in Figure 1. The table border should be 3. (0 mk)
- Use JavaScript to activate the “Calculate” button in Figure 1 so that the program validates user inputs and computes the parking charges and display the output under the texts “Your Receipt is:” (0 mk)
Upgrade to see model answers.
Watukazini Company is doing business of selling cars and car spare parts. The company offers a 15 percent discount once a customer purchased a large quantity of spare parts. Currently, the company is using manual approach to perform computations which causes delay in providing service to customers. Suppose the company manager consulted you to develop an automation system for sales management, using a Visual Basic programming, develop a system for the company. (a) Create an interface as shown in Figure 2. (b) Activate the “Car Spare Parts” menu in Figure 2 to display interface as shown in Figure 3 when a user clicks it. (c) Activate the Calculate, Clear, Print and Exit buttons in Figure 3, so that: (i) The discount and net amount are displayed in the respective labels after clicking the “calculate” button. (HINT: Net amount = Amount due – Discount amount). (ii) The entered data is cleared from the form when the user clicks the “Clear” button. (iii) The form is closed after clicking the “Exit” button. (iv) The summary report is printed in the form of message box after clicking the “Print” button. (d) Create a database called “customer” using MS Access and add a table called “vehicle” with fields shown in Figure 4. (e) Activate the “Car Vendor” menu in Figure 2 to display the interface in Figure 4. The interface allows the company to add customer details to the customer database. (f) Activate the buttons Search, Add, Save and Exit in Figure 4 to perform their intended task.
- Create an interface as shown in Figure 2. (0 mk)
- Activate the “Car Spare Parts” menu in Figure 2 to display interface as shown in Figure 3 when a user clicks it. (0 mk)
- Activate the Calculate, Clear, Print and Exit buttons in Figure 3, so that: (0 mk)
- The summary report is printed in the form of message box after clicking the “Print” button. (0 mk)
- Create a database called “customer” using MS Access and add a table called “vehicle” with fields shown in Figure 4. (0 mk)
- Activate the “Car Vendor” menu in Figure 2 to display the interface in Figure 4. The interface allows the company to add customer details to the customer database. (0 mk)
- Activate the buttons Search, Add, Save and Exit in Figure 4 to perform their intended task. (0 mk)
Upgrade to see model answers.