Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This Project is in C++ language. Thank you! CECS 282-05 (M/W)- Spring 2018 C++ for Java Programmers Program 3- Structs and Pointers Due: March 13,

image text in transcribed
This Project is in C++ language. Thank you!
CECS 282-05 (M/W)- Spring 2018 C++ for Java Programmers Program 3- Structs and Pointers Due: March 13, 2018 Create student structure with the following fields: Name (cstring or null-terminated character array Student ID (int-unique random value between 1000 and 9999) e grade (char-Values A thru F) birthday (myDate - random value: range 1/1/1998 to 12/31/2001) Home Town (string) Create an array of pointers to students of size 10. Write a function that populates the array with 10 students. Write a display function that displays the contents of the array on the screen as below -nicely formatted and left justified. shown The displayed list should be nicely formatted with column names like this: All columns should be left-justified. Name Tom Thumb Fred Flintstone Sponge Bob Student IDGrade 1002 1995 2987 Birthday January 1, 1999 February 3, 1996 June 3, 1997 Home Town Small Ville Bedrock Bikini Bottom Create a menu that shows the following options: Display list sorted by Student ID Display list sorted by Home Town 1) Display list sorted by Name 2) 3) Display list sorted by Grade 4) Display list sorted by Birthday 5) 6) Exit You need to write a sorting function for each of the menu items -5 options needs 5 functions. Note: Take advantage of your myDate class that you just wrote. Also, it might be helpful to create a new function that returns a string for the date format: string myDate:toString(): To help with formatting, you may want to use the library siomanipo which includes the setw0 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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions