Introduction To Programming
Introduction To Programming
Project
CalculationControl
Read
Nmber
Read
Total
Print
Percentage
End
Step6: The pseudocode
₋ begin
₋ input Number
₋ Input Total
₋ Percentage= (Number /Total)*100
₋ Print Percentage
₋ End
Step7: The coupling diagram
calculationControl
Percentage
Number
Pe
Total
er
rce
mb
al
Tot
nta
Nu
ge
Read Calculate Output
Step8: The data dictionary
Variable
Scope Module Data Type Item
name
local Read/caulation float num Number
local Read/caulation float Totl Total
local print/caulation float avg Percentage
Step9: The C Program
#include<stdio.h>
#include<conio.h>
main()
{
clrscr();
float num,avg,totl;
printf("enter Number \n");
scanf("%f",&num);
printf("enter Total \n");
scanf("%f",&totl)
avg= (num/totl)* 100 ;
printf("percentage of income rent =%f\n", avg);
}