posted on Nov, 30 2014 @ 03:33 PM
If there is anyone on here who can help me, a Mechanical Engineering student, with some c++ homework, would be appreciated.
I mostly want help with exercise A, but any guidance at all would be appreciated. I use Bloodshed's DEV C++ compiler. Thanks in advance.
Exercise A) RandomArray - Write a program that populates an integer array of size 100 with random numbers. The user should be prompted to choose the
low and high numbers (inclusive) in the random number range. The program should display the contents of the array separated by a hyphen(-).
Example Output:
32 - 12 - 43 - 11...
Note: Your program should contain two separate loops: one loop for input and one for output.
Exercise B) LinearSearch - Write a program that populates a character array with 15 characters using an initializer list. Prompt the user for a
search character. Your program should look through the array to see if the search character exists in the array. If the array contains the search
character, then your program should display the index it was first found. If the array does not contain the search character, then the program should
display "Character Not Found."
Exercise C) LongJumps - Write a program that uses an array to store 3 jumps taken in a meet by a Long Jumper (in meters). Using a loop prompt the
user for the three jump distances. The program should use another loop to find the longest jump. The program should use a third loop to find the
average jump. Display the longest jump and average jumps.
edit on 11/30/2014 by JamesCookieIII because: (no reason given)