-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPromptingManager.cpp
73 lines (55 loc) · 1.88 KB
/
PromptingManager.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include "PromptingUser.h"
void PromptingUser::UserForStudentId() {
std::cout << "Enter Student ID: ";
}
void PromptingUser::UserForStudentFirstName() {
std::cout << "Enter your first name: ";
}
void PromptingUser::UserForNewStudentFirstName() {
std::cout << "Enter new first name: ";
}
void PromptingUser::UserForStudentLastName() {
std::cout << "Enter your last name: ";
}
void PromptingUser::UserForNewStudentLastName() {
std::cout << "Enter new last name: ";
}
void PromptingUser::UserForInvalidInput() {
std::cout << "Invalid input. Please enter a number only: ";
}
void PromptingUser::UserForEmptyList() {
std::cout << "List is empty.\n";
}
void PromptingUser::UserForExistingID() {
std::cout << "Student ID already exist.\n";
}
void PromptingUser::UserForNonExistingID() {
std::cout << "Student ID does not exist.\n";
}
void PromptingUser::UserForSuccessfulInsertion(Student& student) {
std::cout << student.first_name << " " << student.last_name << " added successfully\n";
}
void PromptingUser::UserForSuccessfulModification(Student &student) {
std::cout << "Data modified for studentID " << student.id_num << ".\n";
}
void PromptingUser::UserForSuccessfulDeletion(Student &student) {
std::cout << "Student ID " << student.id_num << " deleted successfull.\n";
}
void PromptingUser::UserForInvalidMenuSelection() {
std::cout << "Invalid selection. Please try again.\n";
}
void PromptingUser::UserToAddStudent() {
std::cout << "\nADD STUDENT: \n------------\n";
}
void PromptingUser::UserToModifyStudent() {
std::cout << "\nMODIFY STUDENT: \n---------------\n";
}
void PromptingUser::UserToDeleteStudent() {
std::cout << "\nDELETE STUDENT: \n----------------\n";
}
void PromptingUser::UserToPrintStudents() {
std::cout << "\nLIST ALL STUDENTS: \n------------------\n";
}
void PromptingUser::UserWithGoodbyeMessage() {
std::cout << "\nThank you... Goodbye!\n";
}