Re: how to create a simple elevator simulation? Programming Software Development by trueframe To make a basic elevator simulation, first, identify the floors and the elevator's capacity. Then, use loops and conditionals in programming to mimic its movement. Include buttons for users to call the elevator and select floors. Test thoroughly for accuracy. Re: Conditionals C++ Programming Software Development by stevanity This should work I think u got ur conditionals wrong. [CODE]#include<iostream> using namespace std; int …... cin>>Fahrenheit[i]; /*if (FahrenheitLowTemp < 0.1) //Conditionals FahrenheitLowTemp = Fahrenheit[i]; else (FahrenheitLowTemp > Fahrenheit[i]);*/ if(Fahrenheit… Conditionals C++ Programming Software Development by raider650 …... cin>>Fahrenheit[i]; if (FahrenheitLowTemp < 0.1) //Conditionals FahrenheitLowTemp = Fahrenheit[i]; else (FahrenheitLowTemp > Fahrenheit[i]); FahrenheitLowTemp = Fahrenheit… Multiple conditionals at once using 'and' ... is this okay?? Programming Software Development by cascade3891 Hi all, Are multiple conditionals at once okay in Python?? So for example: [CODE]if … Perl conditionals and loop usage Programming Software Development by ghosh22 hii guys..Got one small question..really got confused with perl conditionals and loop. Would you please elaborate where to use: if..elsif while for foreach unless do in a program? Which one is best for which purpose? Many thanks in advance.. Looking for help with vBulletin template conditionals Digital Media UI / UX Design by SBlueman … in certain forums AND only to certain usergroups. What template conditionals would I use? And how should it be structured? Plus… Conditionals and Recursion Help Programming Software Development by Yutxz Hey guys, I'm trying to solve a problem I received in school. It states: [I] Write a method named checkFermat that takes four integers as parameters—a, b, c and n—and that checks to see if Fermat’s theorem (a^n + b^n = c^n) holds. If n is greater than 2 and it turns out to be true that a^n + b^n = c^n, the program should print “Holy smokes,… Re: Conditionals and Recursion Help Programming Software Development by NormR1 deleted Re: Conditionals and Recursion Help Programming Software Development by NormR1 Deleted Re: Conditionals and Recursion Help Programming Software Development by NormR1 Could you add comments to your code explaining what the code is supposed to do? For example what is this for: [CODE]} else if (a + b == c ) {[/CODE] Re: Conditionals and Recursion Help Programming Software Development by Yutxz It's suppose to test whether a + b = c and if so, print "fermer was right". But I want it so that a^n + b^n = c^n, but I think I'm suppose to use raiseToPow for that. That's where I am confused. Re: Conditionals and Recursion Help Programming Software Development by NormR1 [QUOTE]It's suppose to test whether a + b = c and if so, print "fermer was right"[/QUOTE] The code you have does what it's supposed to do. Does it work correctly or not? Re: Conditionals and Recursion Help Programming Software Development by Yutxz I don't receive any errors, but its difficult to tell with the theorem given. I can't tell whether raiseToPower changes a + b == c into a^n + b^n == c^n. I just don't understand how it correlates to checkFermat and this is why I'm unsure of my code. Re: Conditionals and Recursion Help Programming Software Development by NormR1 Before you can write a program you need to understand what the program is supposed to do. You need to research the theorem that your code is supposed to verify so you understand what your code needs to do. Then you can write the code. Re: Conditionals and Recursion Help Programming Software Development by Yutxz I did not mean it like that. I understand the theorem, I do not understand how the two methods interact in main. What I meant when I said it was difficult to tell by the theorem was that there is nothing that agrees with a + b = c or a^n + b^n = c^n when n must be greater than two. But I guess I could try removing (n > 2) from the code to test … Re: Conditionals and Recursion Help Programming Software Development by Yutxz I'm sorry, the theorem in the question is stated a bit weird. I'm trying to prove that a^n + b^n DOES NOT equal c^n Re: Conditionals and Recursion Help Programming Software Development by NormR1 I'm lost. If you understand the theorem and say that: It's suppose to test whether a + b = c To me it looks like your code is not related to the theorem. Instead of adding the values of the variables and comparing their sum to a third variable, doesn't the theorem say to sum the variables raised to a power and compare that to the third variable … Re: Multiple conditionals at once using 'and' ... is this okay?? Programming Software Development by vegaseat Yes, that is the way it's done in most languages. You should get away with this ... [code]if self.combobox.GetValue() and self.FilePathTextBox.GetValue(): [/code] Test it with something simple like this ... [code]a = "m" b = "n" if a and b: print('okay') else: print('error') print('-'*20) a = "" b = "n&… Re: Perl conditionals and loop usage Programming Software Development by mitchems RTFM. We're here to help, but not to teach you Perl. Re: Perl conditionals and loop usage Programming Software Development by DavidRogers Here's a FM: [url]http://perldoc.perl.org/perlintro.html#Conditional-and-looping-constructs[/url] Re: Looking for help with vBulletin template conditionals Digital Media UI / UX Design by diafol You tried posting to the vBulletin forum? Re: Exam in C++ Programming Software Development by Lerner Conditionals and loops will probably be important to your program, as … Exam in C++ Programming Software Development by coder101 … for the user for every question within a large nested conditionals, but I don't quite know how to go about… help me with this? I don't know how the conditionals are supposed to look to get this done. If there… is a more efficient way not involving conditionals, please let me know. Code Working, Need a Way to Optimize it! Programming Software Development by Catalyst.X … pre-defined map cells") Return End If 'Lots of conditionals for the number of items that could be in the… Draw.DrawImage(image:=hero, rect:=rect) End If 'Lots of conditionals that are dependant on how many cells are predefined (up… Conditional SSI problem Digital Media UI / UX Design by chucklet … the Apache 2.4 system all SSI directives EXCEPT the conditionals (#If, #Else, #Endif, etc.) work (in the same .shtml files… to enable SSI. So... why would all SSI directives EXCEPT conditionals work on one system? scanner - replace if.... Programming Software Development by trishtren … out the best way to provide it lots of variant conditionals for the symbols, all this does is remove the symbols… way a compiler might. So yeh...best way to add conditionals to the remove statement above would be nice :), preferably in… How do I manage PHP programming in larger projects? Programming Web Development by guyinpv … and where to start, to test all the hundreds of conditionals that the app logic has to sort through. I typically… a person might use the app among hundreds of possible conditionals? I'm just looking for some programming theory, some tools… Re: Code Working, Need a Way to Optimize it! Programming Software Development by Catalyst.X … line Temp = MapItems(i) 'reset temp End While 'Lots of conditionals for the number of items that could be in the… Re: Conditional SSI problem Digital Media UI / UX Design by LastMitch … the Apache 2.4 system all SSI directives EXCEPT the conditionals (#If, #Else, #Endif, etc.) work (in the same .shtml files… Greeting Your Members & Guests Programming Web Development by mikeSQL … $welcome_string="Welcome!"; $numeric_date=date("G"); //Start conditionals based on military time if($numeric_date>=0&&…