Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a c++ student structure. A student has a name (cstring or null-terminated character array), Student ID (int), grade (char), birthday (mydate) and Home Town

image text in transcribed

Create a c++ student structure. A student has a name (cstring or null-terminated character array), Student ID (int), grade (char), birthday (mydate) and Home Town (string) eCreate an array of 10 students Write a function that populates the array with 10 students. The student ID's will be randomly generated numbers between 1000 and 9999inclusively No two ID's can be the same. The birthdays will be random dates between January 1, 1995 and December 31, 2000 The grades will be random characters between A and F (not including) E) This will be the Original list. Create 5 arrays of pointers to students, each pointer will point to a One pointer array will be sorted so that when the pointed to contents The other arrays will be sorted so that each displays students in age, student in your array. are displayed, it shows all the students in student ID order Name, Grade, or HomeTown order . The displayed list should be nicely formatted with column names like this: All columns should be left-justified Student ID: 1002 2987 Name: Grade: Birthday: Store Thump Fred Flintstone 1995 Sore Dob January 1, 1996 February 3, 1997 Bedrock June 3, 1999 HomeTown: Small Ville Rock Bottoms Create a menu that shows the following options: 0. Display Original List 1. Display List Sorted by Name 2. Display List Sorted by Student ID 3. Display List Sorted by Grade 4. Display List Sorted by Birthday 5. Display List Sorted by HomeTown 6. Exit Note: Take advantage of your myDate class that you just wrote. Further, it might be helpful to create a new function that returns a string for the date format: o string myDate::printDate() To help with formatting,you may want to use the library which includes the setw() function. Create a c++ student structure. A student has a name (cstring or null-terminated character array), Student ID (int), grade (char), birthday (mydate) and Home Town (string) eCreate an array of 10 students Write a function that populates the array with 10 students. The student ID's will be randomly generated numbers between 1000 and 9999inclusively No two ID's can be the same. The birthdays will be random dates between January 1, 1995 and December 31, 2000 The grades will be random characters between A and F (not including) E) This will be the Original list. Create 5 arrays of pointers to students, each pointer will point to a One pointer array will be sorted so that when the pointed to contents The other arrays will be sorted so that each displays students in age, student in your array. are displayed, it shows all the students in student ID order Name, Grade, or HomeTown order . The displayed list should be nicely formatted with column names like this: All columns should be left-justified Student ID: 1002 2987 Name: Grade: Birthday: Store Thump Fred Flintstone 1995 Sore Dob January 1, 1996 February 3, 1997 Bedrock June 3, 1999 HomeTown: Small Ville Rock Bottoms Create a menu that shows the following options: 0. Display Original List 1. Display List Sorted by Name 2. Display List Sorted by Student ID 3. Display List Sorted by Grade 4. Display List Sorted by Birthday 5. Display List Sorted by HomeTown 6. Exit Note: Take advantage of your myDate class that you just wrote. Further, it might be helpful to create a new function that returns a string for the date format: o string myDate::printDate() To help with formatting,you may want to use the library which includes the setw() function

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Public Finance

Authors: Harvey S. Rosen

3rd Edition

0256083762, 978-0256083767

Students also viewed these Databases questions

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago

Question

Compute the derivative f(x)=(x-a)(x-b)

Answered: 1 week ago