Free Essay

Intro to Programing Logic

In: Computers and Technology

Submitted By joutland1
Words 386
Pages 2
IT106-1201A-05 Introduction to Programming Logic

Phase 3 Discussion Board

By Norman L Moffatt Jr

Date 1/25/12

In this discussion board we are given a problem that is the billing department for the bank has asked for your team’s help. They want to develop a program that will determine the monthly charges for checking accounts. The following criteria are to be used:
Balance > = 100.00 will not be charged fees
Balance < 100.00 will be charged $9.95 monthly fee The first thing I would do is look at different steps to us to get to the desired answer. After I have figured them out I would write them in order. These steps I am writing down are called an algorithm. Now I had to pick the best algorithm style to use there are three While loop, Do while loop and For loop. I picked For loop due to this is going to be done for 12 months which gives me a set amount.
The algorithm in pseudo code steps are START INITIALIZE CONTROL VARIABLE (Checking account Balance) LOGICAL PROCESS (CHECKING BALANCE GREATER > = TO 100) TRUE (DO NOTHING) FALSE (MINUS 9.95 FROM CHECKING ACCOUNT) PRINT NEW BALANCE (YOU ONLY SEE THIS FOR FALSE STATEMENTS) END The flowchart for this discussion we are still using a For flowchart. To do this I first need to identify the symbols I will us. In flowcharts there are a variety of symbols that are used with various operations. The first symbol I used is the one that means start and end.

The second symbol I would used is for decision making
The third symbol would be processing this block has only one way in and one way out

The fourth symbol is the print of you output

The last symbol we need to worry about is flow lines which are very important to how the chart will work.

This is the flowchart with all the symbols put in the order of the algorithm. I show what the symbols look like because this is important to having a flowchart that can be read by other students. The two work together to builds a picture that you now see. You will need this when you go further into programming of computers the order and naming is important.…...

Similar Documents

Free Essay

Intro to Programing Chapter 2 Review

...Short answer 1. Determine the steps that the program must perform. 2. A language that has no syntax errors and is not meant to be executed 3. Input, Process, output 4. Programs that are easy to use for the customer or user. 5. Variable’s name and variable’s data type 6. Nothing, the variable hasn’t been assigned a value Algorithm Workbench 1. Declare real height Display “How tall are you?” Input height Display “this is how tall you are: “, height 2. Declare string color Display “what is your favorite color?” Input color Display “this is your favorite color: “, color 3. 2 + a = b b x 4 = a a/3.14 = b b – 8 = a Programming exercises 1. Display “enter your name.” Input name Display “enter your address with city, state, and zip Input address Display “Enter your telephone number” Input telephone number Display “what is your college major?” Input college major Display “here is your information: “, name, address, telephone number, college major 4. Display “Enter price 1” Input price 1 Display “enter price 2” Input price 2 Display “enter price 3 Input price 3 Display “enter price 4” Input price 4 Display “enter price 5” Set subtotal = price1+price2+price3+price4+price5 Display subtotal Set tax = 6% Set total = subtotal + tax Display “your total is “, total 6. display “Enter purchase price” Input price Set state tax = 0.04 Set county tax = 0.02 Set total = price(State tax + county tax) + Price Display “Your......

Words: 275 - Pages: 2

Premium Essay

Logic

...Logical Concepts an overview What is logic? •  Logic is the science of reasoning, •  which is to say: the academic discipline that investigates reasoning. What is reasoning? •  reasoning is inferring (deducing) •  to infer is to draw conclusions (output) from a premise or set of premises (input). An Example of Reasoning You see smoke And you infer That there is fire (input) (deduce) (output) Another example of Reasoning You count 19 people in a group; which originally had 20 people in it; and you infer that someone is missing (input) (input) (deduce) (output) The Basic Idea Logic evaluates reasoning in terms of arguments. What is an argument? •  The word “argument” can mean many different things depending on the context. •  But for the purposes of logic, the term “argument” means something very specific: What is an argument? •  an argument is a collection of statements, one of which is designated as the conclusion, and the remainder of which are designated as the premises. •  Important note: premises are always intended to provide support or evidence for the conclusion, but they don't always succeed. (It’s still an argument either way.) What is a statement? •  A statement is a declarative sentence, •  i.e., a sentence that is capable of being true or false. •  For example: The door is closed. •  Other kinds of sentence are not capable of being true or false: •  Interrogative sentences are inquiries for information: Is the......

