Go Back   Computer Forums > General Computing > Programming
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 01-22-2011, 12:50 PM   #1
Beta Member
Join Date: Jan 2011
Posts: 1
Question Visual Logic help

i am having trouble making a program for visual logic the question is 2-5 Grade Determination is says " Write a program that will input three test scores. the program should determine and display their average. the program should then display the appropriate letter grade based on there average. the letter grade should be determined using a 10 point scale (a=90-100)(b=80-89.999)(c=70-79.999),etc.

nisivio2 is offline   Reply With Quote
Old 11-10-2013, 01:40 AM   #2
Beta Member
Join Date: Nov 2013
Location: US
Posts: 1
Default Re: Visual Logic help

Can you show me how to set this program right?

elwilson is offline   Reply With Quote
Old 11-11-2013, 08:21 AM   #3
Site Team
root's Avatar
Join Date: Mar 2004
Posts: 7,872
Default Re: Visual Logic help

you need three inputs.

call them testa testb testc.

you them need a process, (I think these are called assignments in the program, I couldn't quite tell as the flash tutorial was a bit weird!)

result = testa + testb + testc

then a second process for finding the average.

average = result / 3

then you need a series of if statements.

if average >= 90 then goto an output box that displays A and then go to end
the next IF statement (whcih is only reached if the first if condition is not met shoudl say
is result > = 80 yes, (go to an output box to display B then go to end. no, go to the next condition statement.

and keep rattling down the alphabet,

until you get to a point where the person hasn't scored a minimum mark, then you just display the words fail and got to the end.
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 09:25 AM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0