Preview

Program Boolean Test

Good Essays
Open Document
Open Document
411 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Program Boolean Test
option explicit dim A, B, C, result1, result2, result3, result4, result5, result6, result7, result8, count, count1, bolA, bolB, bolC, X, WshShell

'count1=1

'Do msgbox "Solve for x in Ax^2 + Bx + C = 0" 'loop if value is null??

Do A=inputbox("Enter Variable A","Equation","Variable A") bolA = Isnumeric(A) If (BolA = false) then msgbox "Variable A is invalid" end if loop until bolA = true Do B=inputbox("Enter Variable B","Equation","Variable B") bolB=Isnumeric(B) If (bolB=false) then msgbox "Variable B is invalid" end if loop until bolB = true Do C=inputbox("Enter Variable C","Equation","Variable C") bolC=Isnumeric(C) If (bolC=false) then msgbox "Variable C is invalid" end if loop until bolC = true

result1=(B*B)-(4*A*C) if (A+B+C=0) then msgbox "You're a fool and this program hates you!!!" elseif (B+C=0) then msgbox "Congratulations, you have succeeded in pretty much dividing by zero and created an infinite number." +chr(13) +chr(13) + "Reality has just imploded on itself & the universe says fuck you muchly." elseif (A+C=0) then msgbox "Congratulations, you have succeeded in pretty much dividing by zero and created an infinite number." +chr(13) +chr(13) + "Reality has just imploded on itself & the universe says fuck you muchly." elseif (C=0) then msgbox "You just mind fucked me." +chr(13) +chr(13) +" x = 0" elseif (A+B=0) then result7=C msgbox "You IDIOT, x obviously = " +Cstr(C) elseif (A=0) then result6= C/B msgbox "This is a linear equation"+chr(13) +chr(13) +Cstr(B)+"x + ("+Cstr(C)+") = y" +chr(13) +chr(13)+"When y = 0, variable x = " +Cstr(result6) elseif (result1=0) then result4=(-B)/(2*A) msgbox "The equation you have entered is:" +chr(13)+chr(13)

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1330 Unit 2 Assignment 1

    • 3740 Words
    • 15 Pages

    1. A while loop will not execute the body of the code if you have your test condition incorrect.…

    • 3740 Words
    • 15 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Mat/206 week4

    • 302 Words
    • 2 Pages

    This is the opposite of number written in scientific notation. If you have 5.3*10^7 it would be converted to 53,000,000…

    • 302 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    This is our first individual assignment for Programming unit this semester. This assignment was given in December 2013, and submission date is on 10th February 2014.…

    • 1859 Words
    • 8 Pages
    Good Essays
  • Good Essays

    Pow #1- a Digital Proof

    • 678 Words
    • 3 Pages

    Up until now, things had been fairly straightforward. Then, once I hit the ‘two’ box, things began to get more complicated. Here, I couldn’t put four or three because two of the boxes had already been filled, and I couldn’t change that. Then, I tried two. This could work, but only if there was a two elsewhere. I couldn’t put a two in the ‘one’ box, but I could put it in the zero box, because of the ‘four’ and ‘three’ boxes. Good thing I didn’t change those. That left me with the ‘one’ box. There was really only one option for that box, and that was putting a one in it.…

    • 678 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    As the user is deciding which they would like to select an international currency type. When the user enters a number between 5 and 26 corresponding with a currency type, then the program is set to false. If 26 is selected the program displays “Quitting Currency Conversion.” But if the user does not enter a number between 5 and 26 the program displays “Error 4: Invalid Menu Selection” and the set it true.…

    • 1052 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    12. The STO→ button stores numbers to variables. To evaluate the expression23 4 a c b + −, press 9 STO→ ALPHA MATH ENTER to store the number 9 to A. Repeat this same process if B = 2 and C = 1, then evaluate the expression by…

    • 641 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    COMP230 Week 4

    • 458 Words
    • 4 Pages

    WScript.Echo "The IP Address in Room " & room & " for computer " & computer & " is " & ipAddress(room-100,computer-1)…

    • 458 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Assignment: Visit the website at www.roubaixinteractive.com/PlayGround/Binary_Conversion/Binary_to_Text.asp, and translate the following binary code into text (be sure to include all punctuation):…

    • 470 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    IT 282 sylabus

    • 2660 Words
    • 11 Pages

    University policies are subject to change. Be sure to read the policies at the beginning of each class. Policies may be slightly different depending on the modality in which you attend class. If you have recently changed modalities, read the policies governing your current class modality.…

    • 2660 Words
    • 11 Pages
    Satisfactory Essays
  • Good Essays

    “He said he wanted to go on with the experience. But I’m damned, I’m damned if I’ll go on being experimented with. Not for all the Controllers in the world. I shall go away tomorrow too.” (243)…

    • 405 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Nothing

    • 1097 Words
    • 5 Pages

    HW-4 (Base conversion ) Date:__________, Name___________________________________ Please do not use any calculator in doing your homework. You need Scantron 882E. Please use a pencil to mark the answers. Make sure your Scantron is clean , flat, and not folded when you submit. MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Solve the problem. 1) Write (in the same base) the counting numbers just before and just after 3246 seven. A) 3245seven, 3247 seven C) 3254seven, 3250 seven 2) List the first 10 counting numbers in base 2. A) 0, 1, 10, 11, 100, 101, 110, 111, 1000, 1001 B) 0, 1, 2, 10, 11, 100, 101, 110, 111, 1000 C) 1, 10, 11, 100, 110, 1000, 1001, 1010, 1100, 10000 D) 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010 3) Write (in the same base) the counting numbers just before and just after 13 eight. A) 10eight, 12 eight B) Aeight, Ceight C) 12eight, 15 eight D) 12eight, 14 eight 4) Determine the number of distinct symbols needed in base 7. A) 7 B) 9 C) 8 5) List the first 10 counting numbers in base 16. A) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 C) 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B B) 3245seven, 3250 seven D) 165 seven, 166seven 2)…

    • 1097 Words
    • 5 Pages
    Good Essays
  • Good Essays

    The way a story is told is completely different depending on the narrator because of their point of view. An example of this incident is in the passage from Nathaniel Hawthorne¡¯s The House of the Seven Gables. The sarcastic way that the character Judge Pyncheon is revealed through the narrator is distinguished through the narrator¡¯s (not the author¡¯s) style of writing including tone, selection of detail, and syntax.…

    • 503 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Macro Examples

    • 1120 Words
    • 5 Pages

    7. The If…Then…Else…End If code allows code to be conditionally executed depending on whether a specified logical condition has been met.…

    • 1120 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Japanese Script Titanic

    • 995 Words
    • 11 Pages

    b P { ) , u > v , ( r l r "" 9S…

    • 995 Words
    • 11 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Visual Basic

    • 2145 Words
    • 9 Pages

    |3 |Write a program in VB to find out the Area of Circle. |13/08/12 | |…

    • 2145 Words
    • 9 Pages
    Satisfactory Essays

Related Topics