Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CSIT 440 - C++ Programming Lab Homework Assignment- Parameter passing DO NOT USE EXTERNAL DECLARATION OF VARIABLES. All variables must be declared within the MAIN
CSIT 440 - C++ Programming Lab Homework Assignment- Parameter passing DO NOT USE EXTERNAL DECLARATION OF VARIABLES. All variables must be declared within the MAIN function. All functions must receive the data. WARNING-keep this simple Write the program without using a function- then add the function later 1. Write a program to accept 10 numbers from the user. Store these variables in an array. From the function main - send the array of numbers one at a time to another function called multiply. The function multiply will: multiply the number it receives by 2 and send it back to the array in main(). When the function ends, the array will have all new numbers. When the control passes back to the main function print out the changed array. 2. Using the program above as a starting point.... modify the program so that it sends the entire array of numbers by using a pointer to the array to a function called back. The function back will accept the pointer to the array and then print out the numbers backwards
Step 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