Program of Day

POD-29-Sep-2016
Write a program to sort characters of each word of a user provided sentence. Sentence can be of variable length and may contain any number of words.
Ex:
Hello, how are you?
eHllo, how aer ouy?
Note: sentence breaking symbols, like: , . ? etc should remain at their original position. <>
Hint: Break the problem into small tasks as: 1st try to break the sentence into words, then compare ASCII values to sort characters within word then integrate all these tasks.
POD-28-Sep-2016
In continuation to POD-27-Sep-2016,
Write a program to reverse characters of each word of a user provided sentence, omitting repeated letters . Sentence can be of variable length and may contain any number of words.
Ex:
Hello, how are you?
oleH, w ra uy?
Note: sentence breaking symbols, like: , . ? etc should remain at their original position.
Hint: Break the problem into small tasks as: 1st try to reverse characters of a word, then think how to separate words from each other and from sentence breaking symbols, then integrate all these tasks.
POD-27-Sep-2016
Write a program to reverse characters of each word of a user provided sentence. Sentence can be of variable length and may contain any number of words. 
Ex:
Hello, how are you?
olleH, woh era ouy?
Note: sentence breaking symbols, like: , . ? etc should remain at their original position.
Hint: Break the problem into small tasks as: 1st try to reverse characters of a word, then think how to separate words from each other and from sentence breaking symbols, then integrate all these tasks.
POD-26-Sep-2016
Write a program to reverse a string word wise.
Note:
  • The string should be taken from user at run time.
  • Characters within word are not to be reversed.
  • If you are an exert, implement using dynamic memory allocation for string, otherwise use array and display the maximum character that user can enter.
  • If user does not the criteria, display an error message and ask to re-enter.
POD-24-Sep-2016
Write a Program to divide two user entered complex numbers of the form: a+ib. (Where a,b can be any float values, including negative numbers).
POD-23-Sep-2016
Write a Program to multiply two user entered complex numbers of the form: a+ib, (Where a,b can be any float values, including negative numbers).
POD-22-Sep-2016
Write a Program to add two user entered complex numbers of the form: a+ib, (Where a,b can be any float values, including negative numbers).
POD-21-Sep-2016

Write a Program to print a pattern in which user will enter square side length

Example:

Enter length of side of square:
7
# # # # # # #
# #         #
#   #       #
#     #     #
#       #   #
#         # #
# # # # # # #
POD-17-Sep-2016

Write a Program to print following pattern

$$$$$$$$$  $$$$$$$$$        $        $$
$	       $           $ $	     $ $
$	       $          $   $      $  $
$$$$$$$$$      $         $$$$$$$     $ $
	$      $        $       $    $$
	$      $       $         $   $ $
$$$$$$$$$      $      $           $  $  $

Number of rows should be entered by user at run time.

POD-10-Sep-2016

Write a Program to print following pattern


             #
            # #
           #   #
          #     #
         #       #
        #         #
         #       #         
          #     #
           #   #
            # #
             #

Number of rows should be entered by user at run time.

Hint: Implement using array.

POD-06-Sep-2016

Write a Program to print following pattern

#                 #
##               ##
###             ###
####           ####
#####         #####
######       ######
#######     #######
########   ######## 
#########$#########
########   ########
#######     #######
######       ######
#####         #####
####           ####
###             ###
##               ##
#                 #

Number of rows should be entered by user at run time.

Hint: Implement using array.

h5>POD-05-Sep-2016

Write a Program to print following pattern

#########$#########
########   ########
#######     #######
######       ######
#####         #####
####           ####
###             ###
##               ##
#                 #
##               ##
###             ###
####           ####
#####         #####
######       ######
#######     #######
########   ######## 
#########$#########

Number of rows should be entered by user at run time.

Hint: Implement using array.

POD-03-Sep-2016

Write a Program to print following pattern

        #       
       ### 
      #####
     #######
    ######### 
   ###########
    #########
     #######
      #####
       ###
        #
      
 

Number of rows should be entered by user at run time.

Hint: Implement using array.

POD-02-Sep-2016

Write a Program to print following pattern

   ###########
    #########
     #######
      #####
       ###
        #
        #       
       ### 
      #####
     #######
    #########
   ###########       
 

Number of rows should be entered by user at run time.

Hint: Implement using array.

POD-01-Sep-2016

Write a Program to print following pattern

   ###########
    #########
     #######
      #####
       ###
        #       
 

Number of rows should be entered by user at run time.

Hint: Implement using array.

POD-30-Aug-2016

Write a Program to print following pattern

        #       
       ### 
      #####
     #######
    #########
   ###########

Number of rows should be entered by user at run time.

Hint: Implement using array.

POD-29-Aug-2016

Write a Program to print following pattern

#########
#### ####
###   ###
##     ##
#       #

Number of rows should be entered by user at run time.

Hint: Implement using array.

POD-28-Aug-2016

Write a Program to print following pattern

#########
########
#######
######
#####
####
###
##
#

Number of rows should be entered by user at run time.

Hint: Implement using array.


POD-26-Aug-2016

Write a Program to print following pattern

#       #
##     ##
###   ###
#### ####
#########

Number of rows should be entered by user at run time.

Hint: Implement using array.


POD-24-Aug-2016

Write a Program to print following pattern

#
##
###
####
#####
######
#######
Number of columns should be entered by user at run time.
Hint: Implement using array.