1.
Write a program to find the roots of a quadratic equation
2. Write a program to accept a number ‘n’ and
a.) Check if ’n’ is prime
b.) Generate all prime numbers till ‘n’
c.) Generate first ‘n’ prime numbers
3. Write a program to create a pyramid of the character ‘*’ and a reverse pyramid
Pyramid
Reverse Pyramid
4. Write a program that accepts a character and performs the following:
a. print whether the character is a letter or numeric digit or a special character.
b. if the character is a letter, print whether the letter is uppercase or lowercase
c. if the character is a numeric digit, prints its name in text (e.g., if input is 9, output
is NINE)
5. Write a program to perform the following operations on a string
a. Find the frequency of a character in a string.
b. Replace a character by another character in a string.
c. Remove the first occurrence of a character from a string.
d. Remove all occurrences of a character from a string