for homework i got this task, however i'm kinda lost (to be made as a console application)
Exam grades
Write a program that asks the user to enter a mark in the range 0 to 100 and outputs the corresponding exam grade, as in the following table:
Mark < 40 40–49 50–59 60–69 70–79 80–100
Grade U E D C B A
at first i tried making if statements for each mark value but then It didnt work out too well, now im thinking maybe I have to use an array ? I'm not really sure how to go about this one..
so far all ive got is
" Dim mark As Integer
Console.WriteLine("Exam Grades" & vbCrLf)
Console.WriteLine("Enter your mark out of 100: ")
mark = Console.ReadLine
"
Someone please help or point me in the right direction, it would be much appreciated
Exam grades
Write a program that asks the user to enter a mark in the range 0 to 100 and outputs the corresponding exam grade, as in the following table:
Mark < 40 40–49 50–59 60–69 70–79 80–100
Grade U E D C B A
at first i tried making if statements for each mark value but then It didnt work out too well, now im thinking maybe I have to use an array ? I'm not really sure how to go about this one..
so far all ive got is
" Dim mark As Integer
Console.WriteLine("Exam Grades" & vbCrLf)
Console.WriteLine("Enter your mark out of 100: ")
mark = Console.ReadLine
"
Someone please help or point me in the right direction, it would be much appreciated
Last edited: