Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please code in java, and you can assign any names to the students here is the code written in class Using the program you wrote

Please code in java, and you can assign any names to the students image text in transcribed
here is the code written in class
image text in transcribed
Using the program you wrote in class make the following modifications 1. Add the students name to the data file and the report 2. Add a final row to the report. This row will have the average for each test for the class as well as the overall class average. 2 3 4 5 6 7 8 9 10 GradeReport.java . import java.util.Scanner; import java.io.*; public class GradeReport{ public static void main(String[] args) throws IOException { File fn = new File("Studentinfo.txt"); Scanner input File = new Scanner(fn); int count = 0; int sid; int gri; int gr2; int gr3; int sum; double average; char grade; 11 12 13 14 16 String fmth = "75 %75 %75 75 75 75 "; String fmt = "%70 %d %70 870 87.2f $7s " : System.out.printf(fmth, "Student","gr1","gr2","gr3","avg", "grade"); System.out.printf(fmth," -- " ): while (count 89) grade = 'A'; else if (average > 79) grade = 'B'; else if (average > 69) grade = 'C': else if (average > 59) grade = 'D': else grade = 'F'; System.out.printf(fmt, sid, gri, gr2,gr3, average, gri, gr2,gr3); count++

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2016 Riva Del Garda Italy September 19 23 2016 Proceedings Part 3 Lnai 9853

Authors: Bettina Berendt ,Bjorn Bringmann ,Elisa Fromont ,Gemma Garriga ,Pauli Miettinen ,Nikolaj Tatti ,Volker Tresp

1st Edition

3319461303, 978-3319461304

More Books

Students also viewed these Databases questions

Question

Solve. a. x 2 + 5x - 14 0 e. 2x 2 - x - 15 0 f. 5x 2 + 9x + 4 > 0

Answered: 1 week ago

Question

Explain how interpersonal skills are learned.

Answered: 1 week ago

Question

find all matrices A (a) A = 13 (b) A + A = 213

Answered: 1 week ago

Question

2. Are my sources up to date?

Answered: 1 week ago