0

Can anyone help me? Do this below output

Create a Student Registration program using c++. Directions: Make a class named studentInfo with data member to accepts user inputs such as Firstname,Lastname, Middlelnitial, Birthdate,Address, Course. Create another class named deptinfo with data member that accepts user inputs such as Department Name, Department Dean, Total Subjects. Create another class named student which inherits both the above classes. Now create a data member calling the function/data member inside the classes above and create another data member that print the summarized data of student. EXPECTED OUTPUT: ******STUDENT'S INFORMATION****** ---BASIC INFORMATION--- Firstname: Carlo Lastname: De Silva Middle Initial: P Birthdate: July 13, 1999 Address: Malinao Ilaya Course: BSIT ---DEPARTMENT INFORMATION--- Department Name: Department of Information Technology Department Dean: Kyle Larson Total Subjects: 8 *****************************

7th May 2022, 8:45 AM
Paulo Solpico
16 odpowiedzi
+ 4
We are not doing your homework for you. I told you how to start, read my reply carefully.
7th May 2022, 10:24 AM
Lisa
Lisa - avatar
+ 2
The question appears to be how to start. Here is some starter code: #include <iostream> using namespace std; int main() { return 0; }
7th May 2022, 11:28 AM
Brian
Brian - avatar
+ 2
I suggest to continue the sololearn C++ course – classes will be explained in the course https://www.sololearn.com/Course/CPlusPlus/?ref=app
8th May 2022, 7:04 AM
Lisa
Lisa - avatar
+ 2
There are too many inputs to test your code (on sololearn) But as far as I can see, there's no "studentInfo" class. And the properties names don't match the ones in the task description? Why don't you start with the classes without inputs?
8th May 2022, 7:51 AM
Lisa
Lisa - avatar
+ 1
What have you tried so far? Please link your code attempt? Start by creating the class with the properties
7th May 2022, 9:10 AM
Lisa
Lisa - avatar
+ 1
#include <iostream> using namespace std; int main (){ string firstname, lastname, mi, month, address,course,da,dean; int day, year,subj; cout<<"*****STUDENT'S INFORMATION*****"<<endl<<endl; cout<<"---BASIC INFORMATION---"<<endl<<endl; cout<<"First Name: "; getline (cin, firstname); cout<<"Last Name: "; getline (cin, lastname); cout<<"Middle Initial: "; cin>>mi; cout<<"Birthdate: "; cin>> month >> day >> year; cin.ignore(); cout<<"Address: "<<endl; getline (cin, address); cout<<"Course: "; cin>>course; cout<<endl; cout<<"---DEPARTMENT INFORMATION---"<<endl; cout<<"Department Name: "; getline (cin,da); cout<<"Department Dean: "; getline(cin, dean); cout<<"Total Subjects: "; cin>> subj; cout<<"***************************"; system("cls"); system("pauce"); cout<<"*****STUDENT'S INFORMATION*****"<<endl<<endl; cout<<"---BASIC INFORMATION---"<<endl<<endl; cout<<"First Name: "<<firstname<<endl; cout<<"Last Name: "<<lastname<<endl; cout
8th May 2022, 1:40 AM
Paulo Solpico
8th May 2022, 7:08 AM
Paulo Solpico
+ 1
Can you do it like this?
8th May 2022, 7:08 AM
Paulo Solpico
+ 1
Ok
8th May 2022, 7:58 AM
Paulo Solpico
+ 1
Paulo Solpico, can you help me do my homework in Python?
8th May 2022, 8:26 PM
Alex Ung
Alex Ung - avatar
0
This but there's a problem
8th May 2022, 1:41 AM
Paulo Solpico
0
Please LINK your complete code. Go to Code section, click +, select the programming language, insert your code and save. Come back to this thread, click +, Insert Code, sort for My Code Bits, select your code.
8th May 2022, 6:47 AM
Lisa
Lisa - avatar
8th May 2022, 6:56 AM
Paulo Solpico
0
Like this?
8th May 2022, 6:57 AM
Paulo Solpico
0
Yes, like this – that way it is easier to read and others can test your code. For testing purposes, it would be easier to give fixed values instead of input – then we don't have to type it every time we test it. Start with the student class and write the required properties – later we will assign the input values to these properties.
8th May 2022, 7:03 AM
Lisa
Lisa - avatar
0
But what you think on my code isn't right to the question?
8th May 2022, 7:06 AM
Paulo Solpico