Write it in C++ language. Consider that a system has two entities, Student and Course. The student
Fantastic news! We've Found the answer you've been seeking!
Question:
Write it in C++ language.
Transcribed Image Text:
Consider that a system has two entities, Student and Course. The student has the following properties: student name, number, SSN and GPA. Similarly, the course has the following properties: course name, course number, credit hours and a set of students who are currently registering on the course. Implement the above system taking into account the following requirements: 1. In course, the number of students that are registering this course is decided at the time when instantiating the course object. 2. Assume that student1 and student2 are two objects of type student, write a code that enables you to write: if (studentl.isequal (student2)). Where student1, student12 are student objects. The statement is true if the objects have the same GPA and credit hours. 3. Write a getStudentpByName method in class course that takes a student name and returns a list of all students who share the same name. 4. Write a getStudentByGPA method in class course that takes a GPA and returns a list of Students in that course who have the same GPA. Consider that a system has two entities, Student and Course. The student has the following properties: student name, number, SSN and GPA. Similarly, the course has the following properties: course name, course number, credit hours and a set of students who are currently registering on the course. Implement the above system taking into account the following requirements: 1. In course, the number of students that are registering this course is decided at the time when instantiating the course object. 2. Assume that student1 and student2 are two objects of type student, write a code that enables you to write: if (studentl.isequal (student2)). Where student1, student12 are student objects. The statement is true if the objects have the same GPA and credit hours. 3. Write a getStudentpByName method in class course that takes a student name and returns a list of all students who share the same name. 4. Write a getStudentByGPA method in class course that takes a GPA and returns a list of Students in that course who have the same GPA.
Expert Answer:
Answer rating: 100% (QA)
include using namespace std class Student private string studentName int studentNumber int SSN Socia... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
8) Write a program in C language Write a program to sort data in link list. 9) Write a program in C language Write a program to swap two nodes in double link list. 10) Write a program in C language...
-
write an assembly language for the c construct given below assume that variable count is store in register R8, x is stored in register R1, y is stored in R2, and z is stored in register R3 if (x>y...
-
Write a C language program... The following code will implement three functions supported by a stack. Push ( ): It adds elements on top of the stack. It takes O (1) O (1) time as each element is...
-
On 28 April 2020, Mr Guna, CEO of Econ Engineering Malaysia, proposed to complete an abandoned boiler project that no one had dared to revive. He knew that the project was 60% complete before it was...
-
Assume the expected inflation rate to be 4 percent. If the current real rate of interest is 6 percent, what ought the nominal rate of interest to be?
-
Perry \& Price audited Bond's consolidated financial statements for the years ended December 31, 19X4 and 19X3. These financial statements are being presented on a comparative basis and an...
-
For a given x-value, the point estimate for a 95% confidence interval for the mean response is the same as the one for the 95% prediction interval. In Exercises 5 and 6, determine whether the...
-
Prepare budgetary entries, using general ledger accounts only, for each of the following unrelated situations: a. Anticipated revenues are $10 million; anticipated expenditures and encumbrances are...
-
You deposit $100 every three months for the next 50 years, first deposit made today. If the interest rate is j4 = 10%, how much do you have three months after your last deposit
-
On June 2, 2017, Betty Rice opened Betty's Art Studio in Toronto. The following transactions occurred in June: 2017 June .... 2 Betty Rice invested $12,000 in the art studio. ........... 3 Paid three...
-
What two initiatives would you recommend to a company to decrease their transportation carbon footprint? Explain your recommendations including long-term financial impact, customer satisfaction,...
-
On July 1, 20X1, James and Short formed a partnership. James contributed cash. Short, previously a sole proprietor, contributed property other than cash, including realty subject to a mortgage, which...
-
On May 1, 20X1, Cathy and Mort formed a partnership and agreed to share profits and losses in the ratio of 3:7, respectively. Cathy contributed a parcel of land that cost her $10,000. Mort...
-
When property other than cash is invested in a partnership, at what amount should the noncash property be credited to the contributing partners capital account? a. Contributing partners tax basis. b....
-
If A is the total capital of a partnership before the admission of a new partner, B is the total capital of the partnership after the new partners investment, C is the amount of the new partners...
-
When Jill retired from the partnership of Jill, Bill, and Hill, the final settlement of her interest exceeded her capital balance. Under the bonus method, the excess a. Was recorded as goodwill. b....
-
A new organization named , requires the design and implementation of an IT infrastructure that supports over 500 of its employees. The local area network (LAN) design needs to support VLANs for a...
-
Suppose that a company has 10.000 outstanding shares in the beginning of the year. On April 1st, the company increases its shares by 6.000. On July 1st, the company increases its shares again, but...
-
On multi-CPU platforms, Linux maintains a runqueue for each CPU. Is this a good idea? Explain your answer?
-
A personal computer salesman visiting a university in South-West Amsterdam remarked during his sales pitch that his company had devoted substantial effort to making their version of UNIX very fast....
-
In the Amoeba scheme for protecting capabilities, a user can ask the server to produce a new capability with fewer rights, which can then be given to a friend. What happens if the friend asks the...
-
a. What responsibility does the auditor have when he believes material errors or irregularities may exist? b. What are the possible effects of the foregoing on the auditor's standard report?
-
Watts and Williams, a firm of certified public acccountants, audited the accounts of Sampson Skins, Inc., a corporation that imports and deals in fine furs. Upon completion of the examination the...
-
a. Can an examination made in accordance with generally accepted auditing standards be relied upon to detect illegal acts? Why or why not? b. What are the possible effects of illegal acts on the...
Study smarter with the SolutionInn App