Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Define a Student class with five member variables studentId, studentName, programName, No_of_credits_eachSem and Marks_of_everySem (a minimum of three subject marks) and two methods CGPA_CAL( )

Define a Student class with five member variables studentId, studentName, programName, No_of_credits_eachSem and Marks_of_everySem (a minimum of three subject marks) and two methods CGPA_CAL( ) and Credits_Com( ). Calculate the marks and find the CGPA of a given student of every semester using the CGPA_cal( ) method with return type float. Compute the total number of credits of a given student according to the marks he/she scored such as Pass/Fail till date. If the student scored above or equal to 50 marks, the credits should be added. If it is less than 50 marks, credits should not be accounted. If the total credit score till the pre-final semester (pre_finalyear_sem) is less than 90 credits, he/she is not eligible to continue the course. If the credit score of pre_finalyear_sem is greater than or equal to 100 he/she should complete the course within 6 months. If the student scored 125 credits, he/she will be awarded the degree. In the main method, create three student objects and display the students information along with CGPA and the Credit score.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

Students also viewed these Databases questions