Design and code a c++ program to process the data shown under input. Generate th
ID: 3636047 • Letter: D
Question
Design and code a c++ program to process the data shown under input. Generate the student registration report shown under output.A student with less than 12hours is defined as part time.The registration fee is determined from the following:credit hours fee
less than 12 $400.00
12 or more $400.00 plus $30.00 per credit hour in excess of 11 hours
As part of the end-of-job routine,print the total number of part-time students, full-time students, students, and fees.
INPUT
STUDENT NAME CREDIT HOURS
Joe Franks 14
Ed Crane 9
Susan Lewis 18
Fred Smith 12
Jack North 10
Nicole Heigh 17
EOF 0
OUTPUT
Student Registration
Student Credit
Name Hours Fee Status
Joe Franks 14 490.00 Full-time
Ed Crane 9 400.00 part-time
Susan Lewis 18 610.00 full-time
Fred Smith 12 430.00 full-time
Jack North 10 400.00 part-time
Nicole Heigh 17 580.00 full-time
Total Part-time======= 2
Total Full-time======== 4
Total students========= 6
Total Fees============ $2,910.00
End of Report.
Explanation / Answer
#include #include using namespace std; class Student{ private: static int serialId; const int id; string name; int currentCourses; bool canRegisterMore(); public: Student(string studentName); bool registerCourse(); void dropCourse(); void printDetails(); }; #endif /*STUDENT_H_*/ Student::Student() { string name = ""; } void setName(string studentName) { name = studentName; } string getName() { return name; }Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.