Words: 2744 - Pages: 11

Premium Essay

Logic

...Class: BBA 1 (Section B) Course title: Introduction to logic Assignment no 1 Chapter no 3 Categorical proposition Submitted to: Sir Imran Exercise I. State the converses of the following proposition and indicate which of them are equivalent to the given proposition. 1. No people who are considerate of others are reckless drivers who pay no attention to traffic regulations. Answer: No reckless drivers who pay no attention to traffic regulation are people who are considerate of others. (Equivalent) 2. All those who pass the NDA exam are commissioned officers in Indian army. Answer: *All commissioned officer in Indian army are those who pass NDA exam. (Not equivalent) *Some commissioned officer in Indian army are those who pass NDA exam. (Limit) (Equivalent) 3. Some Korean cars are overpriced and inferior quality automobiles. Answer: Some overpriced and inferior quality automobiles are Korean cars. (Equivalent) 4. No reptiles are warm-blooded animals. Answer: No warm-blooded animals are reptiles. (Equivalent) 5. Some film producers are elderly persons who are incapable of producing works of quality anymore. Answer: Some elderly persons who are incapable of producing works of quality anymore......

Words: 525 - Pages: 3

Premium Essay

Intro Programing

...intended to encourage good programming practices using structured programming and data structuring. * 1972 - C: Developed by Dennis Ritchie and Ken Thompson at Bell Labs. It was designed to be compiled using a relatively straightforward compiler, to provide low-level access to memory, to provide language constructs that map efficiently to machine instructions, and to require minimal run-time support. * 1972 - Smalltalk: Developed by Learning Research Group (LRG) of Xerox PARC by Alan Kay, Dan Ingalls, Adele Goldberg, Ted Kaehler, Scott Wallace, and others. It was designed and created in part for educational use, more so for constructionist learning * 1972 - Prolog: Developed by Colmerauer, Roussel, and Kowalski.Was the first logic programming language. * 1973 - ML: Developed by Robin Milner. Built a polymorphic type system on top of Lisp, pioneering statically typed functional programming languages. 1980s * 1980 - C++ : Developed by Bjarne Stroustrup. The idea of creating a new language originated from Stroustrup's experience in programming for his Ph.D. thesis. It is an efficient compiler to native code, its application domains include systems software, application software, device drivers, embedded software, high-performance server and client applications * 1983 - Ada : Developed by Jean Ichbiah of CII Honeywell Bull. It has built-in language support for explicit concurrency, offering tasks, synchronous message passing, protected objects, and......

Words: 791 - Pages: 4

Premium Essay

Logic

...Part one of the video opens up by telling viewers that Aristotle is credited with formalizing logic as a discipline. Viewers are directed to the aspect of what arguments are in the area of logic. Arguments are not heated exchanges or personal assaults, but however they are a group of statements. Statements are sentences capable of being true or false. An example of a statement is saying, “All cats are vicious animals.” The next topic that is brought up in part one of the video is the subject of inference. Inference is the reasoning process of an argument. Inference can be explicit (using premise and/or conclusion indicator words) and implicit (the reader has to catch the inference). Finally the video concludes with the point that there are four non-inferences commonly mistaken for arguments these are: advice, assertion, reports, and explanations. Part two of the formal logic video is the topic of inference. As stated in the early video inference is the reasoning process of an argument. Viewers are now introduced with the topic of deductive and inductive arguments. A deductive argument means that there is no possibility of the conclusion being false when the premises are true. Inductive arguments mean that the premises merely make the conclusion likely (conclusion “goes beyond” the premises). Lastly inductive forms are arguments based on signs, prediction, and generalization just to name a few. Part three of the video talks about validity, strength, soundness, and......

Words: 423 - Pages: 2

Premium Essay

Logic

