Level 3 Coc Project
Level 3 Coc Project
Level 3 Coc Project
Task 1:
You are administrator in soft company and assigned to create a database the following information about the
company customer and their orders.
Table: salesperson
Table orders
Salesperson
Customer
Orders
- a professor teaches zero, one or many classes and a class is taught by one professor
- a course may generate zero, one or many classes and a class comes from one course
- a class is held in one room but a room has many classes
Task :2
1. Design the Pseudocode that sums all the even numbers between 1 and 20 inclusive and then displays the sum.
It uses a repeat loop and contains a null else within the repeat loop.
Start
Sum = 0
count = 1
REPEAT
IF count is even THEN sum = sum + count
count = count + 1
UNTIL count > 20
DISPLAY sum
2. The following pseudo code describes an algorithm which will accept number from the keyboard and .
StartSum = 0Display “Input value n”Input nFor (I = 1, n, 5)Input a valueSum = sum + valueIncrement
ENDFOROutput sum
Stop
3. The following pseudo code describes an algorithm which will accept student result in number from the keyboard and
returns ’satisfactory’ if the result is greater than or equal to 50.otherwise ‘not satisfactory’ will be returned.
Start
If(result>=50)
Display “satisfactory”
End if
stop