CIS 512 Discussion Response

Collegeman
discussionpostresponserequirements.docx

CIS 512 discussion post responses.

"CPUs and Programming" Please respond to the following:

· From the first e-Activity, identify the following CPUs: 1) the CPU that resides on a computer that you own or a computer that you would consider purchasing, and 2) the CPU of one (1) other computer. Compare the instruction sets and clock rates of each CPU. Determine which CPU of the two is faster and why. Conclude whether or not the clock rate by itself makes the CPU faster. Provide a rationale for your response.

· From the second e-Activity, examine two (2) benefits of using planning techniques—such as writing program flowcharts, pseudocode, or other available programming planning technique—to devise and design computer programs. Evaluate the effectiveness of your preferred program planning technique, based on its success in the real world. Provide one (1) example of a real-life application of your preferred program planning technique to support your response.

MB’s post states the following:Top of Form

"CPUs and Programming" Please respond to the following:

· From the first e-Activity, identify the following CPUs: 1) the CPU that resides on a computer that you own or a computer that you would consider purchasing, and 2) the CPU of one (1) other computer. Compare the instruction sets and clock rates of each CPU. Determine which CPU of the two is faster and why. Conclude whether or not the clock rate by itself makes the CPU faster. Provide a rationale for your response.

 

The current CPU that resides in my computer is an Intel(R) Core(TM) i5-2540M CPU @ 2.60GHz, 2MB cache, 4 cores, and 8 threads

 

In comparison with my CPU to an Intel® Core™ i9-10980XE Extreme Edition Processor (24.75MB Cache, Up to 4.60 GHz), 24.75 MB Cache, 18 Cores, 36 Threads, 4.60GHz Max Turbo Frequency, XE – Extreme performance and mega-tasking, unlocked, I found the Intel i9 CPU clock speed is almost twice the speed of the CPU in my computer with a speed of 4.60GHz and cache up to 24.75 MB. This means the Intel core i9 stores more accessible data up to 24.75 MB of data on the CPU for processing and availability which is a huge amount of space for storing data directly on a CPU. The 18 cores also allows for multiple simultaneous parallel data processing through (Fetch, Decode and Execute) which increase the speed of processing data.

 

· From the second e-Activity, examine two (2) benefits of using planning techniques—such as writing program flowcharts, pseudocode, or other available programming planning technique—to devise and design computer programs. Evaluate the effectiveness of your preferred program planning technique, based on its success in the real world. Provide one (1) example of a real-life application of your preferred program planning technique to support your response.

 

Two benefits of using planning techniques to design a computer program are, to establish a frame work Architecture to provide a road map for implementation. Another benefit for planning is to provide clear logics for data input, flow and output. While flowcharts are simple with diagram, I am a detail oriented individual and would rather use pseudocode. This is because it efficient method that provides details for programmers. It also allows programmers to focus on writing the algorithm. This facilitates a layout to other programmers to follow the details for making adjustment and or continue coding your plan. My example is a simple program to draw a face.

 

// How do we get our ideas into code?

 

// Draw the face, an oval in the center

ellipse (width/2, height/2, 200, 300);

 

// Draw the two eyes, two ovals, about 2/3 up the face, and 1/5 the size of the face

ellipse (width/2 - 40, height/2 - 50, 40, 40);

ellipse (width/2 + 40, height/2 - 50, 40, 40);

 

// Draw the mouth, a line going halfway across the face, 1/3 the way up

 

           

                                                   References:

Works Cited

intel. (n.d.). Retrieved 10, 15, 2019, from intel.com: https://www.intel.com/content/www/us/en/products/processors/core/x-series.html

Planning with pseudo-code. (n.d.). Retrieved 10, 15, 2019, from Khanacademy.org: https://www.khanacademy.org/computing/computer-programming/programming/good-practices/pt/planning-with-pseudo-code

JJ’s post states the following:Top of Form

 "CPUs and Programming" Please respond to the following:

· From the first e-Activity, identify the following CPUs: 1) the CPU that resides on a computer that you own or a computer that you would consider purchasing, and 2) the CPU of one (1) another computer. Compare the instruction sets and clock rates of each CPU. Determine which CPU of the two is faster and why. Conclude whether the clock rate by itself makes the CPU faster. Provide a rationale for your response.

Specifications of the Intel Core i3-7100U

Processor Name

Intel Core i3-7100U

CPU Family

7th Generation Intel Core "Kaby Lake"

Number of Cores

Dual core / 2 threads per core

CPU Clock Speed

2.4GHz

Cache Size

3MB

Instruction Rates – MMX, SSE, SSE2, SSE3, SSE4.1, SSE4.2, EM64T, AES, AVX, AVX2, FMA3

https://laptoping.com/cpus/product/intel-core-i3-7100u/

Processor Name

Intel Core i5-7200U

CPU Family

7th Generation Intel Core "Kaby Lake"

Number of Cores

Dual core / 2 threads per core

CPU Clock Speed

2.5-3.1GHz

Cache Size

3MB

https://laptoping.com/cpus/product/intel-core-i5-7200u/

“The frequency of the Clock in the number of steps required by each instruction determine the speed with which the computer performs useful work” (Englander, 2014, p. 240).

The Intel Core i5-7200U has a base clock speed of 2.5 GHz and Turbo Boost up to 3.1 GHz.

The 2.4 GHz i3-7100U lacks Turbo Boost, which is the main reason why it lags the i5.

