I am looking to execute the following script below. The issue I am encountering is it will not execute anything after the do loop. It doesn't matter what I happen to have after the loop, it never executes, so I am def missing something somewhere.…
I have a Sub that does some light formatting, and then I need it to evaluate and count whether a column contains a "1" or nothing, and if that column has a header that isNumeric or not.
First iteration of the Do...Until loops functions exactly as…
I'm new with VBA loops. What I'm trying to do is a do loop and input box procedure that asks for a product code until a valid one is input. The code should start with the letter P, and should be followed by four digits. For an invalid code input, it…
I use a custom made import function (skeleton below) to gather data from "Linked" text files (containing header/records/footer). The first field of the header will always contains 123, but I need to skip those records where the second field in the…
I know this is simple but I can't seem to figure it out.
I have a dataset that has 50 students, and one of the columns is called test score which has a test score for each of the students. I need to go through and find the difference between all of…
I've been trying to fix this loop, but apparently it doesn't recognize when the input is right. Am I using the right kind of loop here?
var userChoice = prompt("Do you choose rock, paper or scissors?")
if (userChoice !== "rock", "paper",…
I’m running a code that throws an exception,I want run the exception code continuously whenever the exception is thrown it has go to starting and should start the program from starting.
Here is my exception method and main
I have yearly data that ends at 2013, but I'd like to use that year and copy it for 2014, 2015, and ultimately 2016 (whatever the current year of data we have). Using the test data below:
DATA TEST;
INPUT YEAR Q1 Q2 Q3 Q4;
DATALINES;
2012…
Consider that you have a square matrix M(N,N) and you want to sum all pairs such that:
M(i,j)*M(i+1,j)+M(i,j)*M(i,j+1)
to do this, the easiest way is to compute:
INTEGER i,j,N, SUMT
INTEGER M(100,100), c(101)
N=100
SUMT = 0
do j=1,N
c(j) =…
I have created an if statement while it's true to keep on asking question until you get it right. However that is not an option in my case. I have implemented a counter with the max tries, if the loop runs 3 times and you still got it wrong then…
I am trying to calculate the dosage of a particular drug for a population to see if any member in this population is over a certain threshold for any 90 consecutive days. So to do this I am thinking that I am going to need to make a arraty that…
I've been trying to make a loop that repeats itself until an does not element exists on the page. However, when the condition is met, the loop does not exit. Any suggestions?
Dim userExt
userExt = 1
Do until Not…
I want to create an array which stores the names of variables. Then index into the array and pass to a function. So far I have the following:
%let variables = cat dog lion sheep;
data _null_;
array a_vars[*] &variables;
do i = 1 to…
I created a program in C# (Console Application), which prompts the user to enter the answer to "2+2=?", if its right a message pops up "Well done", if not then "Please try again". What I am trying to do is make the program tell the user how many…
I have the game of pig in java running, however, it seems that player one score keeps going past 100 even though i have multiple things in place to make sure it doesn't happen. player 2 won't go over 100, but player 1 will. What am i doing wrong…