Sie sind auf Seite 1von 3

Discussion Question 1 Week4 In reading the article all three programming languages are general purpose languages.

C++ is an intermediate-level language that is an enhancement to the C language. The standard library for C++ incorporates the C standard library with some small modifications to make it optimized with the C++ language. Java is an object-oriented language and Python is a high-level language. All three programming languages are popular with developers. With C++ due to its large feature set and oft-perceived strict syntax, the language is overly complicated and thus difficult to fully master. Java derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Its just as complicated and difficult to use. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine regardless of computer architecture. Unlike C++ which combines the syntax for structured, generic, and object-oriented programming, Java was built almost exclusively as an object-oriented language. Python on the other hand claims to combine remarkable power with very clear syntax and its standard library is large and comprehensive. Python was intended to be a highly readable language and easy to use. It is designed to have an uncluttered visual layout, frequently using English keywords where other languages use punctuation. Python supports multiple programming paradigms, primarily but not limited to object-oriented, imperative and to a lesser extent, functional programming styles. As a programmer I would want my programs to be easy to read and to use. If an error occurs I would want the programmer that has to work on the program to be able to figure out the problem quickly and get it up and running. Discussion Question 2 Week 4 As a programmer I would agree that academic theory of software design is something a programmer should strive to have, but on the other hand it seems that the author of the article is taking the topic to the extremes by putting software design into a category that can be compared to science. Grant you having a set of guidelines and principles to follow for software design can help a programmer to develop a program that can address the issues with a solution, but programming is not a science. Creating a program is just a way for a programmer to provide a solution to an existing problem. The program is a set of instructions that tells a computer what you want it to do. The design is tested until the program meets with everybodys expectations based on the requirements set at the beginning of the development cycle. I agree the quality of a program should have good code and structure it should also be able to provide a solution, instead of programs that creates problems for a business.

Discussion Question 3 Week 4 In starting my daily routine as a diabetic. Check blood glucose and take insulin 1. Prepare blood glucose meter with testing strip 2. Prepare lancet device 3. Clean finger with alcohol 4. Inject the lancet into one finger 5. Take glucose meter with test strip and draw blood 6. Wait for results from meter 7. Clean finger again to remove blood 8. Take oral medications 9. Get insulin from refrigerator 10. Prepare syringe for shot with insulin 11. Clean arm with alcohol 12. Inject arm with insulin 13. Clean arm again

Discussion Question 4 Week4 In using Bubble Sorting in Visual Logic the only problem I can see if the program did not work would be that it didnt sort the number value that was input by a user in a random order. This program consists of three loops Outer loop, Inter loop, and a Loop to print out values. All values are random with no sequence. Pseudocode with a array: Begin Input: Howmany Make Array (List, Howmany) Loop: K 1 to Howmany Assignment: List(K) = Random(21000) + 1 Loop: Passcount Loop: K 1 to Howmany -1

1 to Howmany -1

Condition: List(K) > List(K+1)

Assignment: Temp = List (K) Assignment: List(K) = List(K+1) Assignment: List(K+1) = Temp Output: The & Howmany & random values have been sorted (Dialog Box) Loop: K 1 to Howmany (Dialog Box)

Output: List(K) End

http://www.visuallogic.org/vltutorial.html

Das könnte Ihnen auch gefallen