Question: Programming in C (not C++!) 4. Part 2 Structs and Arrays (65 points). In this assignment, we will be making a program that reads in

Programming in C (not C++!)

Programming in C (not C++!) 4. Part 2 Structs and Arrays (65

points). In this assignment, we will be making a program that reads

in student's information, and create a classroom seating arrangement with a number

of rows and columns specified by a user. Then it will attempt

to assign each student to a seat in an classroom. Use the

file homework_ part 2.c (attached at the end of this document). Complete

the file and include all the following requested code in the file

homework_part_2.c Step 1 First, you need to create a structure student. It

4. Part 2 Structs and Arrays (65 points). In this assignment, we will be making a program that reads in student's information, and create a classroom seating arrangement with a number of rows and columns specified by a user. Then it will attempt to assign each student to a seat in an classroom. Use the file homework_ part 2.c (attached at the end of this document). Complete the file and include all the following requested code in the file homework_part_2.c Step 1 First, you need to create a structure student. It should contain two variables, last name (char [30]) and first name (char [30]). In addition, the following functions should be defined. Function void student init default (struct student *s) Description Assign the default string" ??? " to both variables, last name and first _name void student init (struct student *s, char *info) Use the strtok function to extract first name and last name from the variable student, then assign them to each instance variable of the student structure. An example of the input string is David/Johnson void student to string (struct student *s) It prints the initial character of the first name, a period, the initial character of the last name, and a period. An example of such string for the student David Johnson is D.J 4. Part 2 Structs and Arrays (65 points). In this assignment, we will be making a program that reads in student's information, and create a classroom seating arrangement with a number of rows and columns specified by a user. Then it will attempt to assign each student to a seat in an classroom. Use the file homework_ part 2.c (attached at the end of this document). Complete the file and include all the following requested code in the file homework_part_2.c Step 1 First, you need to create a structure student. It should contain two variables, last name (char [30]) and first name (char [30]). In addition, the following functions should be defined. Function void student init default (struct student *s) Description Assign the default string" ??? " to both variables, last name and first _name void student init (struct student *s, char *info) Use the strtok function to extract first name and last name from the variable student, then assign them to each instance variable of the student structure. An example of the input string is David/Johnson void student to string (struct student *s) It prints the initial character of the first name, a period, the initial character of the last name, and a period. An example of such string for the student David Johnson is D.J

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!