...CHAPTER 2 Identifying Arguments The starred items are also contained in the Answer Key in the back of The Power of Logic. Exercise 2.1 Part A: Arguments and Nonarguments *1. 2. 3. *4. 5. 6. *7. 8. 9. *10. 11. 12. *13. 14. 15. *16. 17. 18. *19. 20. 21. *22. 23. 24. 25. Nonargument (explanation). Nonargument (conditional statement). Nonargument (report). Argument. Conclusion: Waging war is always wrong. Nonargument (explanation). Argument. Conclusion: Today the principal threat to America is America’s public education establishment. Argument. Conclusion: Without us, light does not exist. Nonargument (conditional statement). Nonargument (report). Nonargument (explanation). Nonargument (explanation). Argument. Conclusion: The population of the world has grown both steadily and rapidly since 1950. Nonargument (report). Argument. Conclusion: James died because he was hanged. Argument. Conclusion: Not all mob bosses avoid prison. Nonargument (illustration). Nonargument (conditional). Nonargument (illustration). Nonargument (conditional). Argument. Conclusion: The U.S. policy of nuclear deterrence was immoral. Nonargument (conditional). Argument. Conclusion: The good don’t always die young. Nonargument (explanation). Argument. Conclusion: Some metals are liquids at room temperature. Argument. Conclusion: Stealing is wrong simply because society disapproves of it. Exercise 2.2 Part A: Identifying Arguments *1. 1. The defendant is insane. So, 2. The defendant is not......

Words: 5559 - Pages: 23

Free Essay

Logic

...1.2.1.AK Combinational Logic Design Introduction Combinational and sequential logic are the fundamental building blocks of digital electronics. Combinational logic, which is sometimes referred to as "combinatorial logic”, is characterized by its output being a function of the current input value. A variety of different logic gates can be used to implement combinational logic circuits. Many of these gates will be studied in future units of this course. In this introductory unit, we will limit our designs to AND, OR, and INVERTER gates for the sake of simplicity. In this activity you will use the Circuit Design Software (CDS) to build and test your first combinational logic circuits. Equipment * Circuit Design Software (CDS) Procedure Now it’s time for you to implement your first AOI combinational logic circuit. The circuit that we will use for this purpose is a Car Safety Buzzer design.The design specifications are as follows: The buzzer is on whenever the door is open or when the key is in the ignition and the seat belt is not buckled. 1. Create a table that describes these design specification in terms of “highs” (1) and “lows” (0). This is when the sensor or indicator is active or not active. Seat Belt | 0 = SEAT BELT NOT BUCKLED | | 1 = SEAT BELT BUCKLED | Key | 0 = KEY NOT IN THE IGNITION | | 1 = KEY IN THE IGNITION | Door | 0 = DOOR IS NOT OPEN | | 1 = DOOR IS OPEN | Buzzer | 0 = BUZZER is OFF | | 1 = BUZZER is ON | 2.......

Words: 690 - Pages: 3

Premium Essay

Organization of Programing Languages

...that one programing language can belong to more than one paradigm C++ C++ is a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. Some people say that C++ is a middle language because it has the features of high level and low-level language. As one of the most popular programming languages in the world, C++ is widely used in the software industry. C++ is also used for hardware design to analyze structure. Some of its application domains include systems software, application software, device drivers, embedded software, high-performance server and client applications, and entertainment software such as video games. AspectJ AspectJ is a general-purpose Aspect-Oriented extension to java programming language. It was created at Palo Alto Research Center Incorporated (PARC), now it is an open source project and part of the Eclipse Foundation. AspectJ has everything that Java has and more which means every valid Java program is also a valid AspectJ program. The main goal of AspectJ development is modularizing crosscutting concerns such as logging, error checking and handling, synchronization, context-sensitive behavior, performance optimizations, monitoring and logging, debugging support, and multi-object protocols. Aspect-oriented programming (AOP) is a programming paradigm built on top of the object oriented paradigm and aims to modularize crosscutting concerns by isolating secondary functions from the program’s business logic. AOP......

Words: 3773 - Pages: 16

Free Essay

Research Assignment 3 Intro to Programming Logic and Design

