Question: C++ Please! A Thumbs Up and Positive Comment Will Be Left For A Complete Response! Thank you! Problem1 dynamic allocated two-dimensional array This program fills

C++ Please! A Thumbs Up and Positive Comment Will Be Left For A Complete Response!

Thank you!

Problem1 dynamic allocated two-dimensional array

This program fills and print out the board.

The steps are:

Declare an int** variable named board which will be used for dynamical array;

Declare two int variables row and column.

Prompt user to enter the values of row and column;

Dynamically allocates a two-dimensional array large enough to hold that row*column values;

Prompt users to enter the values for the board.

Print out the board.

Problem 2 class (simple program)

Complete the following program:

#include

using namespace std;

//define a class named DayOfYear with two public data members (month and day) and one public function member (function prototype: void output())

int main( )

{

//declare two variables named today and birthday of type DayOfYear.

//assign variable todays member month and member day to be 2 and 15;

//print out todays date (print out member month and member day of variable today using function member of output)

//prompt user to enter their birthdays month and day, and save them in the corresponding members of variable birthday

//print out users birthday (print out member month and member day of variable birthday using function member of output)

//compare variables today and birthday, if they are same, print out Happy Birthday!; otherwise, print out Happy Unbirthday!

return 0;

}

//complete the definition of function member output of class DayOfYear

void DayOfYear::output( )

{

//print out the data members month and day

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!