There are several ways, the prototype of an actual program can be represented; one of them, is by making use of flowcharts
Flowcharts show the steps taken to execute a task, graphically.
<u>(a) Area of a circle</u>
The flow of the flowchart, goes as thus:
- <em>Start</em>
- <em>Let Radius = 5</em>
- <em>Let PI = 3.14</em>
- <em>Calculate Area = PI * Radius * Radius</em>
- <em>Print Area</em>
- <em>Stop</em>
<em />
<u>(b) Area of a rectangle</u>
The flow of the flowchart, goes as thus:
- <em>Start</em>
- <em>Input l</em>
- <em>Input w</em>
- <em>Calculate Area = l * w</em>
- <em>Print Area</em>
- <em>Stop</em>
<em />
<u>(c) Area of a circle</u>
The flow of the flowchart, goes as thus:
- Start
- Input Gender
- If Gender == 'M"
- Print "You're a Male"
- else
- Print "You're a Female"
- Stop
See attachment for the required flowcharts
Read more about flowcharts at:
brainly.com/question/17373574
Answer:
Option I and II are correct options.
Explanation:
In the following statement, Option I and Option II are correct because folders and the user's IDE that folders which are hierarchical and also helps to organize the programmer's project. Folders are the method of visualizing a file system structure.
Option III is incorrect because folders are possibly lost or delete files and their content.
Answer:
Magnetic disks are easier to write and rewrite data on.
Explanation:
Solution:
Firstly the instructions are parsed, one at a time, and each instruction is converted to the equivalent machine language (ML) binary CPU commands.
The relative addresses are noted so that any jumps, loops, etc., can be updated to point to the correct (relative) address, and the binary codes representing the loop, jump, etc., will be replace with correct addresses.
Thus, once all instructions are converted to ML instructions, and all addresses are replaced by the actual (relative) in-memory address, all the instructions are written (as actual binary) to an executable file along with loading instructions (in machine language), telling the CPU where to put the executable program in memory, and then the starting address of the program so the CPU will know where to actually find the program within the memory.