
Stay safe!
section 002
fall 2012
Evacuations, flooded areas, and closing information can be found on the NJ.com web site, listed county by county. Evacuation routes are listed county by county on the New Jersey Office of Emergency Management site.
The fourth monitoring interval for the fall 15-week term ends Wednesday, October 31st. The registrar's office will be printing and mailing alert letters later in the week. Students who are irregular in attendance, stopped coming to class altogether, fail assignments, and/or neglect to submit assignments will be reported as such and notified that they are in danger of failing this course.
Please be advised that over the past several weeks, five incidents of theft have been reported in the Bankier Library. A variety of Apple products have been stolen from students who have momentarily left their items unattended.
A list of free software. No endorsements. No guarantees. No warranties.
One of the requirements for your output in this class is to include the date after your name in the output window. The question is, which date? Do you want the date you wrote the code, the due date for the project, or another date?
During Thursday's class, we covered how to request and use the user's input to terminate a loop. The loop is terminated by what is known as a sentinel value. When the user enters the sentinel value, the program terminates loop execution.
In addition to the pre-test loops, QBASIC has post-test loops. The post-test loops look very similar to their pre-test cousins.
As discussed in class Thursday, in QBASIC, you have the option of writing pre-test or post-test loops. A pre-test loop is one in which the condition to stop the repetition is checked before the body of the loop is executed, therefore, the minimum number of iterations is zero. A post-test loop is one in which the loop termination condition is tested after the first execution of the loop's body; the minimum number of iterations is one.

Brookdale Community College is one of the six colleges and universities belonging to the New Jersey Coastal Communiversity. Students may complete two years of course work to earn an associates degree and transfer their credits towards specific bachelor degrees offered through the Communiversity. The four year institutions offer the third and fourth year course requirements and the bachelor decree is conferred by the partner school.
An alarming number of students (one third of you!) are behind in their homework and lab assignment submissions. Doing your homework and turning in your labs on time is very important as the work assigned is reflective of the material covered in class.
The third monitoring interval for the fall 15-week term ends Wednesday, October 17th. The registrar's office will be printing and mailing alert letters later in the week. Students who are irregular in attendance, stopped coming to class altogether, fail assignments, and/or neglect to submit assignments will be reported as such and notified that they are in danger of failing this course.
Sometimes when you are sending output to the monitor, you want the cursor to stay on the same line. To make that happen, you still use the PRINT command but you make sure to end the line with a semicolon.
Generating random numbers is something we frequently call upon computers to do. You can simulate the result of flipping a coin, rolling dice, or selecting lottery numbers. To do so in BASIC, we use the RND function.
In most programming languages, there are multiple ways to accomplish the same task and QBASIC is no exception. Last post, I revisited the syntax of the FOR...NEXT loop and showed how you could program model of a countdown timer. Here is another way to achieve the same results.
One way to execute a repetition of statements in BASIC is to use a FOR...NEXT loop.
Write a program called loopAvg.bas. Your program must sum the numbers from 17 to 37 inclusive, count how many addition steps that is, and then provide an average (the sum divided by the number of steps.
Notice to all students:
It is customary when programming to employ leading zeros when the number in question is between -1 and +1. By using a leading zero, you make the value abundantly clear. Here are some examples...
In order to limit output to a specified number of digits, you use the PRINT USING command.
I have noticed that a number of students seem to be making the same errors on the body mass index program and the temperature conversion program. In order to make a calculation using a user's input, you must first obtain the input. The sequence of your code statement matters.
Notice to all students: