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

15. What does ADT stand for? a. abstract definition type c. abstract data type b

ID: 3892902 • Letter: 1

Question

15. What does ADT stand for? a. abstract definition type c. abstract data type b. asynchronous data transfer d. alternative definition type 16. a. Write a declaration of a C++ struet named Date with a day field oftype int. amonth field of type int, and a year field of type int ent that declares a variable named birthdays which is an aray of Date structs. The length of this array should be 10o. Write the code necessary 1970. c. to initialize all the birthdays array elements to day y elements to day-1, month- d. Write a statement that sets the year field of the very first element of birthdays to "1997" Write a statement that declares a variable named datePtr of type pointer to Date and sets it to point to the second element of the birthdays array e. Write a statement that uses the datePtr variable to set the month field of the second e

Explanation / Answer

15. c. abstract data type

16

a.

struct Date

{

int day;

int month;

int year;

};

b.

struct Date birthdays[100];

c.

for(int i=0;i<100;i++){

birthdays[i].day = 1;

birthdays[i].month = 1;

birthdays[i].year = 1970; ? }

d.

birthdays[0].year = 1997;

e.

struct Date *datePtr;

datePtr = &birthdays[1];

datePtr->month = 9;

Do ask if any doubt. Please upvote.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote