subject

Q2: Write a c++ program that implements the following UML diagram including functions and constructors' definitions. In addition to the user program code that declares object for each class and show how the derived class object uses the
base class members. (9 marks)
QOPCourse
Student_ID: int
Grades[5]; int
#setgrades(int arrll, int ): void
+ seti(int); int
+ setage(int): double
+ print():void
+ agerint
+ DOPstudent)
GOPCO
DOPLA
Reports (41= Int
+ setmarkstint ar [1.int): vold
+ print():void
ā€¢ DOPLab
Good luckā€‹

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesnā€™t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
question
Computers and Technology, 22.06.2019 14:10
Dean wants a quick way to look up staff members by their staff id. in cell q3, nest the existing vlookup function in an iferror function. if the vlookup function returns an error result, the text ā€œinvalid staff idā€ should be displayed by the formula. (hint: you can test that this formula is working by changing the value in cell q2 to 0, but remember to set the value of cell q2 back to 1036 when the testing is complete.)
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
Write a program that displays the following menu: geometry calculator 1. calculate the area of a circle 2. calculate the area of a rectangle 3. calculate the area of a triangle 4. quit enter your choice (1-4): if the user enters 1, the program should ask for the radius of the circle and then display its area. use the following formula: area = ďā‚¬(the square of r) use 3.14159 for ďā‚¬ and the radius of the circle for r. if the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangleĆ¢ā‚¬ā„¢s area. use the following formula: area = length * width if the user enters 3, the program should ask for the length of the triangleĆ¢ā‚¬ā„¢s base and its height, and then display its area. use the following formula: area = base * height * .5 if the user enters 4, the program should end. input validation: display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. do not accept negative values for the circleĆ¢ā‚¬ā„¢s radius, the rectangleĆ¢ā‚¬ā„¢s length or width, or the triangleĆ¢ā‚¬ā„¢s base or height. note: if the user enters an improper menu choice (1-4), the program prints "the valid choices are 1 through 4. run the program again and select one of those." if the user enters a negative radius, the program prints "the radius can not be less than zero." if the user enters a negative value for height or base, the program prints "only enter positive values for base and height."
Answers: 1
You know the right answer?
Q2: Write a c++ program that implements the following UML diagram including functions and constructo...
Questions
question
Mathematics, 10.01.2021 17:50
question
Physics, 10.01.2021 18:00
question
Computers and Technology, 10.01.2021 18:00
question
Social Studies, 10.01.2021 18:00
question
Mathematics, 10.01.2021 18:00
question
Mathematics, 10.01.2021 18:00