SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 305 Weeks Ago, 1 Day Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 09 Nov 2017 My Price 8.00

* To change this license header, choose License Headers .

Hello,

 

So I need some help on the below assignment that I submitted. I was told that I didn't follow the naming convention, any help would be much appreciated.

 

 

 

/*

 * To change this license header, choose License Headers in Project Properties.

 * To change this template file, choose Tools | Templates

 * and open the template in the editor.

 */

package StudentGrade;

 

/**

 *

 * @author GodZilla

 */

public class StudentGrade {

  public static void main(String[] args) 

  {

    for(int i=0;i<5;i++)

    {

      int grade = (int)(Math.random() * 50) + 50;

      System.out.println("Student grade is "+grade+" which is "+getGrade(grade)+".");

    }

  }

   

  public static char getGrade(int integer) {

    if(integer>=90)

    {

      return 'A';

    }

    else if(integer>=80)

    {

      return 'B';

    }

    else if(integer>=70)

    {

      return 'C';

    }

    else if(integer>=60)

    {

      return 'D';

    }

    else

    {

      return 'F';

    }

  }

}

Answers

(5)
Status NEW Posted 09 Nov 2017 09:11 AM My Price 8.00

----------- He-----------llo----------- Si-----------r/M-----------ada-----------m -----------Tha-----------nk -----------you----------- fo-----------r y-----------our----------- in-----------ter-----------est----------- an-----------d b-----------uyi-----------ng -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll -----------be -----------qui-----------ckl-----------y

Not Rated(0)