Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ take your time double check it and write comments on the program Write a program that creates a 4 times 5 two-dimensional array. The
C++ take your time double check it and write comments on the program
Write a program that creates a 4 times 5 two-dimensional array. The program should use loops to populate the array using the rand, srand and time functions with random numbers between 10 and 60. After the values have populated the array, output the values of the array to the screen in something that looks like a 4 x 5 table. The final date/time to submit this assignment is Friday, April 1st at midnight. Populate a one-dimensional array with the following grades in this order: 91, 62, 75, 43, 84, 52, 70, 84, 99, 88, 91, 69 and 67. Use a loop to call a method from mainO that adds 10 points to all student grades that are a C or above. A C is defined as a score of 70 or above. Make this happen by passing the subscript value and not the entire array. The addition of the 10 points should happen in the method and be passed back to main. Use a loop to show final values within the array. The final array values should show the new adjusted grades. The final date/time to submit this assignment is Friday, April 1st at midnight. Populate a two-dimensional array with the following prices in this table order: Write a method/function which uses loops and is called from main() that increases the prices by 4% and stores the new price in the same array. All changes to the array must be made inside the method/function. Please display the original array in table form as well as the new array with the 4% price increase. The final date/time to submit this assignment is Friday, April 1st at midnight. Write a program that takes an integer from the user via the keyboard and passes the integer by Reference to a void method or function. The method or function should determine if the number is odd or even. If the integer is even the method does nothing to the number. If the integer is odd the method adds one to the number to make it even. Once the program returns to main, output to the screen the new number. The final date/time to submit this assignment is Friday, April 1st at midnightStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started