Question: Question 1 Soalan 1/ (a) Describe the basic hardware of a computer system. Terangkan mengenai perkakasan-perkakasan asas untuk satu sistem komputer) (2 Marks/ Markah) (b)

 Question 1 Soalan 1/ (a) Describe the basic hardware of a

Question 1 Soalan 1/ (a) Describe the basic hardware of a computer system. Terangkan mengenai perkakasan-perkakasan asas untuk satu sistem komputer) (2 Marks/ Markah) (b) Write a function that adds two float numbers without returning any value. Tuliskan satu fungsi yang menambahkan dua nombor apungan tanpa memulangkan sebarang nilai (5 Marks/ Markah) (c) Explain the meaning of pre-test loop in details by drawing the flowchart diagram and writing the example code. Jelaskan maksud pengulangan pra-uji secara terperinci dengan menggunakan gambarajah carta aliran dan menulis contoh kod] (5 Marks/Markal) (d) Table 1 gives the coordinates for four points in X-y space: Jadual 1 memberi satu sampel pengkalan data pelajar:/ Table 1 Jadual 17 y 6.0 3.0 12.0 7.0 8.0 17.0 5.0 13.0 Design a suitable data structure that can fit in all the data in the table into a single array. Write a code to calculate the area covered by the four points. Reka satu struktur data yang sesuai yang dapat memuatkan semua data di dalam jadual itu ke dalam satu fatasusun. Tuliskan kod untuk mengira keluasan kawasan yang dikelilingi oleh empat titik tersebut. (8 Marks/ Markah)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!