Lab03 - Intro To Flowgorithm
Lab03 - Intro To Flowgorithm
LAB 03
Objective:
Activities:
● Introduction to Flowgorithm.
● Creating simple flowcharts to understand variables, literals, and data types.
● Exercises on using arithmetic operators and evaluating expressions.
● Creating flowcharts for basic input and output operations.
Submission Instructions:
Flowgorithm Files:
● Save your Flowgorithm flowchart files for each task for Task01.fprg
● File format should be .fprg (Flowgorithm's native file format).
Submission Format:
● Combine all Flowgorithm file into a single compressed folder (ZIP file).
● Name the folder using the format: YourID_ITC_Lab3.zip
Submit Via:
I. Declare Variables: Create a flowchart that declares three variables: name (String),
ID (string) age (Integer), height (Real)
II. Assign Values: Assign the your specific information as values to the variables:
III. Output the Values: Use the "Output" symbol to print each variable on a new line.
Steps:
i. Click on the arrow & insert "Assignment" symbol to declare each variable.
ii. Assign values directly to these variables.
iii. Use three "Output" symbols to display ID, name, age, and height
Sample Output:
ID: L1F24BSSE0808
Age: 22
Height: 5.5
Sample Output:
Steps:
i. Use two "Input" symbols to collect numbers say NUM1 & NUM2
ii. Display Before Swap Values NUM1, NUM2
iii. Declare TEMP
iv. TEMP = NUM1
v. NUM1 = NUM2
vi. NUM2 = NUM1
Sample Output:
Steps:
i. Use two "Input" symbols to collect numbers say NUM1 & NUM2
ii. Display Before Swap Values NUM1, NUM2
iii. NUM1 = NUM1 + NUM2
iv. NUM2 = NUM1 - NUM2
v. NUM1 = NUM1 - NUM2
Sample Output:
st
Enter 1 Number: 10
nd
Enter 2 Number: 6
Values before Swapping
1st Number = 10
nd
2 Number = 6
Values after Swapping without temporary variable
1st Number = 6
nd
2 Number = 10
Create a flowchart to accept the item’s code, stock on hand, and the rate per unit of stock in
a department store and display the stock value of the store.
The inputs required to determine the stock value of the store are the stock on hand and the
rate per unit of stock, which are multiplied together to determine the stock value. The item’s
code is used as the identification data.
Steps:
i. Input to Icode
ii. Input to soh (stock on hand)
iii. Input to rate
iv. Calculate StockValue = soh * rate
v. Output Icode with StockValue
Sample Output:
Create a flowchart to calculate the total fuel cost of a road trip based on distance
traveled and fuel consumption. The flowchart will accept
Sample Output: