Selection Statement (Conditional Statements in Programming Languages)

Q1.  write a program in c++ that takes a number from user and check if the number is a character or a digit if the entered number is character then it should print "character entered" if entered number is a digit it should print entered number is "digit entered"?

Note: first you have to write its algorithm (solution steps) on the register then do that on the compiler. 

Q2. write a program in c++. your program should act as a converter that converts the entered number for an instant if the user enters number it will convert it in character and if the user enters character it converts it in digit and prints the converted entry on the console?

Q3.  Write a program in c++. your program make encryption on single input and on the same program it decrypts the encrypted entry into its original state but first of all your program should print menu on the console that if user enters 'E' or 'e' it will convert enter value to the encryption and if user enters 'D' or' it will revert the entered value to its original state?

Note: write an algorithm (steps of solution) on the paper for this question.

Submission of the Quiz-1:

5 Comments

Post a Comment

Previous Post Next Post