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...
-
1. How does this decision square with the exclusionary rules objective of deterring police conduct? 2. Can you think of examples where police mistakes would rise to the level where the exclusionary...
-
What is the probability of drawing the letters \(E-A-R\), in any order? You are about to draw Scrabble tiles from a bag without replacement; the bag contains the letters A, A, C, E, E, E, L, L, N, O,...
-
For 2015, Silver Corporation (a calendar year business) incurred the following transactions: Taxable income$3,950,000 Accelerated depreciation on pre-1987 real property (in excess of straight-line...
-
A rectangular garden is to be constructed with 36 ft of fencing. What dimensions of the rectangle (in ft) will maximize the area of the garden? (Assume the length is less than or equal to the width.)...
-
Following are selected accounts for The Procter & Gamble Company for June 30, 2017. a. Indicate the appropriate classification of each account as appearing in either its balance sheet (B) or its...
-
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...
-
A study by M. Chen et al. titled "Heat Stress Evaluation and Worker Fatigue in a Steel Plant" (American Industrial Hygiene Association, Vol. 64, pp. 352-359) assessed fatigue in steel-plant workers...
-
You are required to pick a current ("hot", widely discussed) economic event that relates to the material (topic) we have covered or will cover in this course. This paper has to show your ability to...
-
How can performance management strategies be tailored to accommodate diverse workforce demographics and individual needs ?
-
The government of Bangladesh believes that production of its exportable good (Jute) generates positive externalities in its country. The world price of this good is $25. The external benefit is...
-
if the economy is currently at 8% unemployment 3% inflation and the president is considering using expansionary fiscal policy to reduce unemployment to 4%, what can you tell the president about the...
-
How does Nobel Laureate Eugene Fama define the Efficient Markets Hypothesis? What happens to a stock price when a CEO goes on the news? What happens if a CEO is "good looking"? Is this an example of...
-
A firm that is first to market with a new product frequently discovers that there are design flaws or problems with the product that were not anticipated. For example, the ballpoint pens made by the...
-
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...
-
Harley has two lines of businessa manufacturing/retail operation and a finance subsidiary. Harley's dealers are independent of Harley and sell motorcycles and related products (e.g. Harley apparel)....
-
Autumn Manufacturing mass produces its product in three departments. A cost analysis for Department 1, the first department in the manufacturing cycle for the month of April, can be found in the...
-
Based on the? accounts, create the journal entries that resulted from the six transactions. Include explanations with each journal entry. Cash Supplies Building Equipment (1) 35,000 (4) 10,000 (2)...
Study smarter with the SolutionInn App