Premium Essay

Intorduction to Programming Logic

In: Business and Management

Submitted By phragland
Words 1820
Pages 8
Introduction to Programming Logic

Phillip M. Ragland

June 20, 2016

Individual Projects Document

Noura Abbas

Individual Project 1

There are many steps and processes to consider when designing a website for a customer. Regardless if the customer is an individual or a large corporation, the steps and processes for designing a website are pretty much the same. Each website that is designed with similar specifications. However, when it comes to the design aspects of a website, it will differ greatly from customer to customer. Some of the cues that determine the design of the website are the intended purpose of the website, the intended audience of the website, and of course the desire of the customer it is being designed for.

Here are some basic steps and processes for the design of a website:

1). Gathering information from the customer

2). Planning

3). Design

4). Development

5). Testing and delivery

6). Maintenance (iDesign Studios, 2016).

The first step (phase) for designing a website is to gather information. When gathering information, you will need to ask a lot of questions. Question such as what id the purpose of the website? Who is the audience of the website? What is the intended accomplishment of the website? Many such questions as these will need to address. The next step (phase) is planning. During the planning step, you will use the information that was gathered during the 1st phase to begin to put together an established plan to build the website. The next step (phase) is the design phase. During this phase is where the design of the website is taken into great consideration. One of the key considerations during this phase is the target audience. For example, if the target audience will be teenagers, then the website design will be focused on appealing to teenagers.…...

Similar Documents

Premium Essay


...times 4 and stores the result in a c. Divides a by 3.14 and stores the result in b d. Subtracts 8 from b and stores the result in a 8. Write a pseudocode statement that assigns the sum of 10 and 14 to the variable total. 9. Write a pseudocode statement that subtracts the variable downPayment from the variable total and assigns the result to the variable due. 11. If the following pseudocode were an actual program, what would it display? Declare Integer a = 5 Declare Integer b = 2 Declare Integer c = 3 Declare Integer result Set result = a + b * c Display result 12. If the following pseudocode were an actual program, what would it display? Declare Integer num = 99 Set num = 5 Display num PROGRAMMING EXERCISES (Input, processing, and output) 2. Sales Prediction A company has determined that its annual profit is typically 23 percent of total sales. Design a program that asks the user to enter the projected amount of total sales, and then displays the profit that will be made from that amount. Hint: Use the value 0.23 to represent 23 percent 3. Land Calculation One acre of land is equivalent to 43,560 square feet. Design a program that asks the user to enter the total square feet in a tract of land and calculates the number of acres in the tract. Hint: Divide the amount entered by 43,560 to get the number of acres. 4. Total Purchase A customer is a store is purchasing five items. Design a program that asks......

Words: 1054 - Pages: 5

Free Essay

Programming Logic and Design, 6th Edition

...Programming Logic and Design, 6th Edition Chapter 2 Exercises 1. Explain why each of the following names does or does not seem like a good variable name to you. Answer: Answers will vary. A possible solution: a. | c | – | Valid, but probably too short to be descriptive | b. | cost | – | Good | c. | costAmount | – | Good, but redundant | d. | cost amount | – | Invalid, spaces aren’t allowed | e. | cstofdngbsns | – | Valid, but difficult to read | f. | costOfDoingBusinessThisFiscalYear | – | Valid, but long and awkward | g. | costYear2012 | – | Good | h. | 2012YearCost | – | Invalid, cannot start with a digit | 17 2. If myAge and yourRate are numeric variables, and departmentName is a string variable, which of the following statements are valid assignments? If a statement is not valid, explain why not. Answer: a. | myAge = 23 | – | Valid | b. | myAge = yourRate | – | Valid | c. | myAge = departmentName | – | Invalid, cannot assign string to numeric | d. | myAge = “departmentName” | – | Invalid, cannot assign string to numeric | e. | 42 = myAge | – | Invalid, cannot assign a value to a literal constant | f. | yourRate = 3.5 | – | Valid | g. | yourRate = myAge | – | Valid | h. | yourRate = departmentName | – | Invalid, cannot assign string to numeric | i. | 6.91 = yourRate | – | Invalid, cannot assign a value to a......

