Programs Like Visual Logic Help
Hello, I'm a college student taking Programming Design and Logic course. The class uses VisualLogic for it's main source of logic design and later we'll use VB.NET. I am working on a problem which isn't very diffucult, but I can't seem to get a grasp on it. It reads: ****** 'Write a program that reads in a list of positive intergers from the user until the user enters the value -1 as a sentinel. At that time, the program should display the largest value in the input list.'
I have no problem figuring the problem with averaging the numbers input, but I can't seem to recall how to make the program recognize the largest number entered, esp. When using a pre-test while loop because the program just keeps going until -1 is entered. It doesn't seem that there is anything to compare it to, via an if statement. Tide Times Download. I would love it is somebody could help me. Each time a user enters a positve integer you could compare it to a temporary maximum entered value variable or store.
So that when -1 is entered the maximum number can then be called from the temporary variable. Int Max_Num = 0 While (num entered!= -1) if num entered >Max_Num store num entered in Max_Num end while Display Max_Num PS: apologies for the quick & poor psuedo code This way Max_Num is only updated when it is greater than the previous maximum number, skipping if the newly entered number is less than the current value in Max_Num. Cheers, Steve. I've not heard of Visual Logic before but what I suggest you try to do is put an if statement within the while loop (if it is possible to use an IF statement).
As well as offering self-help to visual-spatial adults. Programs Like Visual Logic Software Programs Like Visual Logic Examples. Ion control desk. Nov 08, 2012 Visual logic help. - posted in Software Development: Hello, new to the forums, just thought I could get some help here.
You need to setup a place to store a value (variable or something) that will act as store to keep the current maximum value entered. Then place an if statement within the while loop to check if the new entered value is higher than the value stored within the maximum value store. If so, replace the current maximum value with the newly entered value - if not, do nothing Then display this value after the user has entered '-1' Cheers, Steve setup a local variable to store the current max value then you can use an if statement to check against this upon every entry in the while loop Edited by StephenL, 23 April 2006 - 01:57 PM. Im in need of help using the visual logic program.
Im taking logic and design class in college and im getting so stuck. Especially when using decision structures. This is actually one of the programs we needed to create and i dont know every time i fix it i still cant get it right: 1. Ask a user to enter a student name, two exam grades and three research paper grades 2. Calculate the student's final average and determine his/her letter grade. The final average is calculated by averaging the exam average and the research paper average.
The letter grade depends on the final average as shown below: Final Average Letter Grade 90 or above A At least 80 but below 90 B At least 70 but below 80 C At least 60 but below 70 D Below 60 F Final average = (exam average + research paper average) / 2 3. Output the student name, final average and letter grade using two separate message boxes. I dont know what im doing wrong. So if anyone can help me it would be appreciated thankss. I think I know what you are trying to do if you still need help i'll try to give some info and if it helps thats great. I am new to college too and got a similar assignment that I just figured out. Im in need of help using the visual logic program.
Im taking logic and design class in college and im getting so stuck. Especially when using decision structures. This is actually one of the programs we needed to create and i dont know every time i fix it i still cant get it right: 1. Ask a user to enter a student name, two exam grades and three research paper grades 2. Calculate the student's final average and determine his/her letter grade. The final average is calculated by averaging the exam average and the research paper average. The letter grade depends on the final average as shown below: Final Average Letter Grade 90 or above A At least 80 but below 90 B At least 70 but below 80 C At least 60 but below 70 D Below 60 F Final average = (exam average + research paper average) / 2 3.
Output the student name, final average and letter grade using two separate message boxes. I dont know what im doing wrong. So if anyone can help me it would be appreciated thankss. Each time a user enters a positve integer you could compare it to a temporary maximum entered value variable or store.