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: 313 Weeks Ago, 6 Days 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 10.00

javascript but I couldnt find what was wrong with it.

Here is my codes. I tried to correct my javascript but I couldnt find what was wrong with it. My pseudocode looks like an disaster

  • // Program Name: Grade Average
    // Purpose: To avegerage the grades
    // Author Name: Courtney Credle
    // Class Name and Number: Program design and developement
       CIST1305
    // Instructor Name: Todd Meadors
    // Last date modified: 24-July-2017

       Declare variables and constants
         Declare avg= 0.0, total=0.0;
         Declare grades=[]; //Use an array to store the grades
        
         Display(i=0;i<4;i++) //Use a looping structure to populate the array
        
         Display("Enter the " + (i+1) + " grade");
         grades[i]=input;
        
         Display(i=0;i<4;i++)//Display each of the 4 numeric grades from the array on the screen using a looping structure
        
         Declare(grades[i]);//getting the total
         Display("result").innerHTML=Display ("result").innerHTML+"<br/>The"+(i+1)" marks is: "+grades[i];
        

         // Declare getting and printing average
         avg=total/4.00;
         Display grade=returnGrade(avg)

         Declare("result").innerHTML=Declare("result").innerHTML+"<br/><br/><b>The average is: "+avg+" ("+grade+")<b/>";
     
    Start Function
       Display returnGrade(avg)
      
         Declare grade="";
         if(avg>90 && avg<=100)
           grade="A";
      
         else if(avg>+80 && avg <=89)
           grade+"B";
       
         else if(avg>=70 && avg <=79)
           grade="C";
     
         else if (avg>=60 && avg<=69)
           grade="D"

         else
           grade="F";
     
       return grade
    Stop Function

       // Thank the user and end the program
    Display("Thank you for using this program.");

Attachments:

Answers

(5)
Status NEW Posted 09 Nov 2017 11:11 AM My Price 10.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)