Please help in answering these questions dealing with this one prompt:

1
Which line is first line of the date structure prototype (blueprint)?
30
21
7
59
2
Which line is date structure declared inside another structure prototype?
21
32
36
60
3
What is the structure tag which has date as a data member?
date
him
student
her
4
Which line is a student structure instance declared (created)?
17
30
25
55
5
Which line is a student structure initialized?
61
17
45
34
6
Which line is a date structure created (instantiated)?
30
7
49
59
7
Which line has a date structure initialized values?
22
32
7
60
8
Which line sets the percentage value for her programming module?
43
13
23
61
9
Which line prints the year a specified student enrolled?
22
49
32
60
10
Which line defines the year data type for a date?
59
22
8
36
Please find the answer below for the questions.
Which line is first line of the date structure prototype (blueprint)?
Answer: Line# 7
It has data struct prototype.
Which line is date structure declared inside another structure prototype?
Answer: Line# 21
This line has data struct declared inside student structure and we can also have line# 22
What is the structure tag which has date as a data member?
Answer: student
struct student has data as data member
Which line is a student structure instance declared (created)?
Answer: Line# 30
struct student instance created at line# 30 by calling struct student him = { };
Which line is a student structure initialized?
Answer: Line# 34
struct student her initialized at line# 34 by calling struct student her = { };
Which line is a date structure created (instantiated)?
Answer: Line# 30
struct date instantiated at line# 30 by calling struct student him = { };
Note: As per HOMEWORKLIB RULES, we are requested to first four questions and if time permits we will answer more than 4
Please help in answering these questions dealing with this one prompt: 1 Which line is first...
Please explain how these code run for each line #include<stdio.h> #include<string.h> /** * Part A */ struct myWord{ char Word[21]; int Length; }; int tokenizeLine(char line[], struct myWord wordList[]); void printList(struct myWord wordList[], int size); void sortList(struct myWord wordList[], int size); /** * main function */ int main() { struct myWord wordList[20]; char line[100]; printf("Enter an English Sentence:\n"); gets(line); int size = tokenizeLine(line, wordList); printf("\n"); printf("Unsorted word list.\n"); printList(wordList, size);...
I JUST NEED HELP WITH DISPLAY PART!
please help!
thanks in advance
// This function saves the array of structures to file. It is already implemented for you.
// You should understand how this code works so that you know how to use it for future assignments.
void save(char* fileName)
{
FILE* file;
int i;
file = fopen(fileName, "wb");
fwrite(&count, sizeof(count), 1, file);
for (i = 0; i < count; i++)
{
fwrite(list[i].name, sizeof(list[i].name), 1, file);
fwrite(list[i].class_standing, sizeof(list[i].class_standing), 1, file);...
Please help in answering these questions:
1
Line 92 deck is a calling parameter. The received number of that
parameter is what?
copy of original value
pointer
2
Line 92, src is a calling parameter. The received number of that
parameter is what?
copy of original value
pointer
3
Line 95 is a debugging technique where the computer prints what
it is doing. Give the line number of a similar line in the
example
99
101
108
113
4
Line...
Please explain step by step what is going on each step.please clearly explain line by line the working of code . Also provide the output. I would rate positively. Thank you so much . #include <stdio.h> #include <stdlib.h> struct node { int data; struct node *next; }; struct node *head = NULL; void printList() { struct node *ptr = head; printf("\nhead:"); while(ptr != NULL) { printf("node addr:%p \tdata:%d \tnext addr:%p\n”, ptr,ptr->data,ptr->next); ptr = ptr->next; } printf(" [null]\n"); } void insert(int data) { struct node *link = (struct node*) malloc(sizeof(struct node)); link->data = data; link->next = head; head = link; } int main() {...
ASSIGNMENT DUE DATE GOT PUSHED BACK TO LATE THIS WEEK. PLEASE READ COMMENTS AND CODE BEFORE ANSWERING CODING SECTIONS HW07 #Q1-Q5 HW08 #Q1-Q2 // READ BEFORE YOU START: // Please read the given Word document for the project description with an illustrartive diagram. // You are given a partially completed program that creates a list of students for a school. // Each student has the corresponding information: name, standard, and a linked list of absents. // Please read the instructions...
This question has been asked before but the responses have been wrong. Please do not copy and paste their answers. Currently the program opens a file and reads every byte in the file and write both the ASCII hex value for that byte as well as it’s printable character to standard output with non-printable characters printing a "." Now, I want have an option where the program prints in binary instead of hex by typing "-b" at the command line....
Which part of this program is used for input one context free
grammar? And if you want to give another different context free
grammar, how to do that?
code:
#include<stdio.h>
#include<stdlib.h> #include<string.h>
#define MaxVtNum 20
#define MaxVnNum 20
#define MaxPLength 20
#define MaxSTLength 50
char stack[20]={'#','E'};
char input[MaxSTLength];
char termin[MaxVtNum]={'i','+','*','(',')','#'}; char
non_termin[MaxVnNum]={'E','G','T','H','F'};
struct product{
char left;
char right[MaxPLength];
int length;
};
struct product E,T,G,G1,H,H1,F,F1;
struct product M[MaxVnNum][MaxVtNum];
int flag=1;
int top=1;
int l;
void print_stack(){
}
}
}
}
}...
Hello, I am having trouble with a problem in my C language class. I am trying to make a program with the following requirements: 1. Use #define to define MAX_SIZE1 as 20, and MAX_SIZE2 as 10 2. Use typedef to define the following struct type: struct { char name[MAX_SIZE1]; int scores[MAX_SIZE2]; } 3. The program accepts from the command line an integer n (<= 30) as the number of students in the class. You may assume that the...
Writing a program in C please help!! My file worked fine before but when I put the functions in their own files and made a header file the diplayadj() funtion no longer works properly. It will only print the vertices instead of both the vertices and the adjacent like below. example input form commnd line file: A B B C E X C D A C The directed edges in this example are: A can go to both B and...
can someone help me with changing this to c++ language #include <stdlib.h> #include <stdio.h> #include <pthread.h> #include <string.h> #include <dirent.h> #include <sys/wait.h> #include <time.h> #include <sys/stat.h> #include <unistd.h> char *pathLog; char *pathRep; struct stat attr; int fileNum, curNum; char *create_logPath(char *directory); void *funcChecker(void *pathSub); void *funcprintTimeAndChanges(void *pathSub); void main(int argc, char *argv[]) { if(argc < 3) { printf("%s must be executed with exactly two additional arguments (pathRep, pathSub)!\n", argv[0]); printf("Typed count is %d\n", argc); printf("Aborted...