Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started