#include #include #include "User.cpp" #include "UserBO.cpp" using namespace std; int main() { //Fill your code here return 0; }

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

QUESTION IN ATTACHMENT KINDLY SEE.

 

---AND PLEASE ONLY USE BELOW TEMPLATES WHILE MAKING SOLUTION---

user.cpp

#ifndef HEADER
#define HEADER
#include <iostream>
using namespace std;
class User
{
//Fill your code here

};
#endif

 

main.cpp

#include<iostream>
#include <cstring>
#include "User.cpp"
#include "UserBO.cpp"
using namespace std;
int main()
{

//Fill your code here
return 0;
}

 

WeakPasswordException.cpp

#include <iostream>
#include <exception>
using namespace std;
class WeakPasswordException: public exception
{
//Fill your code here

};

 

UserBO.cpp

#include "WeakPasswordException.cpp"
#include "User.cpp"
class UserBO
{
//Fill your code here

};

Write a program to read the GPA of students from users and display the details using dynamic memory
allocation.
Strictly adhere to the Object-Oriented specifications given in the problem statement. All class
names, member variable names, and function names should be the same as specified in the problem
statement.
Include the following member function in the Main class
Member Function
void display(float arr[], int size)
Description
This method is used to display the student's GPA details.
In the main method, obtain input from the user in the console and call the display method to display the
GPA details.
Note:
Use a new keyword to create a dynamic array to store the GPA details.
Input Format:
Input consists of roll number and name.
Output Format:
The output displays the roll number and name
Refer sample input and output for formatting specifications.
[All text in bold corresponds to input and rest corresponds to output]
Sample Input and Output 1:
Enter total number of students:
2
Enter GPA of students
7.8
6.7
Students GPA Details
Student1:7.8
Student2:6.7
Transcribed Image Text:Write a program to read the GPA of students from users and display the details using dynamic memory allocation. Strictly adhere to the Object-Oriented specifications given in the problem statement. All class names, member variable names, and function names should be the same as specified in the problem statement. Include the following member function in the Main class Member Function void display(float arr[], int size) Description This method is used to display the student's GPA details. In the main method, obtain input from the user in the console and call the display method to display the GPA details. Note: Use a new keyword to create a dynamic array to store the GPA details. Input Format: Input consists of roll number and name. Output Format: The output displays the roll number and name Refer sample input and output for formatting specifications. [All text in bold corresponds to input and rest corresponds to output] Sample Input and Output 1: Enter total number of students: 2 Enter GPA of students 7.8 6.7 Students GPA Details Student1:7.8 Student2:6.7
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education