Professional Documents
Culture Documents
3 Index PCS251
3 Index PCS251
Struct emp
{
char name[20];
int age;
int basic;
}
Calculate total salary as-total salary=basic+hra+da
da=10% of basic hra=5% of basic salary
Display age, total salary of employee in descending
order on the basis of total salary. Create separate
function for input & display.
20 Write a C program to write alphabets to a file then
read all alphabets from file and store in another file by
converting all alphabets to UPPERCASE.
21 Write a C program to store integers to a file then read
all integers from files and store all even numbers to
even.dat file and odd numbers to odd.dat file.
22 Write a C program to write characters to a file then
read all characters from file and store all vowels,
consonants, digits and special characters to 4 separate
files.
23 Draw a flowchart and write a python program to Find
the largest number among the three input numbers.
24 Draw a flowchart and write a python program to Find
sum of following series
1-3+5-7 upto n terms
25 Draw a flowchart and write a python program to Find
sum of digit of inputted number.