













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














1
2
Pseudocode is a detailed description of what a computer program must do, expressed in an English like language rather than in a programming language. 4
5 Write a Program to Print the Sum of two integer Numbers
7 Start/End Read/Print Arithmetic Operations Decision , can be used with loops Start Read n N2 = 5 End Print n N2 = n1+ n1 > 3
8 Draw a flowchart for a program that calculates and print the area and the perimeter of a rectangle. Input Length width Processing Area = lengthwidth Perimeter = 2( length + width) Output Area Perimeter start Read L, W perimeter = 2 (L+W) Print area End area = L * W Print perimeter
10 start Read Salary Print Total_Sal End Total_Sal = Salary +Overtime
Input Salary Overtime Processing Total_Sal = Salary +Overtime Output Total_Sal Read Overtime
11 Draw a flowchart for a program that calculates and prints the sum of the even integers from 2 to 30. Input No input. Processing Sum = 2+4+6+8+……+28+30. Output sum
13 Start End Counter=2, Sum= Counter≤ 30 Sum= Sum + Counter Counter=Counter+ Print Sum yes no yes
14 Draw a flowchart for a program that determine if the temperature degree is above or below freezing. Input Temp. Processing Check if Temp is below the 32 below freezing. Check if Temp is above the 32 above freezing. Output Print “below freezing” or “above freezing”
Draw a flowchart for a program that accepts a person’s initial bank balance followed by a sequence of numbers representing transactions. A positive number represents a credit entry in the account and a negative number represents a debit entry. The input is terminated by a zero entry. The program should print the new balance. 16
Input bank balance. transactions Processing balance = balance + transaction. Output balance 17
19 Draw a flowchart for a program that calculates the Zakat, where the user enter the amount of money then the program show the zakat. Zakat =(2.5/100) * amount. Zakat is not calculated if the amount is less than 1000 S.R
Input amount. Processing Check if amount is below 1000 Zakat =0. Check if amount is above 1000 Zakat =(2.5/100) * amount Output Zakat 20