...engineering as a method is not confined to any particular purpose, but is often an important part of the scientific method and technological development. The process of taking something apart and revealing the way in which it works is often an effective way to learn how to build a technology or make improvements to it. When reverse engineering software, researchers are able to examine the strength of systems and identify their weaknesses in terms of performance, security, and interoperability. The reverse engineering process allows researchers to understand both how a program works and also what aspects of the program contribute to its not working. • What are the advantages and disadvantages of using reverse engineering to discover the logics of a software program? Reverse engineering in software is reversing a program's machine code back into it's original source code. The advantages to using this technique is that one can repair certain bugs, see how a program operates, and improve the operation              of the program. The disadvantage is that certain other bugs may be introduced              during this process. • Find any one tool available to perform reverse engineering of software programs. What are at least five features of that tool?   REC Studio 4 - Reverse Engineering Compiler Multihost: Rec Studio runs on Windows XP/Vista/7, Ubuntu Linux, Mac OS X. Symbolic information support using Dwarf 2 and partial recognition of Microsoft's PDB......

Words: 301 - Pages: 2

Premium Essay

Logic

...deserve a second chance on a new planet." "Maybe so," Claudia says in a patronizing tone."And now that you mention it, we probably have a legal obligation to let them in. Our current immigration laws say that we have to admit at least ten thousand applicants annually, from every major nation. If those aliens would just sign the right papers, we'd have to give them permanent resi­ dency. However, what worries me is, they may have the wrong intentions. After all, didn't they conduct experiments on those people they abducted?" "Yes, but don't we experiment on animals? If the animals don't complain, why should we? Also, medical experimentation often leads to wonderful new cures. I'm certain we have nothing to worry about," says Ralph, proud of his logic. "Humph! I hope you're right. Well, I've got to go now-and don't let any green men kidnap you," Claudia says with a barb. "And you, either," Ralph answers. 3.4 Fallacies of Presumption, Ambiguity, and Grammatical Analogy The fallacies of presumption include begging the question, complex question, false dichotomy, and suppressed evidence. These fallacies arise not because the premises are irrelevant to the conclusion or provide insufficient reason for believing the conclusion but because the premises presume what they purport to prove. Begging the question presumes that the premises provide adequate support for the conclusion when in fact they do not, and complex question presumes that a question can be answered by a sim­ ple......

Words: 9519 - Pages: 39

Premium Essay

Intro to Logic

...1. The following argument violates some principles of well-crafted arguments: While 1[there is much wickedness in the world,] 2[then there is also much good.] For 3[if there is evil, then there must be good,] since 4[good and evil are relative, like big and small.] And no one will deny that 5[evil exists.] Answer questions ‘a’ to ‘e’ below from the passage above. A) Write a well-crafted version of the argument, replacing the emotionally loaded verbiage with more neutral language. 1. The world has much good and evil. b) Examine each statement and explain the reference to the language and sentences used as to how you could decide whether this argument is valid or invalid. The language used is uniformed and charitable. The linkage between the premises and conclusion is not obscured. Statement 1 and 2 are true premises. Argument 3 may be classified as false because evil is not a must in this world nor is good. The argument is valid because the conclusion links to premise although some premises in the argument are false. c) Give one examples each of how hedges and assurances are used in arguments that are not well-crafted. Assurances indicate that the writer is confident in the premise or conclusion. For example: Messi and Ronaldo are good football players. Everyone knows that Messi is a better footballer than Ronaldo. The assurance in the argument above is ‘Everyone knows that’. In the argument, the writer is confident that that in his statement that......

Words: 828 - Pages: 4

Free Essay

Intro to Logic

...INTRODUCTION The Study of Logic Definition Derived from the Greek word ”logos” which means - study, reason or discourse LOGIC is the science and art of correct thinking - it is a SCIENCE because it is a systematized body of logical truths and principles governing correct thinking - as an ART, logic is a “techne” and it teaches how to make a good argument - often called the arts of arts because it develops and perfects the intellect which all artists need in their work Logic and correct thinking It is “correct” when it conforms to a pattern or to rules Example: A ruler is 12-inch long Pres. GMA is a ruler Therefore, Pres. GMA is 12-inch long -THINKING is a mental process – involves analysis, definition, classification, comparison and contrasts, etc. - It guides or directs man to form correct ideas Branches of logic FORMAL LOGIC -concerned with the aspect of form which has something to do with the correctness or sequence or the following of rules Ex. All men are mortal but Pedro is a man therefore Pedro is mortal Branches of logic MATERIAL LOGIC -concerned with the aspect of subject matter or content or truth of the argument Example: A ruler is 12-inch long Pres. GMA is a ruler Therefore, Pres. GMA is 12-inch long KINDS Deductive Logic: from more to less Inductive Logic: implies a sense of probability Concepts and terms The three essential operations of the intellect concept The......

