Question: help me to solve this quetions in c++ Computer Programming for Scientists and Engineers Write a C++ program that defines an integer array of size





Write a C++ program that defines an integer array of size 18, the program asks the user to fill the array from the keyboard. After filling the array, the function prints all values that are divisiblby 3 and less than the average Use the editor to format your answer Write a function called "AddRows" that accepts two parameters: wi: a matrix of size 7x4 elements of type integer B1:a one dimensional array of size 4. For each column in W1, the function will calculate and store in the corresponding element of array B1, the sum of the elements located in even rows of W1. For example if W1 - 1 4 5 3 1 7 7 6 12 4 9 7 3 6 5 00 8 10 o 10 2 pre x 1 3 7 6 12 9 7 3 6 5 8 00 10 N 10 5 8 5 5 3 4 5 12 12 10 6 Then B1 19 35 27 20 Question 3 Given a text file containing unknown number of lines, each line containing three integer values representing the height of a building in (Yard foot inches) separated by space. Write a well-documented C++ program that 1. Reads the three values from the file, 2. If any of the read values is greater than 2000, prints on the screen an error message: "Error: invalid building length." 3. Otherwise, calculates the building length in inches, where one yard is 3 feet, and foot is 12 inches. 4. Sends to another file both length values: the read and the calculated as shown below. 5. Repeats steps (1-4) until a negative value is encountered. . For example, if the read values are (71 26), then your program must send to a new file the following: The height of a building in YD:FT:IN format = 71:2:6 The height of a building in inches = 2586 . . Use the editor to format your answer The output printed after executing the following C++ code is Blank 1. int ex=95, ct; switch (ex % 16) { case 0: case 1:case 2:case 3: cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
