Question

ASSIGNMENT: Student Data Write a program that uses two structures Name and Student to store the following information for mul

0 0
Add a comment Improve this question Transcribed image text
Answer #1
Thanks for the question.

Here is the completed code for this problem. Comments are included so that you understand whats going on. Let me know if you have any doubts or if you need anything to change.

Thank You !!
============================================================================================

struct NAME {
    char *first;            // char pointer to the first name
    char *last;             // char pointer to the last name
    char middleInitial;     // char variable to store the middle initial
  };

====================================================================================

enum PROGRAMS {CSCI, DBMS, INFM, SDEV}; // create an enum called PROGRAMS that will store the courses

struct STUDENT {
    char *name;            // char pointer to the student name
    int ID;                // int variable to store the student ID
    char *email;           // char pointer to point to the email string
    char SSN[9];           // char array to store the SSN digits
    PROGRAMS program;      // variable of type PROGRAMS 
  };

====================================================================================

Add a comment
Know the answer?
Add Answer to:
ASSIGNMENT: Student Data Write a program that uses two structures Name and Student to store the following information for multiple students 1. Create a NAME structure that consists of o First Name, M...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Write a C++ program using structures which create a structure called 'student' (structure should have name,...

    Write a C++ program using structures which create a structure called 'student' (structure should have name, age, major and grade) then create 4 instances of student and initialize accordingly. Contents of all 4 instances of student must be unique. Chose Data type for variables inside structure accordingly such that they are meaningful.

  • SC 111 - BMCC Exam Student Name: Type # 4 - 20 Points write a program...

    SC 111 - BMCC Exam Student Name: Type # 4 - 20 Points write a program that uses a structure named Student to store the following information about a Student: Name ID GPA Address The program should create three Student instances, store values, and pass all of them to a function that displays the information about the Student in a clearly formatted manner. The program also uses another function to calculate and display the average GPA of all three Students.

  • 1. Create a file that contains 3 rows of data of the form: First Name Middle...

    1. Create a file that contains 3 rows of data of the form: First Name Middle Name Last Name Month Day Year Month Day Year GPA. This file represents student data consisting of first name, middle name, last name, registration month, registration day, registration year, birth month, birth day, birth year, current gpa. ...or you may download the data file inPut.txt. inPut.txt reads:​​​​​​​ Tsia Brian Smith 9 1 2013 2 27 1994 4.0 Harper Willis Smith 9 2 2013 9...

  • Write a program that uses a structure to store the following data about a customer account: Name Address City, sta...

    Write a program that uses a structure to store the following data about a customer account: Name Address City, state, and ZIP Telephone number Account Balance Date of last payment The program should use an vector of at least 20 structures. It should let the user enter data into the vector, change the contents of any element, and display all the data stored in the array. The program should have a menu-driven user interface. Input Validation: When the data for...

  • 1.C++ Write a program that uses a structure named MovieData to store the following information about...

    1.C++ Write a program that uses a structure named MovieData to store the following information about a movie: title, director, year released, and running time (in minutes). Include a constructor that allows all four of these member data values to be specified at the time a MovieData variable is created. Your program should do the followings: A. creates two MovieData variables (namely, movie1 and movie2) B. creates two pointers to the structure MovieData (namely, movie1Ptr and movie2Ptr) and initializes them...

  • ( Object array + input) Write a Java program to meet the following requirements: 1. Define...

    ( Object array + input) Write a Java program to meet the following requirements: 1. Define a class called Student which contains: 1.1 data fields: a. An integer data field contains student id b. Two String data fields named firstname and lastname c. A String data field contains student’s email address 1.2 methods: a. A no-arg constructor that will create a default student object. b. A constructor that creates a student with the specified student id, firstname, lastname and email_address...

  • C++Write a program that uses a class name MovieData to store the following information about a...

    C++Write a program that uses a class name MovieData to store the following information about a movie: create a class not a strcuture please. Title Director Year release Running time Inclue a constructor that allows all four of these memberdata values to be sprcified at the time a MovieData variable is created The program should create two MovieData variable. Do not use user input. Have a stand alone function that displays the information about the movie in a clearly formatted...

  • Write a Java program which will store, manipulate, and print student registration information. As part of...

    Write a Java program which will store, manipulate, and print student registration information. As part of the solution, identify the following classes: Student Admissions. The class Student must have the following fields – Name, Address, Id number, Courses, and Date, where: Name is a user defined class comprising of at minimum first name and last name. Address is a user defined class comprising of fields - street, city, state, and zip code. Date is a predefined class in the java.util...

  • O Fit to page ID Page vi Programming assignment 6 Assume that the following student information...

    O Fit to page ID Page vi Programming assignment 6 Assume that the following student information is stored in a MATLAB structure student student name contains the full name of the student student..pa contains the GPA of the student student.standing contains whether the student is in good academic standing (true/fake) Write a function update(student, field, value) that does the following: Thes as an input a student structure, a student field name, and a value Epla 2. Returns a student structure...

  • Write a C program that does/has the following: 1) Create a structure named “employee” that contains...

    Write a C program that does/has the following: 1) Create a structure named “employee” that contains the following fields: name (string), id (int), salary (float) and a pointer to the next list item. 2) Create a structure that extends the “employee” structure named “manager” that will contain an additional field for an array of pointers that will point to the employees that they manage, each manager will manage 3 employees. 3) Read the text file provided with this assignment to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT