Problem Statement: Write a Java program using methods and arrays. Create “HW9_lastname.java” program that: 1. Prints a program title 2. Creates a table with grades for our class students and...



Problem Statement:
Write a Java program using methods and arrays.



Create “HW9_lastname.java” program that:




1. Prints a program title



2. Creates a table with grades for our class students and



initializes grades with random values



2. Finds the largest grade for every student



3. Displays the following information:




ASSIGNMENT GRADES




HW1 HW2 NW3 HW4 HW5 HW6 HW7 Student Name


_______________________________________________________



0001 0076 0078 0068 0003 0012 0048 Adams



0033 0042 0035 0020 0021 0058 0060 Aimuengheuwa



0013 0021 0037 0099 0025 0098 0060 Bennett



0068 0089 0007 0051 0083 0057 0080 Bowen



0062 0078 0083 0013 0023 0043 0098 Brown



0052 0003 0033 0091 0003 0031 0080 Brumaire



0057 0076 0089 0053 0026 0028 0022 Bubb



0089 0081 0079 0100 0092 0024 0084 Clarke



0022 0074 0009 0052 0002 0061 0026 Crawford



0097 0037 0046 0010 0058 0036 0098 Garcia



0053 0046 0013 0075 0008 0097 0011 Godfrey



0013 0025 0085 0021 0059 0086 0088 Grenade



0030 0039 0092 0026 0067 0024 0016 Jean-jacques



0046 0023 0063 0066 0095 0072 0090 Labissiere



0058 0079 0078 0033 0093 0067 0048 Lian



0043 0025 0020 0065 0054 0087 0054 Mompremier



0067 0011 0017 0085 0021 0008 0013 Obadi



0088 0018 0032 0051 0017 0033 0083 Ogbormeh



0018 0033 0076 0061 0061 0036 0037 Penalo



0092 0006 0014 0041 0052 0031 0042 Ragland



0014 0100 0039 0051 0019 0019 0084 Sancho



0011 0053 0001 0001 0020 0049 0049 Stanislaus



0057 0094 0029 0021 0040 0010 0006 Wright



The largest student's grade




78 is the largest grade of Adams



60 is the largest grade of Aimuengheuwa



99 is the largest grade of Bennett



89 is the largest grade of Bowen



98 is the largest grade of Brown



91 is the largest grade of Brumaire



89 is the largest grade of Bubb



100 is the largest grade of Clarke



74 is the largest grade of Crawford



98 is the largest grade of Garcia



97 is the largest grade of Godfrey



88 is the largest grade of Grenade



92 is the largest grade of Jean-jacques



95 is the largest grade of Labissiere



93 is the largest grade of Lian



87 is the largest grade of Mompremier



85 is the largest grade of Obadi



88 is the largest grade of Ogbormeh



76 is the largest grade of Penalo



92 is the largest grade of Ragland



100 is the largest grade of Sancho



53 is the largest grade of Stanislaus



94 is the largest grade of Wright






Help


*************************************************


Student names:


"Adams", "Aimuengheuwa", "Bennett", "Bowen", "Brown", "Brumaire", "Bubb", "Clarke", "Crawford", "Garcia", "Godfrey", "Grenade", "Jean-jacques", "Labissiere", "Lian", "Mompremier", Obadi", "Ogbormeh", "Penalo", "Ragland", "Sancho", "Stanislaus", "Wright"



**************************************************



Format of the printf method :



% [flags] [width] [.precision] conversion-character



(square brackets denote optional parameters )




Following is the list of conversion characters that you may use in the printf:



· %d – for signed decimal integer


· %f – for the floating point


· %o – octal number


· %c – for a character


· %s – a string


· %i – use for integer base 10


· %u – for unsigned decimal number


· %x – hexadecimal number


· %% – for writing % (percentage)


· %n – for new line = \n



The flags list include:


·
justify left


·
+if you require to output the + or minus in the formatted string.


·
^uppercase


·
0for zero-padded numeric values



Examples:


System.out.printf("Total is: $%,.2f%n", dblTotal);


System.out.printf("Total: %-10.2f: ", dblTotal);


System.out.printf("% 4d", intValue);


System.out.printf("%20.10s\n", stringVal);


Nov 06, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here