Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions