Uploaded by ammarhashim890

A3 CSC141

advertisement
Name:_____________________________
Registration No:
CSC141-Introduction to Computer Programming
Assignment 3
Total Marks: 10
Note: This assignment evaluates CLO3 at C3 level
Question: Write a program that asks users to enter 3 different names.
Inputs those names, if user enters the same name again, it prompts to reenter
the name. Finally, it converts them to upper case and combines into one string
(with a space in between names) and displays on screen.
Example output: (highlighted text is written by the user)
>>Please enter 3 names
>>Talha
>>talha
>>This name is already entered, please enter a different name
>>Ahmed
>>TALHA
>>This name is already entered, please enter a different name
>>Ali
>>TALHA AHMED ALI
☺ Good Luck ☺
Download