Question

In: Computer Science

2. What are data elements and records? 3. List three control structures in modular design. 4....

2. What are data elements and records?

3. List three control structures in modular design.

4. Draw a picture which shows an example of iteration structure.

5. Provide an example of structured English?

6. Provide an example of decision tables with three conditions.

7. Provide an example of the decision tree.

Solutions

Expert Solution

2. What are data elements and records?

Ans: A single unit of data defined for processing is known to be as a data element. A data element is defined by size (in character) and type (alphanumeric, numeric only, true/false, date, etc.).

A record is an object that can contain one or more values. Groups of records are then saved in a table; the table defines the data that each record may contain. In a given database, there are multiple tables, each containing multiple records.

3. List three control structures in modular design:

Ans: 1. Sequential control structure

2. Selection control structure

3. Repetition control structure

4. Draw a picture which shows an example of iteration structure

Ans:

5. Provide an example of structured English?

Ans:

Decision Structure - Only IF a condition is true, complete the following statements; otherwise, jump to the ELSE
IF Condition A is True
        THEN implement Action A
ELSE implement Action B
ENDIF

6. Provide an example of decision tables with three conditions:

Ans:

Condition 1 Y Y
Condition 2 Y Y
Condition 3 Y N
Action 1 X X

The same action occurs whether condition 3 is true or false. As a result, one column can be eliminated from the table as follows:

Condition 1 Y
Condition 2 Y
Condition 3 −
Action 1 X

7. Provide an example of the decision tree.

Ans:

Hope I answered the question.

If you have any doubts, or queries, feel free to ask

I'll respond to you as soon as I can.

Have a nice day


Related Solutions

Which are the three control structures used in java programming. Which of these three control structures...
Which are the three control structures used in java programming. Which of these three control structures is used in every program or application
2. What are the three program control structures? Define each thoroughly and give an example of...
2. What are the three program control structures? Define each thoroughly and give an example of each. 3. Explain in detail the difference between a Class Variable and an Instance Variable. How do we declare a Class Variable? 4. Which of the following is true? a.   Java programs can run on different platforms, like Windows and Unix, without being recompiled. b.   C++ programs have always run more slowly than Java programs. c.   In contrast to Java, C# requires programmers to...
1) What are the accessory structures of the eye? 2) List the structures that are in...
1) What are the accessory structures of the eye? 2) List the structures that are in each layer of the intrinsic eye. 3) List the pathway for vision.
Design a modular program which asks the user to enter a list of numbers. The numbers...
Design a modular program which asks the user to enter a list of numbers. The numbers must be stored in an array. The program then finds the index of the first occurrence of the smallest element in the array and the last occurrence of the largest element in the array. The program displays the position and value of each of these items.
E.g., given an array-backed list lst containing the elements [0, 1, 2, 3, 4, ..., 98,...
E.g., given an array-backed list lst containing the elements [0, 1, 2, 3, 4, ..., 98, 99], the following code: for x in lst.poly_iter(2, 3, 4): print(x) will produce the output: 4 9 18 31 48 69 94 Programming rules: You must adhere to the same rules when using the built-in Python list as you did in the ArrayList lab. You may not use any other data structures (this includes the built-in Python list). class ArrayList: def __init__(self): self.data =...
What are some physical security design elements for alarm/access control systems servers?
What are some physical security design elements for alarm/access control systems servers?Why is Physical Security design elements for alarm/access control systems/servers so crucial in a data center?
Discuss three (3) key elements of Design for Manufacture (DFM). Elaborate for each of them.
Discuss three (3) key elements of Design for Manufacture (DFM). Elaborate for each of them.
Question 2 (a)    Identify and discuss the three elements of control in determining whether to prepare consolidated...
Question 2 (a)    Identify and discuss the three elements of control in determining whether to prepare consolidated financial statements.   (b)    Dingo Ltd owns all of the shares of Bilby Ltd. On 1 May 2020, Bilby Ltd sold inventory costing $300 to Dingo Ltd for $360 on credit. On 30 June 2020, only half of these goods had been sold by Dingo Ltd, but Dingo Ltd had paid $280 back to Bilby Ltd. The tax rate is 30%. The adjusting consolidation entries at...
3.A) What are the three main parts of the moss gametophyte? 3. B)What are the structures...
3.A) What are the three main parts of the moss gametophyte? 3. B)What are the structures that are responsible for asexual reproduction in Marchantia? Describe these structures and explain how they function in asexual reproduction.
What are control structures in Linux/Unix?
What are control structures in Linux/Unix?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT