Sponsored Links


Results 1 to 3 of 3

Thread: Assignment No. 02 Semester: Spring 2010 CS201: Introduction to Programming

  1. #1
    Senior Member viki's Avatar
    Join Date
    May 2010
    Posts
    2,132

    28 Assignment No. 02 Semester: Spring 2010 CS201: Introduction to Programming

    Sponsored Links


    Due Date:07/05/2010

    Problem Statement: Finding the repeated elements in an array
    You are required to write a program that takes 10 integer values in an array as input from user. After getting input, the program should find the elements with repetition and number of times each element is repeated.


    Detailed Description:

    Sponsored Links


    1. Declare an integer type array.
    2. Take input from user in the array i.e. 10 integer values.
    3. Pass this array to a function which will calculate and display the number of times an element is repeated.
    4. If the array contains elements with repetition, the program should only display the repeated elements and their count.
    5. If there is no repetition in the array, the program should simply display the message “There is no repetition in the array”.

    Sample Output 1
    Enter the value of array element 1 : 8
    Enter the value of array element 2 : 6
    Enter the value of array element 3 : 2
    Enter the value of array element 4 : 4
    Enter the value of array element 5 : 2
    Enter the value of array element 6 : 2
    Enter the value of array element 7 : 7
    Enter the value of array element 8 : 8
    Enter the value of array element 9 : 5
    Enter the value of array element 10 : 6


    2 is repeated 3 times
    6 is repeated 2 times
    8 is repeated 2 times


    Sample Output 2
    Enter the value of array element 1 : 1
    Enter the value of array element 2 : 3
    Enter the value of array element 3 : 8
    Enter the value of array element 4 : 7
    Enter the value of array element 5 : 4
    Enter the value of array element 6 : 9
    Enter the value of array element 7 : 6
    Enter the value of array element 8 : 5
    Enter the value of array element 9 : 0
    Enter the value of array element 10 : 2


    There is no repetition in the array

  2. #2
    Junior Member
    Join Date
    Nov 2010
    Posts
    5
    i need it solution plz share it,

  3. #3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. CS201-Introduction to Programming Assignment No.2 Spring semester 2014
    By vuassignments in forum Assignments & Solutions
    Replies: 0
    Last Post: 07-09-2014, 04:14 PM
  2. Replies: 1
    Last Post: 04-27-2013, 03:02 PM
  3. Replies: 0
    Last Post: 06-21-2012, 04:26 PM
  4. Replies: 0
    Last Post: 06-09-2012, 05:56 AM
  5. Replies: 4
    Last Post: 04-14-2012, 09:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft