Hello guys, im trying to create 3 functions that do this basically. CreateNumber
ID: 441073 • Letter: H
Question
Hello guys, im trying to create 3 functions that do this basically. CreateNumbers() Create an array and generate 50 random numbers DeleteDuplicates() This function will delete numbers that are the same. DisplayNumbers() Display all elements in array in one line (Note: Dont loop whole length of the array, only the number of elements) #include using namespace std; const int MAX = 60; // Function Prototypes // RandomNumbers() // DeleteRepeats() // DisplayNumbers() int main() { int a[MAX], TotalNumbers = CAP; RandomNumbers(a); DisplayNumbers(a,TotalNumbers); cout << " Deleting Repeated Numbers... "; DeleteRepeats (a, TotalNumbers); DisplayNumbers(a,TotalNumbers); cout << endl; cout << endl; system("Pause"); return 0; } // RandomNumbers() // DeleteRepeats() // DisplayNumbers() I dont know how to approach this problem as far as the functions.Explanation / Answer
//hosted on my dropbox // rate and comment and I'll unhost. // //please note that it would better illustrate fxn if you put a range on rand (i.e. mod it by a number) // comment if you have any question // ( o_o) https://www.dropbox.com/s/wq1qdby8jm0yolg/3FxnRandDeleteDisplayArray.txt
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.