Words: 1719 - Pages: 7

Premium Essay

Programming Logic and Design 6th Ed

...Programming Logic and Design, 6th Edition Chapter 5 Exercises 1. What is output by each of the pseudocode segments in Figure 5-22? Answer: a. 5, 22, 5 b. 4, 6, 7 c. 5, 6 d. Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye e. Hello Hello Hello f. Adios Adios Adios Adios Adios Adios Adios Adios 2. Design the logic for a program that outputs every number from 1 through 10. Answer: A sample solution follows Flowchart: Pseudocode: start Declarations num number housekeeping() number = 1 while number 99999 output “Please enter a valid zip code” input custZip endwhile return validateCustAge() while custAge < 10 OR custAge > 110 output “Please enter a valid customer age” input custAge endwhile return validateNumItems() Declarations num attempts = 0 num LIMIT = 2 validNumItems = 1 while (numItems < 1 OR numItems > 12) AND attempts < LIMIT output “Please reenter the number of items” input numItems attempts = attempts + 1 endwhile if attempts = 2 AND numItems < 0 then output “An invalid number of items was entered” output “This order will not be counted” validNumItems = 0 endif return housekeeping() output ZIP_PROMPT input custZip return detailLoop() output AGE_PROMPT input custAge output ITEM_PROMPT input......

Words: 1493 - Pages: 6

Premium Essay

Programming Logic

...use it as a default structure in creating two deviating figures from having Boolean system incorporated as such “If” and “then” structures that will correlate into having a rhetorical questions answerable by “yes” and “no” structure. As the plain yes or no and true or false play into scene the chart and figure moves apart as desired answers have certain consequences built. The yes or no and true or false structure will outline two deviating answers to each other that separates each other apart. This create the uniqueness in the flow diagram. As this goes, we create a flow diagram, in such we are able to see where the program will lead us. The advantage of using Pseudocode is that it does not use any syntax or structures within its programming realm. It is easy to understand because it is readable in plain text with the written flow of what needed to be applied in the program that is later applied in the flow diagram. In so speaking, any layman with no experience in computer programs would be able to read the Pseudocode system....

Words: 412 - Pages: 2

Free Essay

Algorithms and Logic for Computer Programming

...Personal Learning Management University of Phoenix Algorithms and Logic for Computer Programming PRG 211 Professor Sam March 07, 2013 Personal Learning Management Being able to develop a management tool that would allow a user or student to review course material would be very beneficial. With a course such as programming that has so much information, it is important to be able to recall information in order to properly understand how programming works. I for example, do not have any prior knowledge of so I would have to continuously refresh the information that I have learn in the reading as well as in the class room environment. I will be discussing some topics that are important to the development of such a program. In order to properly develop an application, we must first address and analyze the problem that has caused this need. In this situation, we want to design an application that will allow students to be able to review reading assignments as well as task or anything that would be beneficial to retain. Some subjects are a harder to remember than others such as programming. Modular programming would be the best fit because we would want everyone to read the material in the same order. We would set up the program so everyone’s view is the same. If we allow people to “jump around” in the programming, some learning material is going to be skipped over and that would defeat the purpose of the development of this application. Submodules would be......

Words: 480 - Pages: 2

Free Essay

Programming Logic Gate Functions in Plcs

...Programmable Logic Controllers: Hardware and Programming Chapter 7 7.1 Introduction The majority of PLC manufacturers use the ladder logic diagram programming language to program their programmable logic controllers (PLCs). Some manufacturers prefer using logic gate circuits or Boolean expressions to program their PLCs. Therefore, it is beneficial to know how to convert one type of PLC programming language to the other. In this chapter, you will learn how to create logic gate circuits from ladder logic diagrams and vice versa. You will review the functions associated with the combinational logic gates. These gates are the NOT, AND, OR, NAND, NOR, XOR, and XNOR gates. You will learn how to create PLC ladder logic diagrams that emulate the functions of these gates. Programming Logic Gate Functions in PLCs Chapter Outline 7.1 7.2 7.3 7.4 7.5 7.6 7.7 7.8 7.9 7.10 7.11 7.12 7.13 7.14 Introduction Combinational and Sequential Logic Gate Circuits Boolean Expressions, Truth Tables, and Logic Gate Circuits NOT Gates or Inverters AND Gates OR Gates NAND Gates NOR Gates XOR (Exclusive OR) Gates XNOR (Exclusive NOR) Gates Simplifying Boolean Expressions Creating PLC Ladder Logic Diagrams from Logic Gate Circuits Creating PLC Ladder Logic Diagrams from Boolean Expressions Creating Logic Gate Circuits from PLC Ladder Logic Diagrams Technical Terms combinational logic gates sequential logic devices Boolean expression Boolean algebra true state logic high false state logic......

Words: 9164 - Pages: 37

Premium Essay


...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

Programming Logic and Design

...Discussion Responses: My Teaching Philosophy My teaching philosophy is to make sure that each child gets a quality education. To what end:  My objective as a teacher is to make sure that all students are focus and on task, so that they can learn.  Also, it is important to instill in them the importance of getting an education.  I would like to teach them their academic and much more.  By what mean:  In order to teach someone you have to be taught, I do not know of anyone that was born knowing everything.  Therefore, my goal is to teach them to the best of my ability and know my job and know what I am doing. To what degree:  After teaching an individual there will come a time that they will have to show what they know.  A good way to find out that they are learning is to give an assessment or a test.  In that instance I will start evaluating them by grading.  Once I am done with the grading process, I will then know where I stand as their teacher and know where they stand as the student. Why:  I feel that there need to be quality and educated trained teachers to work hard and get the job done.  I have worked in the school system now for three years and I know it takes a good hearted person to be a teacher.  Also, I feel that one should have love and compassion for which they are reliable for.  When I do become a teacher I plan to make a difference in the education world. Zero Tolerance Policy The zero tolerance policy is definitely a great thing to have.  I feel......

Words: 388 - Pages: 2

Premium Essay

Chapter 3 Programming Logic and Design Tony Gadis Partial

