The document outlines an assignment for XI Computer Science students at Mayoora School Ajmer, consisting of six programming tasks. These tasks include swapping variables, printing powers of a number, generating combinations of digits, calculating simple interest, and summing the digits of a four-digit number. Each task is designed to enhance students' programming skills and understanding of basic algorithms.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views
Assignment 4
The document outlines an assignment for XI Computer Science students at Mayoora School Ajmer, consisting of six programming tasks. These tasks include swapping variables, printing powers of a number, generating combinations of digits, calculating simple interest, and summing the digits of a four-digit number. Each task is designed to enhance students' programming skills and understanding of basic algorithms.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
MAYOOR SCHOOL AJMER
XI Computer Science / Assignment 4
1. WAP to swap two variable with the help of third variable.
2. WAP to swap two variable without using third variable. 3. WAP to read a number n and print n2, n3, n4, n5. 4. WAP to accept three digits( i.e 0 to 9) and print all possible combinations from these digits.( For example, if the digits are 1,2 and 3 then combinations are 123, 132, 231, 213, 312 and 321). 5. WAP to accept Principal, Rate and Time from user and compute Simple Interest and Amount. 6. WAP to accept 4 digit number and print the sum of all their digits.( i.e. if number is 1234 then the sum of their digits will be 1+2+3+4=10).
MAYOOR SCHOOL AJMER
XI Computer Science / Assignment 4
1. WAP to swap two variable with the help of third variable.
2. WAP to swap two variable without using third variable. 3. WAP to read a number n and print n2, n3, n4, n5. 4. WAP to accept three digits( i.e 0 to 9) and print all possible combinations from these digits.( For example, if the digits are 1,2 and 3 then combinations are 123, 132, 231, 213, 312 and 321). 5. WAP to accept Principal, Rate and Time from user and compute Simple Interest and Amount. 6. WAP to accept 4 digit number and print the sum of all their digits.( i.e. if number is 1234 then the sum of their digits will be 1+2+3+4=10).
MAYOOR SCHOOL AJMER
XI Computer Science / Assignment 4
1. WAP to swap two variable with the help of third variable.
2. WAP to swap two variable without using third variable. 3. WAP to read a number n and print n2, n3, n4, n5. 4. WAP to accept three digits( i.e 0 to 9) and print all possible combinations from these digits.( For example, if the digits are 1,2 and 3 then combinations are 123, 132, 231, 213, 312 and 321). 5. WAP to accept Principal, Rate and Time from user and compute Simple Interest and Amount. 6. WAP to accept 4 digit number and print the sum of all their digits.( i.e. if number is 1234 then the sum of their digits will be 1+2+3+4=10).