Englander, I. (2014). THE ARCHITECTURE OF COMPUTER HARDWARE, SYSTEMS SOFTWARE, & NETWORKING An information technology approach (fifth ed.). Hoboken, NJ: John Wiley & Sons.

· From the second e-Activity, examine two (2) benefits of using planning techniques—such as writing program flowcharts, pseudocode, or other available programming planning technique—to devise and design computer programs. Evaluate the effectiveness of your preferred program planning technique, based on its success in the real world. Provide one (1) example of a real-life application of your preferred program planning technique to support your response.

Pseudocode uses plain language with some code mixed in to explain what your app does. You should use programming terms that you know, such as loop or conditionals, and any App Inventor components that you may want to use such as List View or buttons. There aren’t many rules for how to write pseudocode but the goal is to get an idea of how your app will work before you program it.

In this app, https://technovationchallenge.org/curriculum/code-6/, the user can search a database of women scientists. The app displays the names in a ListView and the user can select a scientist to learn more about her.

Search Button

When the user hits search

The app uses a for loop to search through all of the names and descriptions stored in TinyDB

If there is a match

The app adds the scientist name to an empty list variable called searchResults

If searchResults is empty after the loop ends

The app notifies the user that there are no matches

Else

The app displays searchResults in a ListView

Scientist Selection

When the user makes a selection from ListView1

The app opens a Screen2

The app retrieves the description and name of the scientist from TinyDB

The app displays the description and name of the scientist

A flowchart is a diagram that represents an algorithm. It uses shapes and arrows to show how data moves through program. It is always read from top to bottom. Programmers use different shapes to represent different things that can happen to the data. Here is an example of an algorithm for finding out why someone's stomach hurts:

In this activity you will turn your pseudocode into a flowchart.

Put an oval around the beginning and ends of your event handler. This is called a terminal. There is often more than one ending to a flow chart. In the search button, the event handler ends either by displaying the search results in a list view or by notifying the user that there are no matches.

Put a diamond around where a decision needs to be made. This is whenever the app needs to decide true or false for a condition. Remember, conditionals can lead to more than one possibility for the ending.

Add a parallelogram around all the inputs in your code or the places where you are getting data from either the user or another place, like a website or local database.

Put a rectangle around all of the processes in your code. This is whenever your app is doing something that doesn't fall into the categories above. This could be adding items to a list or sending an alert to the user.

Connect it all together with arrows! Pay special attention to how you are drawing the arrows for loops and conditionals

https://technovationchallenge.org/curriculum/code-6/

NS’s post states the following:

· From the first e-Activity, identify the following CPUs: 1) the CPU that resides on a computer that you own or a computer that you would consider purchasing, and 2) the CPU of one (1) other computer. Compare the instruction sets and clock rates of each CPU. Determine which CPU of the two is faster and why. Conclude whether or not the clock rate by itself makes the CPU faster. Provide a rationale for your response.

The two computers utilized for comparison is the Dell XPS 13 and the HP Elite Book Folio 9470m. The Dell XPS 13 was launched in 2015 and the HP Elite Book Folio 9470m was launched in 2012. The Dell XPS CPU is Intel Core i5-6200U Processor. The Dell XPS has a 3M Cache and up to 2.80 GHz. While the HP Elite Book Folio CPU is Intel Core i5-3427U Processor. The HP Elite Book Folio also has a 3M Cache and up to 2.80 GHz. The instruction set in the Dell XPS and the HP Elite Book Folio is 64-bit. Both CPUs have 2 cores and 4 threads. The Processor Base Frequency in the Dell XPS is 2.3 GHz with a Max Turbo Frequency of 2.8 GHz. The Processor Base Frequency in the HP Elite Book Folio is 1.8 GHz with a Max Turbo Frequency of 2.8 GHz. Overall, both CPU look pretty parallel to each other. They both have 2 cores that can run 2 threads each and run 4 processes simultaneously. The main difference is that the Dell XPS 13 has a Processor Base Frequency of 2.3 GHz; in which makes it run faster. Then also the Dell XPS 13 has an Installed Memory (RAM) of 8 GB LPDDR3 (1,866MHz) while the HP has a RAM of only 8 GB DDR3.

· From the second e-Activity, examine two (2) benefits of using planning techniques—such as writing program flowcharts, pseudocode, or other available programming planning technique—to devise and design computer programs. Evaluate the effectiveness of your preferred program planning technique, based on its success in the real world. Provide one (1) example of a real-life application of your preferred program planning technique to support your response.

When it comes to utilizing Pseudocode and Flowcharts it all depends on the viewers. The (2) most common ways of planning a solution to a problem are to draw a flowchart and to write pseudocode. A flowchart is a pictorial representation of an algorithm. On the other hand, a pseudocode is an informal high-level description of an algorithm. A pseudocode is not executable on the computer. Algorithms are used in computer programming; in which are a set of instructions given to the computer to perform certain tasks. Thus, pseudocode and flowchart are two methods of representing an algorithm (University of Rhode Island, 2019). I would have to say a flowchart is best used for an audience that are beginners and don’t know about coding. The reason for that is because flowcharts have pictures and an organization that show step by step directions. Flowcharts are easy to read, understand, and follow. Whereas, pseudocode is a more complex way of planning and would be used on those who have a little more understanding with coding being it does not use pictures, it is in English-like nonstandard language.

Reference:

University of Rhode Island (URI). (2019). Computer Programming. University of Rhode Island.

Retrieved from https://homepage.cs.uri.edu/faculty/wolfe/book/Readings/Reading13.htm.