...stored in ‘c’ will be: 1 4. Declare Integer age Declare Real income Declare String name Call Module1 (agem Real_Income, Name) 5. 6. 7. Debugging Exercises, p.117 (3 pts. Ea. / 12 pts. Total ) 1. 2. 3. 4. Programming Exercises, (#1 - p.117) (10 points total) #1. Kilometer Converter Design a modular program that asks the user to enter a distance in kilometers, and the converts that distance to miles. The conversion formula is as follows: Miles = Kilometers * 0.6214 Additional Instructions: 1. Design using pseudocode. 2. Use the following module names: getKilometers – read kilometers from user keyboard input and store in ‘kilometers’ variable showMiles – accepts ‘kilometers’ variable as input argument and displays the equivalent value in miles Module main () Declare Real kilometers Call getKilometers (kilometers) Call showMiles (kilometers) End Module Module getKilometers (Real Ref kilometers) Display “Enter distance in kilometers” Input kilometers End Module Module showMiles(Real Kilometers) Declare Real miles Set miles = kilometers * 0.6214 Display “That is equal “, miles, “ miles.” End Module Programming Exercises, (#2 - p.118) (15 points total) #2. Sales Tax Program Design a modular program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4 percent and the......

Words: 645 - Pages: 3

Premium Essay


...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

Free Essay

Constraint Logic Programming in Prolog: Hanjie Puzzle Solver

...Constraint Logic Programming in Prolog: Hanjie Puzzle Solver Lu´ Cleto and Jo˜o Marinheiro ıs a FEUP-PLOG, Turma 3MIEIC05, Group 23 {ei11077,ei11129} Abstract. The purpose of this project was to use constraint logic programming in Prolog to implement a solver for the 2D puzzle, Hanjie. For this purpose we used the clp(FD) library provided by SICStus Prolog 4.2.3, specifically the sum/3 and automaton/3 combinatorial constraints. The program we developed is able to solve puzzles with dimensions up to 88x88, with only one possible solution, in less than one second. When there are multiple solutions, the execution time for the obtaining the first solution varies with the number of possible solutions. These results show that the execution time of the program is primarily affected by the amount of possible results. While larger grid dimensions do increase the execution time, the increase is linear if the number of possible solutions is maintained. On the other hand, increasing the number of possible solutions will lead to an exponential growth in execution time. 1 Introduction The goal of this project is to use constraint logic programming in Prolog to develop a logic program capable of solving a decision problem in the form of the 2D puzzle, Hanjie. This puzzle consists of a rectangular grid with ’clues’ on top of every column and to the left of every row that indicate the number and length of gray blocks in that column/row. To achieve this goal, first...

Words: 9959 - Pages: 40

Free Essay

Research Assignment 3 Intro to Programming Logic and Design 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

Exponent Calculator Programming Logic and Design

...Purpose: Calculate the result of a number raised to the power of another number input by the user using iterative logic without overflow of 32-bit integers##   //Program start// START //declare variables // declare unsigned int base, exp, answer, errorInput, errorOutput Declare var string exit Global var constant int multiply = 1, maxValue = 2147483647 Set answer = 1 Set base = 1 Set exp = 1   // determine if input fits in unsigned 32 bit int and set exit sentinel // //welcome message// Display “This program will determine the value of an integer (X) raised to the power of a second integer (N).” WHILE exit !=n //set repeat of input if error message is flagged and reset error flags// DO      SET errorInput = 0      Set errorOutput = 0 //user input prompts//     Display “Please Enter first integer: “          Input base     Display “Please enter second integer: ”            Input exp IF (base,exp) >= maxValue THEN    //error message// Display “ Error! Value exceeds maximum available input. Please enter a value less than 2147483647”   SET errorInput = 1  END IF WHILE errorInput = 1 //perform calculation with iterative multiplication// //check for error outputs & unneccessary execution of loop// IF exp != 0 THEN FOR (errorOutput ! =1 && multiply maxValue THEN SET  errorOutput = 1              END IF END FOR   //end calculation and check for maximum value......

Words: 266 - Pages: 2

Free Essay


... 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

Free Essay

Algorithms and Logic for Computer Programming

...Programming Solution Part 3: Array Structure Proposal Wayne Murray Algorithms and Logic for Computer Programming (PRG 211) November 14, 2011 Professor Sprouse Array Structure Proposal In my proposal from week two I would want to find the total number of units per patient for each procedure code billed by the doctor. A parallel array consisting of a one-dimensional and a two-dimensional array in this case would be a good way to solve this problem in a simplified code format. An array would also allow all the data the user wants to input to be stored in the program for multiple queries to be run without having to re-input the data. So this module of the program will allow the user to input all the different procedure codes billed the provider and return a units-per-patient statistic for the searched procedure code. Assuming the data that the user will input is all for the same provider, the following variables will need to be declared: the procedure code, the number of patients, and the number of units billed. Two arrays will be declared as well, one for the procedure code and one for the number of patients and units. The procedure code variable and array must be setup with a string data type since there are some procedure codes that have alpha characters. The number of patients and the number of units variables, as well as their corresponding array will be setup as integer data types. Since both of those variables are of the same data type they can be combined......

Words: 728 - Pages: 3

Afterboom | christmas leslie odom jr | Correio da Manhã – 03.01.2018