subject
Engineering, 02.04.2020 15:57 Puppy9118

PLEASE CODE IN C++#include using namespace std;int main(){int array1[20] = {3, 18, 1, 25, 4, 7, 30, 9, 80, 16, 17};int numElements = 11;cout << "Part 1" << endl;// Part 1// Enter the statement to print the numbers in index 4 and index 9// put a space in between the two numberscout << endl;// Enter the statement to print the numbers 3 and 80 from the array above// put a space in between the two numberscout << endl;// Enter the statement to change the number 1 in the array to be 12// then write the statement to print out that number in the arraycout << "\nPart 2" << endl;// Part 2// Write a function called printAll. It takes in an array// and an integer that has the number of values in the array.// The function should print all the numbers in the array with// a space between each one.// Call the function on the line below. cout << "\nPart 3" << endl;// Part 3// Write a function called printEven. It takes in an array and// an integer that has the number of values in the array. It prints// all the even numbers in the array with a space between each one.// This function returns the count of evens. int evens; // Call the function you just wrote and store the// answer in the variable evens declared above. // This will print the number of evens in the array. cout << endl << evens; cout << "\nPart 4" << endl; // Part 4// Write a function called computeTotalOdds. It takes in an array and// an integer that has the number of values in the array. It will return// the total of all of the odd numbers in the array int total; // Call the function you just wrote and store the answer// in the variable total declared above// This will print the total outcout << endl << total; return 0;}

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Two flowing streams of argon gas are adiabatically mixed to form a single flow/stream. one stream is 1.5 kg/s at 400 kpa and 200 c while the second stream is 2kg/s at 500 kpa and 100 ? . it is stated that the exit state of the mixed single flow of argon gas is 150 c and 300 kpa. assuming there is no work output or input during the mixing process, does this process violate either the first or the second law or both? explain and state all your assumptions.
Answers: 1
question
Engineering, 04.07.2019 18:10
Compute the pressure drop of 30°c air flowing with a mean velocity of 8 m/s in a circular sheet-metal duct 300 mm in diameter and 15 m long. use a friction factor, f 0.02, and pair = 1.1644 kg/m a. 37.26 pa b. 25.27 pa n c. 29.34 pa d. 30.52 pa
Answers: 1
question
Engineering, 04.07.2019 18:20
Asolid cylinder is concentric with a straight pipe. the cylinder is 0.5 m long and has an outside diameter of 8 cm. the pipe has an inside diameter of 8.5 cm. the annulus between the cylinder ad the pipe contains stationary oil. the oil has a specific gravity of 0.92 and a kinematic viscosity of 5.57 x 10-4 m2/s. most nearly, what is the force needed to move the cylinder along the pipe at a constant velocity of 1 m/s?
Answers: 3
question
Engineering, 04.07.2019 18:20
Acertain flow of air (at stp) has a velocity distribution given by v i (in ft/s). if this flow is going through a 4 ft square area in the yz-plane (centered at the origin), what is the mass flow rate (in lbm/s)?
Answers: 2
You know the right answer?
PLEASE CODE IN C++#include using namespace std;int main(){int array1[20] = {3, 18, 1, 25, 4, 7, 30,...
Questions
question
Biology, 22.01.2021 04:10
question
English, 22.01.2021 04:10
question
Biology, 22.01.2021 04:10
Questions on the website: 13722363