Define a class Student with the following specification: private members:
roll_no | integer |
name | 20 characters |
class | 8 characters |
marks[5] | integer |
percentage | float |
Calculate() function that calculates overall percentage of marks and returns the percentage of marks.
public members:
Readmarks() a function that reads marks and invokes the calculate functio Displaymarks() a function that prints the marks.
All Replies
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.