Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Having trouble with this code, cant seem to get itright. Not sure what I'm doing wrong. It also had populated a@param error so not sure

Having trouble with this code, cant seem to get itright. Not sure what I'm doing wrong. It also had populated a@param error so not sure if those are correct as well. Cansomeone please help me out. Thank you. Pleasealso provide output if you are able.imageimageimageimageimageimage

This is the output and other information. Please showoutput as well if you can as well. Thank you.

imageimageimageimage

9 10 11 public class GradeCalculatorWithMethods 12 { 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 20 31 32 3 35 36 37 38 39 40 41 42 3 44 45 46 47 30 33 */ 43 /** * @param args not used */ public static void main(String[] args) //NOTE: *Write all class methods and complete the main method last* //Call method to introduce application to user { } /** giveIntro (); { //Call four methods to get averages/grades and assign the return to variables double homeworkAvg = getHomeworkAvg(); double testAvg = getTestAvg(); double midtermExamAvg = getMidtermExamGrade(); double finalAvg = getFinalExamGrade(); //Call method to calculate average passing all four averages/grades and assign it to a variable double gradeAvg = calculateGradeAverage (homeworkAvg, testAvg, midtermExamAvg, finalAvg); //Output the formatted final grade System.out.printf("Yout final grade is: %.2f%n", finalAvg); //Call the method to get the letter grade and pass the average //Note: We can nest method calls inside print (ln) statements - try it! //For ex: System.out.println (methodName (parameterVariable)); //will return a value and output it simultaneously System.out.println(getLetterGrade (gradeAvg)); * This method gives the introduction to the program. */ public static void giveIntro ()

Step by Step Solution

3.48 Rating (164 Votes )

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

Foundations of Financial Management

Authors: Stanley Block, Geoffrey Hirt, Bartley Danielsen, Doug Short, Michael Perretta

10th Canadian edition

1259261018, 1259261015, 978-1259024979

More Books

Students also viewed these Electrical Engineering questions

Question

Discuss the definition of crowdfunding and the JOBS Act?

Answered: 1 week ago

Question

What is the major advantage of a bankers' acceptance?

Answered: 1 week ago