Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

Assignment ( 20%)

Scope : Array
Objective
: Evaluating the students understanding on the usage of functions and
arrays .
Submission : hardcopy and softcopy by week 14 (Monday)
Write a complete program with the following menu options :
1. Guessing the word
2. Counts the number of characters in a sentence, number of digits and number of
other symbols.
3. Reverse a sentence.
Guessing a word : The user should guess a word that you have earlier
defined in the program.
Counts the number of characters in a sentence: The function should be
able to count the number of characters are there in a given sentence,
number of digits and number of other symbols such as * , # etc.
e.g : Enter a sentence : Please pay $200 for the #code.
Number of characters are : 19
Number of digits: 3
Number of special characters : 2
Reverse a sentence : The program should be able to reverse the words in a
given sentence. Example: if the input is : I LOVE C
The output should be : C LOVE I
You need to submit the following documents:i) Cover Page
ii) Question
ii) Rubrics
iii) Source Code
iv) Sample Output
v) Softcopy ( burn into a CD).

You might also like