In C++ Create a program that does the following: A menu with Registration of Student with his subject and four grades and Calculate the average per student. Its fine if you dont include "idStudent" or "identification", and its not necessary to use 4 grades, at a minimum it can be 2. Please and thank you, I would like to see how experts aproach this code and it will help me alot to learn about menus. UML Diagram Student idAStudent name idSubject Student::Student() Student::Student(int,string,int) getIdStudent():int getname():string getIdSubject():void setIdStudent(int):int setname(string):void setIdSubject(int):int Grade idGrade Name Grade1 Grade2 Grade3 Grade4 Grade::Grade() Grade::Grade(int,string,int,int,int,int) getIdGrade():int getname():string setidGrade(int):void setname(string):void getgrade1():int getgrade2():int getgrade3():int getgrade4():int setgrade1(int):void getgrade2(int):void getgrade3(int):void getgrade4(int):void Average(grade1,grade2,grade3,grade4):int sample():void Example idStudent name identification Subject name grade 1 grade 2 grade 3 grade 4 101 gaby 1 Math 100 90 90 40 102 Pepe 1 Math 100 90 100 80 103 Jose 2 History 50 100 100 90 104 Omar 2 History 90 90 90 90
Addition of Two Numbers
Adding two numbers in programming is essentially the same as adding two numbers in general arithmetic. A significant difference is that in programming, you need to pay attention to the data type of the variable that will hold the sum of two numbers.
C++
C++ is a general-purpose hybrid language, which supports both OOPs and procedural language designed and developed by Bjarne Stroustrup. It began in 1979 as “C with Classes” at Bell Labs and first appeared in the year 1985 as C++. It is the superset of C programming language, because it uses most of the C code syntax. Due to its hybrid functionality, it used to develop embedded systems, operating systems, web browser, GUI and video games.
In C++
Create a program that does the following:
A menu with
Registration of Student with his subject and four grades and Calculate the average per student.
Its fine if you dont include "idStudent" or "identification", and its not necessary to use 4 grades, at a minimum it can be 2.
Please and thank you, I would like to see how experts aproach this code and it will help me alot to learn about menus.
UML Diagram
Student |
|||||||||||||||||||||||
idAStudent |
|||||||||||||||||||||||
name |
|||||||||||||||||||||||
idSubject |
|||||||||||||||||||||||
Student::Student() |
|||||||||||||||||||||||
Student::Student(int,string,int) |
|||||||||||||||||||||||
getIdStudent():int |
|||||||||||||||||||||||
getname():string |
|||||||||||||||||||||||
getIdSubject():void |
|||||||||||||||||||||||
setIdStudent(int):int |
|||||||||||||||||||||||
setname(string):void |
|||||||||||||||||||||||
setIdSubject(int):int |
|||||||||||||||||||||||
|
Example
idStudent |
name |
identification |
Subject name |
grade 1 |
grade 2 |
grade 3 |
grade 4 |
101 |
gaby |
1 |
Math |
100 |
90 |
90 |
40 |
102 |
Pepe |
1 |
Math |
100 |
90 |
100 |
80 |
103 |
Jose |
2 |
History |
50 |
100 |
100 |
90 |
104 |
Omar |
2 |
History |
90 |
90 |
90 |
90 |
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)