Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the arrays in these questions, unless i specify a size for the array, decide the size of the array for yourself. 1) Write a

For the arrays in these questions, unless i specify a size for the array, decide the size of the array for yourself.

1) Write a c++ program that contains the following functions, declare as many arrays as needed

a) A function that takes in an array as an input (parameter) and fills it up with whole number data from a file

b) A function that takes in the filled array and returns the sum of the array

c) A function that calculates that average of the array and prints out every element in the array less than the average Use appropriate function calls to test the functions

2) Write a c++ program that contains the following functions, declare as many arrays as needed

a) A function that takes in an array as input and has the user enter in a sequence of characters to store in the array (use a character array)

b) A function that takes in the character array as input and returns the number of vowels inside the array

c) A function to print the content of the array one per line

d) A function that takes in two arrays as input an copies the content of the filled array into the empty one.

3)Redo question 3 on homework one using arrays. add a function to read the numbers from the file into the array,and redo the other functions using the array.

4) Do programming exercise 1 in chapter 8 of the textbook (it's the same in 7th and 8th edition). Your program should contain the following functions (index in the question refers to the address of the array\ LCV )

a) A function to fill up the array as directed by the exercise

b) A function to output the content of the array (Does not need to be 10 per line, haven't explained this in class yet)

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

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

Conduct an effective performance feedback session. page 360

Answered: 1 week ago