Engineering
define a class named history with the following public interface: class history { public: history(int nrows, int ncols); bool record(int r, int c); void display() const; }; the constructor initializes a history object that corresponds to an arena with nrows rows and ncols columns. you may assume (i.e., you do not have to check) that it will be called with a first argument that does not exceed maxrows and a second that does not exceed maxcols, and that neither argument will be less than 1. the record function is to be called to notify the history object that a poisoned carrot has been dropped at a grid point that does not currently have a poisoned carrot. the function returns false if row r, column c is not within the bounds implied by the history constructor; otherwise, it returns true after recording what it needs to. this function expects its parameters to be expressed in the same coordinate system as an arena (e.g., row 1, column 1 is the upper-left-most position). the display function clears the screen and displays the history grid as the posted programs do. this function does clear the screen, display the history grid, and write an empty line after the history grid; it does not print the press enter to continue. after the display (that should be done somewhere else in the program). (note to xcode users: it is acceptable that clearscreen() just writes a newline instead of clearing the screen if you launch your program from within xcode, since the xcode output window doesn't have the capability of being cleared.)
let the value of the variable xval be 6 and the value of the variable yval be 5. which of the following code segments can be used to draw the figure? responses drawline(1, 5, xval, yval) drawline(1, 5, xval, yval 2) drawline(1, 5, xval, yval 2) drawline(1, 5, xval, yval) drawline(1, 5, xval, yval 2) drawline(1, 5, xval, yval 2) drawline(1, 5, xval, yval) drawline(1, 5, xval, yval 2) drawline(1, 5, xval, yval - 2) drawline(1, 5, xval, yval) drawline(1, 5, xval, yval 2) drawline(1, 5, xval, yval - 2) drawline(1, 5, xval, yval) drawline(1, 5, xval 2, yval 2) drawline(1, 5, xval 2, yval - 2) drawline(1, 5, xval, yval) drawline(1, 5, xval 2, yval 2) drawline(1, 5, xval 2, yval - 2) drawline(1, 5, xval, yval) drawline(1, 5, xval 2, yval 2) drawline(1, 5, xval - 2, yval - 2)
Read this brief example of information that might be recorded in a data store.You are conducting research on the transmission rate of a new infectious disease. Your database allows you to record information about individuals, locations they may visit, and government restrictions imposed to help slow the spread of the disease. The database allows you to store the following information:INDIVIDUAL: Birth Date, Gender, Ethnicity, and Infection StatusLOCATION: Latitude, Longitude, Name, CapacityRESTRICTION: Description, Date Imposed, JurisdictionNow match each item below with the role it plays in the data model.
consider the following python code. note that line numbers are included on the left. what is the order of the execution of the program? list the line number that the program is executed in order. a. 1,2,3,4,5,6,7,8,9,10b. 1,2,3,5,6,7,9,10c. 9,5,6,1,2,3,7,10d. 1,5,9,5,6,1,2,3,6,7,9,10
A plaintiff sued the insurer of her home after the insurer denied coverage for water damage to the home allegedly caused by a frozen plastic pipe that burst.At trial, the insurer called as an expert witness an engineer, who testified that the pipe had burst because of age rather than freezing.On cross-examination, the engineer admitted that five years earlier, he had been convicted of tax fraud, even though he had asserted that it was his accountant's error. In response, the insurer calls a witness, who is well acquainted with the engineer and his reputation, to testify that (1) in the witness's opinion, the engineer is a truthful person, and (2) the engineer's neighbors all describe him as a truthful person.How much, if any, of the witness's testimony is admissible?