Words: 2223 - Pages: 9

Free Essay

Programing Paradigm

...structured following the logic of prose exposition, rather than compiler convenience. 2. declarative programming, declarative programming paradigms were developed. In these languages the computer is told what the problem is, not how to solve the problem – the program is structured as a collection of properties to find in the expected result, not as a procedure to follow. Given a database or a set of rules, the computer tries to find a solution matching all the desired properties. The archetypical example of a declarative language is the fourth generation language SQL, as well as the family of functional languages and logic programming 3. functional programming , Functional programming is a subset of declarative programming. Programs written using this paradigm use functions, blocks of code intended to behave like mathematical functions. Functional languages discourage changes in the value of variables through assignment , making a great deal of use of recursion instead. 4. object-oriented programming , object-oriented languages (like Simula ,Smalltalk, C++ , C# , Eiffel and Java) were created. In these languages, data , and methods of manipulating the data, are kept as a single unit called an object . The only way that a user can access the data is via the object's" methods " (subroutines). Because of this, the internal workings of an object may be changed without affecting any code that uses the object. 5. logic programming The logic......

Words: 393 - Pages: 2

Free Essay

Logic

...Logic Application Project Student Name: _______________________, _______________________ Last Name First Name The Problem: How can you found out what cards you have? The Approach: First, we should examine the stated facts that Andy has the cards 1 3 7 while Belle has the cards 3 4 7 and Carol has the cards 4 6 8. Then the second thing we will look at is their answer on the question cards that they draw. Combining the information given and their answers on the question cards, we can figure out what is the connection of these to your own cards, and that’s how we will figure out what cards you have. Conclusion: First, by examining the stated facts that Andy has the cards 1 3 7 while Belle has the cards 3 4 7 and Carol has the cards 4 6 8, and the answer of Belle to his question card, knowing that she sees Andy, Carol and yours, she says that she sees all of them, the five odd numbers on the cards that she can see and Carol don’t have any odd number on her cards so the ones that are left is you and Andy. Andy has three odd numbers of each kind on his cards and that would leave a conclusion that you have two odd numbers on your cards. Looking back to the answer of Andy to the question “Do you see two or more players whose card sum to the same value?” and answered “Yes”, knowing that the cards he can see are yours, Belle and Carol, and the sum of Belle’s cards and Carol’s cards are not the same, we can conclude that one of them have...

Words: 982 - Pages: 4

Free Essay

Logic

... Logic Application After evaluating the game of “Guess your Card”, I assume that my cards could only be 4, 5, and 9. I came up with this logic by starting with Andy. I add all three numbers together from each player. Andy has the cards of 1, 3, and 7 with a sum of 11. Belle has the cards 3, 4, and 7 with a sum of 14, and Carol has the cards 4, 6 and 8 with a sum of 18. Since each player have a different sum I took the players with the highest sum which is Belle and Carol to see which player cards would add up with my cards. Next, Belle draw the question card, “of the five odd numbers”, how many different odd numbers do you see? She answer all of them. Only because the only odd numbers she see is from Andy and Carol which are 1, 3, and 7. That's how I came up with the numbers of 5 and 9. I then, add together 5 and 9 which is 14, let's not forget in the beginning I said the sums must add up to either 14 or 18. Since 5+9=14, and the smallest card is 1 so my cards must add up to more than 14. The sum of my cards must be 18. In order for me to find out what is my final card I must subtract 18 from 9 and 5 which gives me 4. You can also see why Andy knew what cards he had. He realize that the only odd numbers Belle could see from Carol and myself were 5 and 9, but yet she claim she could see all five odd numbers. So the remaining three: 1, 3 and 7 must have come from Andy himself. That's how he figure out what he had. The logic of......

Words: 342 - Pages: 2

ZoomBrowser EX 6.3.1 | Read More | VA - Dream Dance Vol.80 [3CD] (2016) FLAC