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
};
====================================================================================
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...
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 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 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...
In C++ write a program; Your goal is to create a structure to store information about a movie. Your program should have the following: -The name of the program should be Assignment8. -3 comment lines (description of the program, author, and date) -Write a program that uses a structure named MovieData to store the following information about a movie: (3 points) Title, Director, Year released, Running time (in minutes) The program should create 2 MovieData variables, store values in their...
Program in C Student Data using Structs In this assignment you will create a program (using multiple .c files) to solve the following problem: You have been hired by the university to create a program that will read in input from a .txt file. This input will contain a student name, student id #, their age and their current gpa. You should use the following struct for your student data: struct Student{ char name[50]; int id; float...
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...
For C++ Create a student structure that has fields for first name, last name, hometown, state, year in college and major. Keep the number of students to a reasonabe level. Place each structure into an array sorted by last name and within last name, by first name. Read the student information from a file and print the sorted array to the screen and then to an output file. I was using the code below to guide me but it keeps...
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...
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...
( 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...