Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

HELP C++ QUESTIONS Please so as many as you can. Could you use the maximum findi

ID: 3698001 • Letter: H

Question

HELP C++ QUESTIONS

Please so as many as you can.

Could you use the maximum finding function object you designed in #22 to help with processing the scores from #25? If so. how? If not why not? When a data file has a block structure such that each block has information about a particular item' (e.g. a bank patron, a self-sealing stem-boH an inventory item, a sample taken at a geological dig. etc.). the file's data would be most effectively read by a loop: in the main program with each block going into parallel spots in many containers in the main program with each Hock going into a class-type variable, processing it before moving on to the next block in a class method with each block going into parallel member containers in a class method with each block going into member variables to be processed before reading the next block in the main program with each block going into an element of a class-type based container for later processing How would you allow the user to place comments in a data file? Explain briefly. Recalling that 'x - y' can be rewritten as x.operator+(y)' (when x is an object of a class for which operator+ has been overloaded as a member function taking an argument of y's type), rewrite each of the following expressions as operator function calls. Use non-member operator versions only when necessary. Assume all variables are objects with appropriate overloading available. Assume all class operations return a class object - where reasonable. (And. - es. all of these operators exist and are overload-able.) x = y + 2 n

Explanation / Answer

Answer:)

28.