Computer Science, asked by dushyantchaudhary988, 6 months ago

A class Marks has been defined to find the highest and lowest marks of a student in

seven subjects. Some of the members of the class are given below.

Class name: Marks

Data members/instance variables:

arr[] : integer array to store the marks.

high : integer to store highest marks

low : integer to store the lowest marks

Members functions/methods:

Marks() : default constructor.

void readMarks() : to accept the marks.

void extremes(int) : to find the highest and lowest marks using recursive technique

void displayMarks() : to display the marks, total, average and, highest and lowest

marks.

(a) Specify the class Marks, giving details of the Constructor and member functions

void readMarks( ), void extremes(int), void displayMarks( ) and the main( )

function to create an object and call the member functions accordingly to enable the

task. [8]

(b) Why recursive functions result into slower execution of the program?​


rekhaprajapat3085: hi
rekhaprajapat3085: who are you

Answers

Answered by rekhaprajapat3085
0

Answer:

Question 1

Which of the following is the correct usage?

int a[-40]

int a[40] ✓

float a[0 - 40]

None

Question 2

Which element is represented by a[10]?

10th

9th

11th ✓

None

Question 3

Cell numbers of a dimensional array are also known as:

packets

blocks

subscripts ✓

compartments

Question 4

A dimensional array is also known as:

subscripted variable ✓

actual variable

compound variable

none

Question 5

An array element can be accessed through:


dushyantchaudhary988: kya h ye google se copy mara h
rekhaprajapat3085: ku
Similar questions