Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions

Question

1 Define human resource management.

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago