Site hosted by Angelfire.com: Build your free website today!

Program 49

C++                                                    

K. Dzwonkiewicz       

 

Use apvector for your arrays to do the following

 

You will need two apvecor arrays minimum

 

1)                  Write the necessary steps that will fist fill an array called number with 500 random numbers.  They are in the range 60-85.

 

2)                  Detirmine the frequency which that each number occurs.

 

3)                  Print the frequency for the set of numbers in a table like below.  Print them sorted high to low (frequency is sorted) as below.

 

 

Number           Frequency

60                    30

61                    33                                “Today is the first day of the rest of your life. 

62                    29                                     This is true for every day except one…

63                    38                                                        the day you die.”

                                                                                    -Kevin Spacey

                      

                      

85                    34                   

 

SORTED FREQUENCY                                 “You don’t know me… fool.

                                                                             You disown me… cool!”

Number           Frequency                                          “Colors” - Ice T

63                    38

85                    34

61                    33

72                    32

                                                                      “Hey, come on, do your job!”

                                                                                    -Spiderman

                                             

80                    26

 

 

 

 

 

COME ON AND ROCK ME AMADEUS!!!