222k views
20 votes
I hope people have Small basic PLEASE PLEASE PLEASE HELP ME

Write a small basic program to reads the total marks and find out the grade achieved by the student. Accept 5 subject marks and display the total marks, percentage, and grade of one student. Attach screenshot of the output.
And only the output dont give me how you do it just give me the output
For an example i want my output in small basic to turn out like this : (this is from python though not small basic i want a result like this in small basic please give me...
screenshot is not mine its taken from another website. Please please help me out!

I hope people have Small basic PLEASE PLEASE PLEASE HELP ME Write a small basic program-example-1
User Fscof
by
5.9k points

1 Answer

7 votes

Answer:

NRMARKS = 5

total = 0

TextWindow.WriteLine("Enter the marks of five subjects::")

For i=1 to NRMARKS

TextWindow.WriteLine("Enter mark #"+i)

marks[i] = TextWindow.ReadNumber()

total = total + marks[i]

EndFor

average = total/NRMARKS

if average >= 90 then

grade = "A"

ElseIf average >= 80 Then

grade = "B"

ElseIf average >= 70 Then

grade = "C"

ElseIf average >= 60 Then

grade = "D"

Else

grade = "F"

EndIf

TextWindow.WriteLine("The Total marks is: "+ total + "/" + NRMARKS*100)

TextWindow.WriteLine("The Average marks is: " + average)

TextWindow.WriteLine("The Percentage is: " + average + "%")

TextWindow.WriteLine("The Grade is: "+grade)

Step-by-step explanation:

I hope people have Small basic PLEASE PLEASE PLEASE HELP ME Write a small basic program-example-1
User Goran Nastov
by
5.6k points