Determine the force in each member of the truss and state if the members are in tension or compression. Set P1=30kN,P2 =15 kN.
Madeline Fines EECS 138: Homework 2 Due: 2016-04-05, end of day 1. A variable that can hold many values of the same type is called a(n) _Arrary______________. 2. What library must be included in order to read to or from files ____ifstream______ 3. (T or F) Vectors and arrays are the same data type False 4. (T or F) strcmp for c-strings and == for strings work the same way when making a comparison False 5. The flag to always show the decimal point in floating point numbers is ios::precision()_____. 6. “\n” is a _end line signal_____ and ‘\n’ is a _char______. 7. When is the external name of a file used in a program (the name of the file as it appears on disk) When the file is opened/called at the beginning of the program 8. Why are arrays of characters and c-strings not exactly the same thing Arrays have extra features built in 9. If we declare an array using int a;, is there any problem setting a value in a with a = 5; Yes, the max position label will be at a 10. (T or F) When accessing an element of an array, the index value you use must be an integer False 11. (T or F) Arrays, when passed to functions, can’t be modified unless they are specified to be pass-by-reference using the & identifier. True 12. You can use a call to a void function in a cout statement (ex cout << print(a) << endl; if print were a void function) False, void doesn’t return a value to cout 13. The variables passed to a function are called its __arguments_______. 14. What type of value do void functions