Question: a) Using the pseudocode declarations below, identify i) An enumerated data type ii) A composite data type iii) A non-composite data type iv) A user-defined

a) Using the pseudocode declarations below, identify
i) An enumerated data type
ii) A composite data type
iii) A non-composite data type
iv) A user-defined data type.

TYPE Tseason = (Spring, Summer, Autumn, Winter) TYPE TJournalRecord DECLARE title :

Write pseudocode to declare a variable Journal of type TJournal Record and assign the following values to the variable.
Title – Spring Flowers
Author – H Williams
Publisher – XYZ Press
Number of pages – 40
Season – Spring

TYPE Tseason = (Spring, Summer, Autumn, Winter) TYPE TJournalRecord DECLARE title : STRING DECLARE author : STRING DECLARE publisher : STRING DECLARE noPages : INTEGER DECLARE season : Tseason ENDTYPE Acti

Step by Step Solution

3.39 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

ANSWER DECLARE Journal TJournalRecord Journaltitle Spring Flowers ... View full answer

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 Cambridge International AS & A Level Computer Science Questions!