CS Core3
CS Core3
Write a program to compute the tax according to the given conditions and display the output
as per given format.
Output:
Pan Number Name Tax-income Tax
- - - -
- - - -
- - - -
Ques 5. Write a program to input a string and print out the text with the uppercase and lowercase 15
letters reversed, but all other characters should remain the same as before.
Ques 6. Define a class and store the given city names in a single dimensional array. Sort these names 15
in alphabetical order using the Bubble Sort technique only.
Ques 7. Write a menu driven class to accept a number from the user and check whether it is 15
Palindrome or a Perfect number.
(a) Palindrome number – ( a number is a Palindrome which when read in reverse order is
same as read in the right order ) Example : 11, 101, 151 etc.
(b) Perfect number - ( a number is called Perfect if it is equal to the sum of its factors
other than the number itself. ) Example : 6 = 1 + 2 + 3