Computers and Technology, 17.03.2020 01:37 fayvetteville
Define a function SetBirth, with int parameters monthVal and dayVal, that returns a struct of type BirthMonthDay. The function should assign BirthMonthDay's data member month with monthVal and day with dayVal.
#include
typedef struct BirthMonthDay_struct {
int month;
int day;
} BirthMonthDay;
/* Your solution goes here */
int main(void) {
BirthMonthDay studentBirthday;
int month;
int day;
scanf("%d %d", &month, &day);
studentBirthday = SetBirth(month, day);
printf("The student was born on %d/%d.\n", studentBirthday. month, studentBirthday. day);
return 0;
}
Answers: 2
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a websiteâs domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
Computers and Technology, 24.06.2019 17:40
Write a program to analyze studentâs scores. each studentâs id and 4 original test scores are saved in the attached file âstudent_id_scores.txtâ. assume there are exactly 15 students in the class.⢠the program first opens the file, reads studentâs ids and scores from the file and saves them in two arrays: o create a one-dimensional string array âidsâ to store the studentâs ids.o create a (parallel) two-dimensional int array âscoresâ to store studentâs original test scores. this array has 5 columns, the original 4 test scores should be saved in the first 4 columns, and the last column will be used to save the average score after the calculation in next step.⢠the program then retrieves test scores from the array âscoresâ, calculates average score and determines the final letter grade based on the rules in the table below for each student. assume average score is integer value.average score = (score1 + score2 + score3 + score4) / 4average score letter grade90 ~ 100 a80 ~ 89 b70 ~ 79 c60 ~ 70 d0 ~ 60 f⢠the average score should be saved back in the 5th column of âscoresâ array.⢠create a new parallel one-dimensional char array âgradesâ to save each studentâs letter grade.⢠program also needs to find the number of a, number of b, number of c, number of d and number of f grade. as well as the highest, lowest and average score of the class.⢠finally, program will display all of the original scores and all results on the computer screen using the format shown as the sample output below.⢠the program must contain at least the following functions: (1) a function âgetscoresâ to read and store data into âidsâ and âscoresâ arrays.(2) a function âanalyzescoresâ to calculate studentâs average score, determine letter grade, get the number of a, b, c, d and f, find the highest, lowest and average score of the class.(3) a function âdisplayresultsâ to display all of the results
Answers: 3
Computers and Technology, 24.06.2019 18:00
Which of the following is an example of synchronous communication? a) e-mail b) voicemail c) telephone conversation d) text message.
Answers: 1
Define a function SetBirth, with int parameters monthVal and dayVal, that returns a struct of type B...
Computers and Technology, 30.07.2019 18:30
Mathematics, 30.07.2019 18:30
Chemistry, 30.07.2019 18:30
Mathematics, 30.07.2019 18:30
Social Studies, 30.07.2019 18:30
Mathematics, 30.07.2019 18:30
Mathematics, 30.07.2019 18:30
History, 30.07.2019 18:30
Biology, 30.07.2019 18:30
Mathematics, 30.07.2019 18:30
History, 30.07.2019 18:30