logo

Computer Based Activities | Assignment

   

Added on  2022-08-12

7 Pages942 Words37 Views
Running head: COMPUTER BASED ACTIVITIES
Computer Based Activities
Student Name:
Student ID:
University Name:
Paper Code:
Computer Based Activities | Assignment_1
Computer Based Activities2
Task 1:
The four basic flowchart symbols are-
Oval
Rectangle
Arrow
Diamond
Oval- The oval symbol represent the beginning or end of any process.
Rectangle- The rectangle symbol represent the go-to-symbol once the flowcharting has been
started. It represent the step by step implementation of the flowchart diagram.
Arrow- The arrow symbol represent the correct direction after each process. Also arrows are of
different types. Arrows are also used to emphasize certain steps in your process.
Diamond- The diamond symbol represents any condition or decision making statements to move
forward.
Task 2:
1)
The flowchart indicates the Euclidean algorithm, were these types of method or algorithm
are generally used for computing the GCD or we can say the greatest common divisor of the two
positive whole number. Sometimes it is also called the highest common factor or the HCF in
short. Basically, GCD of the two positive whole number is the largest number which divides
both the numbers without leaving any remainder.
2)
As from the flowchart it can be seen that two oval symbol with same process has been
place thus the process will not stop under any circumstances. The logic of the flowchart is
correct but the flowchart symbols are not appropriate due to which the process will never ends.
Computer Based Activities | Assignment_2
Computer Based Activities3
Task 3:
1. Start.
2. Declare variable usage.
3. Read usage.
4. Multiply usage with 2.4
usage = usage*2.4
5. Display usage
6. Stop
Task 4:
1. Start
2. Declare variable usage, Cost.
3. Read usage.
4. Multiply usage with 2.4
usage = usage*2.4
5. If usage < 10.0
Cost = usage * 2.0
Else if usage > =10.1 and usage <=20.0
Cost = usage * 1.8
Else
Cost = usage * 1.5
6. Display Cost
7. Stop
Computer Based Activities | Assignment_3

End of preview

Want to access all the pages? Upload your documents or become a member.