subject

[C++ for array week| First, make an array to use later in the pogram:
Array of ints of size 90 (not dynamic)
Init all values to 0 (that's the curly braces thing)
Loop through the array and set each value to a random number between 2 and 9
Print the array with a separate for loop. Put a space between each number
Now use that array to do the following:
Ask the user what index they want to change
If it is out of bounds, don't exit the program, just ask again.
Ask the user what the new value should be
Reprint the array
Keep doing this until they enter -1 for the index
Here's a super important point. Before you use the index they gave you, you must check to make sure it is not out of bounds on that array. Crashing is worse than being wrong.
Any crash or infinite loop automatically drops the grade two letters no matter how correct anything else is. In real life, if you make a mistake you can fix it in a patch. If your program crashes though, someone might die. Or worse yet, return your program so you don't get paid.
SP21: Give extra point for dynamic array

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 23:30
Match the following errors with their definitions. a. #name b. #value c. #ref d. 1. when a formula produces output that is too lengthy to fit in the spreadsheet cell 2. when you enter an invalid cell reference in a formula 3. when you type text in cells that accept numeric data 4. when you type in a cell reference that doesnโ€™t exist
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
Aman travel 200m towards east< br /> from his house then takes left< br /> to turn and moves 200 m north< br /> find the displacement & distance.< br />
Answers: 3
question
Computers and Technology, 25.06.2019 01:30
What controls can be found on the file tab of microsoft word
Answers: 1
question
Computers and Technology, 25.06.2019 15:00
When microsoft excel is first opened, where will its content come from?
Answers: 1
You know the right answer?
[C++ for array week| First, make an array to use later in the pogram:
Array of ints of size...
Questions
question
Mathematics, 15.05.2021 22:30
question
Mathematics, 15.05.2021 22:30
question
Mathematics, 15.05.2021 22:30
question
Mathematics, 15.05.2021 22:30
question
Mathematics, 15.05.2021 22:30
question
Mathematics, 15.05.2021 22:30
question
Mathematics, 15.05.2021 22:30
question
Biology, 15.05.2021 22:30
Questions on the website: 13722363