a) Using the pseudocode declarations below, identify i) An enumerated data type ii) A composite data type
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 data type.
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
Transcribed Image Text:
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
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 70% (10 reviews)
ANSWER DECLARE Journal TJournalRecord Journaltitle Spring Flowers ...View the full answer
Answered By
Churchil Mino
I have been a tutor for 2 years and have experience working with students of all ages and abilities. I am comfortable working with students one-on-one or in small groups, and am able to adapt my teaching style to meet the needs of each individual. I am patient and supportive, and my goal is to help my students succeed.
I have a strong background in math and science, and have tutored students in these subjects at all levels, from elementary school to college. I have also helped students prepare for standardized tests such as the SAT and ACT. In addition to academic tutoring, I have also worked as a swim coach and a camp counselor, and have experience working with children with special needs.
0.00
0 Reviews
10+ Question Solved
Related Book For
Cambridge International AS & A Level Computer Science
ISBN: 9781510457591
1st Edition
Authors: David Watson, Helen Williams
Question Posted:
Students also viewed these Computer science questions
-
A hybrid composite is defined as a composite material containing two or more different types of reinforcing fibers. What advantages would such a composite have over other composites?
-
Write out in pseudocode an algorithm for solving a simultaneous system of linear congruences based on the construction in the proof of the Chinese remainder theorem.
-
Write an essay that states an original thesis statement on what impacts/influences student learning. Demonstrate the ability to write clearly and cohesively when expressing ones ideas and or intended...
-
Simplify the following expressions according to the commutative law: a. b. A B + A C + B A c. (L M N)(A B)(C D E)(M N L) d. F (K + R) + S V + W + V S + W + (R + K) F A.B + B.A + C.D.E + C.DE + E.T.D
-
Overproduction of uric acid in the body can be an indication of cell breakdown. This may be an advance indication of illness such as gout, leukemia, or lymphoma. Over a period of months, an adult...
-
During 2014, Damon Corp. entered into the following transactions. Borrowed $60,000 by issuing bonds. Paid $9,000 cash dividend to stockholders. Received $13,000 cash from a previously billed customer...
-
At a historic UN Summit in September 2015, world leaders adopted the 2030 Agenda for Sustainable Development. This agenda contains 17 sustainable development goals to be implemented by countries over...
-
1. The first arbitrage opportunity relates to locational arbitrage. Holt has obtained spot rate quotations from two banks in Thailand: Minzu Bank and Sobat Bank both located in Bangkok. The bid and...
-
Question 11pts The APRN unit director is working at an agency that has a high incidence of medication errors, specifically with heparin. One recent error had a patient receive twice the prescribed...
-
The consequence variable used in the House-Hunting example was Net Annual Cost, but as we mentioned, houses are also purchased as investments, suggesting that it might be useful to include equity and...
-
In a particular computer system, real numbers are stored using floating-point representation with: 8 Bits for the mantissa 8 Bits for the exponent Twos complement form for both mantissa and...
-
a) Three file organisation methods and two file access methods are shown below. Copy the diagram below and connect each file organisation method to its appropriate file access method(s). b) An energy...
-
Explain the difference between a defined benefit and a defined contribution plan?
-
An individual who purchases an apartment building to rent to tenants faces both pure risk and speculative risk. Which one of the following is a pure risk? Available answer options Select only one...
-
A fundamental rule in determining employment income is Multiple Choice 9:07 All remuneration from an office or employment is included in employment income when it is received and not necessarily when...
-
Sababa is a covered member regarding the Righteous Mutual Fund and a few companies whose shares are owned by Righteous. Sababa owns shares of Righteous. Which is true? Sababa has an indirect interest...
-
The formula to determine the materials to be purchased is Multiple choice question. (units to produce times materials required for each unit) plus desired ending materials inventory minus beginning...
-
The following accounts are excerpts from Your Co's 12/31/10 adjusted trial balance. A/P 20 A/R 30 Cash 50 Dividends 10 Fuel Expense 10 Prepaid Rent 15 Rent Expense 30 Retained Earnings 60 Service...
-
The particle in a box model is often used to make rough estimates of energy level spacings. Suppose that you have a proton confined to a one-dimensional box of length equal to a nuclear diameter...
-
If there is an unrealized holding gain on available-for-sale investments, it is reported as?
-
Consider the following code fragment, taken from some package:
-
Consider the inheritance of classes from Exercise R-2.12, and let d be an object variable of type Horse. If d refers to an actual object of type Equestrian, can it be cast to the class Racer? Why or...
-
Give an example of a Java code fragment that performs an array reference that is possibly out of bounds, and if it is out of bounds, the program catches that exception and prints the following error...
-
3. (2 points) Predict the major product for the following reaction and provide a stepwise curved arrow mechanism for the formation of the product showing all intermediary products. 1. H H3C C CI AlC...
-
Identify the symbol of the element that corresponds to the following (ground state) electron configurations. Noble Gas Electron Configuration Group Number Period Number 1s2s2p63s3p64s 1s2s22p63s23p5...
-
Ammonia is produced by the Haber process, in which N and H are reacted directly using an Fe mesh impregnated with oxides as a catalyst. K, @ 300C = 4.34 10-3 N2(g) +3 H2(g) = 2 NH3(g) Kp @ 500C =...
Study smarter with the SolutionInn App