Develop a C++ program to connect to a MS Access database (“Student.accdb” – attached to this assignment) and use SQL commands to manipulate its records. You may use MS Access, SQLite or another DB engine and drivers.  Scope The user will be given a menu to choose from the following options:   Press (S) to select and display all students records Press (D) to delete a student by ID# Press (U) to update a student’s graduation year Press (I) to insert a new student Press (Q) to quit   For user option# 1, first display the header and then display every record on a separate line. See example below Student ID First Name Last Name Major Graduation Year 1 Joe Doe Computer Science 2018 2 Emma Smith Electrical Engineering 2019 3 Juan Perez Marketing 2019 For user option#2, confirm back to the user whether the deletion was successful or the ID provided was not found in the students records. For user option#3, prompt the user to enter a student ID, validate if the student ID exists in the database. If it does not exist, then display a message to user that the student ID does not exist. If it exists, then prompt the user to enter the new graduation year. The new graduation year should be no later than 4 years from the current year. For example, if the user enters “2035”, you should display a message to the user saying invalid graduation year. Then prompt again to enter a valid year. For user option# 4, prompt the user to enter the first name, last name, major, and graduation year. Note that the student ID will automatically be generated. DO NOT PROMPT FOR STUDENT ID. Graduation year rules are the same as described in user option# 3 above. After every operation completion, you need to re-display the menu until the user selects option# 5 to quit the program.

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter3: Designing A Page Layout: Creating A Website For A Chocolatier
Section3.2: Visual Overview: Page Layout Grids
Problem 6QC
icon
Related questions
Question

Develop a C++ program to connect to a MS Access database (“Student.accdb” – attached to this assignment) and use SQL commands to manipulate its records. You may use MS Access, SQLite or another DB engine and drivers. 

Scope

The user will be given a menu to choose from the following options:

 

  1. Press (S) to select and display all students records
  2. Press (D) to delete a student by ID#
  3. Press (U) to update a student’s graduation year
  4. Press (I) to insert a new student
  5. Press (Q) to quit

 

For user option# 1, first display the header and then display every record on a separate line. See example below

Student ID First Name Last Name Major Graduation Year
1 Joe Doe Computer Science 2018
2 Emma Smith Electrical Engineering 2019
3 Juan Perez Marketing 2019

For user option#2, confirm back to the user whether the deletion was successful or the ID provided was not found in the students records.

For user option#3, prompt the user to enter a student ID, validate if the student ID exists in the database. If it does not exist, then display a message to user that the student ID does not exist. If it exists, then prompt the user to enter the new graduation year. The new graduation year should be no later than 4 years from the current year. For example, if the user enters “2035”, you should display a message to the user saying invalid graduation year. Then prompt again to enter a valid year.

For user option# 4, prompt the user to enter the first name, last name, major, and graduation year. Note that the student ID will automatically be generated. DO NOT PROMPT FOR STUDENT ID. Graduation year rules are the same as described in user option# 3 above.

After every operation completion, you need to re-display the menu until the user selects option# 5 to quit the program.

ID
FirstName *
1 Joe
2 Emma
3 Juan
4 Tom
5 Ella
6 Oliver
7 Lea
LastName
Doe
Smith
Perez
Lee
Fenda
Torres
Martinez
Major
Computer Science
Electrical Engineering
Marketing
Accounting
Finance
Business
Communication
Graduation - Click to Add
2018
2019
2019
2020
2019
2018
2020
Transcribed Image Text:ID FirstName * 1 Joe 2 Emma 3 Juan 4 Tom 5 Ella 6 Oliver 7 Lea LastName Doe Smith Perez Lee Fenda Torres Martinez Major Computer Science Electrical Engineering Marketing Accounting Finance Business Communication Graduation - Click to Add 2018 2019 2019 2020 2019 2018 2020
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Intermediate SQL concepts
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning