Mysirg A - Merged - Removed
Mysirg A - Merged - Removed
com
C, C++ and DSA in Depth
Expected output format- "Area of circle is A having the radius R". Replace A with area &R
with radius.
Https://premium.mysirg.com http://saurabhshuklaclasses.com
C, C++ and DSA in Depth
27 ,Month- 07
10. WAP to take time as an input in below given format and convert the time format and
display the result as given below.
User Input date format-"HH:MM"
5. Write a program to input a number from the user and also input a digit. Append a
digitin the print the resulting number. (Example number=234 and
number and
then the resulting number is 2349)
digit=9
6. Assume price of 1 USD is INR 84.23. Write a program to take the amount in INR
and convert it into USD.
7. Write a program to take a three digit number from the user and rotate its digits by
one position towards the right.
8. What will be the value stored in the variable x after executing following statement:
x=10>8>4;
after executing following statement:
9. What will be the value stored in the variable x
x=!2>-2;
10. What will be the value stored in the variable x after executing following statement:
x=3<0&&5>0;
Https://premium.mysirg.com http://saurabhshuklaclasses.com
1. Write a program to check whether a given number is a three digit number or not.
2. Write a program which takes the cost price and selling price of a product from the
user. Now calculate and print profit or loss percentage.
3. Write a program to take marks of 5 subjects from the user. Assume marks are given
Out of 100 and passing marks is 33. Now display whether the candidate passed the
examination or failed.
4. Write a program to check whether a given alphabet is in uppercase or lowercase.
5. Write a program to check whether a given number is divisible by 3 and divisible by
2.
6. Write a program to check whether a given number is divisible by 7 or divisible by 3.
7. Write a program to check whether a given number is positive, negative or zero.
8. Write a program to check whether a given character is an alphabet (uppercase), an
alphabet (lower case), a digit or a special character.
9. Write a program which takes the length of the sides of a triangle as an input.
Display whether the triangle is valid or not.
10. Write a program which takes the month number as an input and display number of
days in that month.
Https://premium.mysirg.com http://saurabhshuklaclasses.com
C, C++DSA in Depth
Assignment-11: Star Pattern Problems
21
23
2 34 3 2
2 3 4 S 43 2
AecDE ABCDE ** K
GCDE
ABCD
456 CDDE
ABC
A DE
A
Https://premium.mysirg.com http://saurabhshuklaclasses.com
C, C++DSA in Depth
23 2
2 3 4 3 21
ABCDEFG ABCDcsA
ABCDE ABC BA
AC ABA 2
A A 2
1. Write a program which takes the month number as an input and display numberof
2.
days in that month.
Write a menu driven program with the following options.
Addition
2. Subtraction
Multiplication
DIVisIon
EXIt
3 Write a program which takes the day number of a week and displays a unique
greeting message for the day.
4. Write driven program with
1.
aCheck
menu whether the folowing options
a given set of three numbers are lengths of an isosceles
triangle or not
2. Check whether a given set of three numbers are lengths of sides of a right
angled triangle or not
3. ChecK Wnetner a given set or thfee numbers are equilateral tiangle or not
. Exit