static void* coalesce(void* curr){    void* prev = prev_payl…

static void* coalesce(void* curr){    void* prev = prev_payload_pointer(curr);    void* next = next_payload_pointer(curr);    uint64_t prev_alloc = get_alloc(get_header(prev));    uint64_t next_alloc = get_alloc(get_header(next));    uint64_t size = get_size(get_header(curr));    //case 1    if (prev_alloc && next_alloc) {        return curr;    }    //case 2    else if (prev_alloc && !next_alloc) {        size += get_size(get_header(next));        set(, pack(size, 0));        set(get_footer(next), pack(size, 0));        return ;    }    //case 3    else if (!prev_alloc && next_alloc) {        size += get_size(get_header(prev));        set(, pack(size, 0));        set(get_footer(curr), pack(size, 0));        return ;    }    //case 4    else {        size += get_size(get_header(prev)) + get_size(get_header(next));        set(, pack(size, 0));        set(get_footer(next), pack(size, 0));        return ;    }}

Information for Questions 33 to 36 Inter-company Depreciable…

Information for Questions 33 to 36 Inter-company Depreciable Transactions Penn owns 80% of Senn’s stock. On January 3, 20X4, Senn sold equipment with an original cost of $30,000 and a carrying value of $12,000 to Penn for $16,000. The equipment had a remaining useful lifespan of four years and was depreciated using the straight-line method by both companies. When entering your answers,  round them to the nearest dollar, enter them as numbers with no decimal places and no dollar ($) signs, and enter the numbers with or without the comma separator (e.g., either 28,374 or 28374). If a question is asking about an amount for which there is no entry, you must enter a 0. Blanks are marked as incorrect. For partial credit, do the following: After stating your answers, use the partial credit question that follows to show how you arrived at them (e.g., 13,000 ). Include any explanations or logic you used to arrive at your answers.  

Penn owns 100% of the capital stock of both Senn and Tenn. S…

Penn owns 100% of the capital stock of both Senn and Tenn. Senn purchases merchandise inventory from Tenn at 120% of Tenn’s cost. During 20X4, merchandise that cost Tenn $60,000 was sold to Senn. Senn sold all of this merchandise to unrelated third-party customers for $82,000 during 20X4. In preparing combined financial statements for 20X4, Penn’s accountant disregarded the common ownership of Senn and Tenn. By what amount was unadjusted revenue overstated in the combined income statement for 20X4?

Information for Questions 25 to 32 Upstream Inventory Transa…

Information for Questions 25 to 32 Upstream Inventory Transaction On January 2, 2024, Penn purchased 80% of the outstanding common shares of Senn. During 2024, Senn sold merchandise that cost $4,900 to Penn for $7,000. Penn sold all but $1,000 of this merchandise to its customers for $8,000 in cash. Senn reported net income of $8,000, and Penn reported separate operating income (excluding income from Senn) of $15,000 during 2024. When entering your answers,  round them to the nearest dollar, enter them as numbers with no decimal places and no dollar ($) signs, and enter the numbers with or without the comma separator (e.g., either 28,374 or 28374). If a question is asking about an amount for which there is no entry, you must enter a 0. Blanks are marked as incorrect. For partial credit, do the following: After stating your answers, use the partial credit question that follows to show how you arrived at them (e.g., 13,000 ). Include any explanations or logic you used to arrive at your answers.