Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I NEED THIS PROGRAM IN C++ PLEASE GradeList.txt Homework 09A COMSC-044 Array Expander Write a function that accepts an int array and the array's size

I NEED THIS PROGRAM IN C++ PLEASE

image text in transcribed

GradeList.txt

image text in transcribed

Homework 09A COMSC-044 Array Expander Write a function that accepts an int array and the array's size as arguments. The function should create a new array that is twice the size of the argument array. The function should copy the contents of the argument array to the new array and initialize the unused elements of the second array with 0. The function should return a pointer to the new array. Take your input data from the file Gradelist.txt. Your program shoulo: Display your name . Display the original array . Display the size of the original array Display the new array that your function generates; . Display the size of the new array Call your program: YourName-Hwrk09A.cp Homework 09B COMSC-044 Element Shifter Write a function that accepts an int array and the array's size as arguments. The function should create a new array that is one element larger than the argument array. The first element of the new array should be set to 0. Element 0 of the argument array should be copied to element 1 of the new array, element 1 of the argument array sh the new array, and so forth. The function should return a pointer to the new array. Take your input data from the file Gradelist.txt. Your program s ould be copied to element 2 of Display your name Display the original array: . Display the size of the original array Display the new array that your function generates; Display the size of the new array . Call your program: YourName-Hwrk09B.c pp

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

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago