Write program that will read the marks of 3 students using


Write program that will read the marks of 3 students using the Scanner class and display the following:

(a) average marks

(b) maximum marks

Hint: x = Math.max(a,b); will cause x to be assigned the maximum of a and b y = Math.max (x, c); will cause y to be assigned the maximum of a, b and c

Find other such methods in Math class using Java docs (ask lab-assistant)

(c) minimum marks Similar to part b) but you need to use a different method

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write program that will read the marks of 3 students using
Reference No:- TGS02850703

Now Priced at $10 (50% Discount)

Recommended (91%)

Rated (4.3/5)