minicl55

Untitled

Oct 6th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. TextWindow.Title = "Letter Grades"
  2. 'TextWindow.ForegroundColor = "Blue"
  3. TextWindow.WriteLine("How many grades do you want to enter")
  4. Number_Grades=TextWindow.ReadNumber()
  5. TextWindow.WriteLine("Enter " + Number_Grades + " grades:")
  6. For i = 1 To Number_Grades
  7. grades[i] = TextWindow.ReadNumber()
  8. EndFor
  9.  
  10. For i = 1 To Number_Grades
  11. If grades[i] >= 90 And grades[i] <= 100 Then
  12. TextWindow.WriteLine("Your grade for " + grades[i] + " is: A")
  13. ElseIf grades[i] >=80 And grades[i] <=89 Then
  14. TextWindow.WriteLine("Your grade for " + grades[i] + " is: B")
  15. Else
  16. TextWindow.WriteLine("Your grade for " + grades[i] + " is: F")
  17. Endif
  18. EndFor
Advertisement
Add Comment
Please, Sign In to add comment