Photo AI

The Internet café must keep records of the users and be able to charge users for the time that they were logged onto the Internet - NSC Information Technology - Question 4 - 2016 - Paper 2

Question icon

Question 4

The-Internet-café-must-keep-records-of-the-users-and-be-able-to-charge-users-for-the-time-that-they-were-logged-onto-the-Internet-NSC Information Technology-Question 4-2016-Paper 2.png

The Internet café must keep records of the users and be able to charge users for the time that they were logged onto the Internet. A database for this purpose has be... show full transcript

Worked Solution & Example Answer:The Internet café must keep records of the users and be able to charge users for the time that they were logged onto the Internet - NSC Information Technology - Question 4 - 2016 - Paper 2

Step 1

Motivate the choice of radio buttons for the Gender option.

96%

114 rated

Answer

Radio buttons allow users to select only one option at a time, ensuring that the input is limited to predefined valid options. This saves time by eliminating the need to type and helps maintain consistency in the data entered.

Step 2

Without changing the label, suggest ONE way in which the GUI could be changed to indicate the format in which the user should enter the time.

99%

104 rated

Answer

A possible change could be to use a mask edit control that restricts input to a specific time format, showing two combo boxes—one for hours and another for minutes. For example, the format could be represented as 'HH:MM'.

Step 3

Explain the difference between valid data and correct data by using the information in the GUI above.

96%

101 rated

Answer

Valid data adheres to the required formats and ranges; for instance, entering a gender must be either 'Male' or 'Female'. In contrast, correct data is associated with the accuracy of the input; if a user incorrectly enters 25 for an hour in the time field, it would be valid according to the input format but incorrect because it exceeds the range of 0-24 hours.

Step 4

Indicate how the tables above could be linked so that a one-to-many relationship can be formed.

98%

120 rated

Answer

The primary key in the tblComputers should be placed in the tblUsers table as a foreign key. This allows multiple records in tblUsers to link to a single record in tblComputers.

Step 5

Display the logout time of the users who paid with debit cards in sequential order.

97%

117 rated

Answer

SELECT LogoutTime
FROM tblUsers
WHERE PaymentMethod = 'Debit Card'
ORDER BY LogoutTime;

Step 6

Change the payment method for 73110117564076 to 'Credit Card'.

97%

121 rated

Answer

UPDATE tblUsers
SET PaymentMethod = 'Credit Card'
WHERE UserIDNo = '73110117564076';

Step 7

Display the number of users who paid with cash. The number of users must be displayed in a field called CountCashIds.

96%

114 rated

Answer

SELECT COUNT(UserIDNo) AS CountCashIds
FROM tblUsers
WHERE PaymentMethod = 'Cash';

Step 8

Display a list of users who logged in after 12:00 on 2016/02/25.

99%

104 rated

Answer

SELECT *
FROM tblUsers
WHERE (LoginTime > '12:00')
AND (LoginDate = '2016/02/25');

Step 9

State the basic information that is captured during an audit trail.

96%

101 rated

Answer

An audit trail records who makes changes to the database and when these changes were made.

Step 10

Indicate TWO ways in which data is captured invisibly.

98%

120 rated

Answer

  1. Using credit or loyalty cards when purchases are made.
  2. Collecting data with completion forms for competitions, etc.

Step 11

What is this process called?

97%

117 rated

Answer

This process is referred to as data mining.

Join the NSC students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;