Premium Essay

Pt1420 Unit 6 Assignment

Submitted By
Words 601
Pages 3
This week’s material is pretty easy to learn. My learning strategy stayed the same from last week; read the reading material, look at the optional video lectures, answer the discussion question, program the programming assignment, take the self-quiz, etc. …

I appreciate learning about the for … each loop. I’m plenty familiar with the for loop, which iterates for a set number of loops, uses initialization, a continue condition, and updating at the top of its block; but, the for … each control structure is a alternative to for.

The for .. each loop control structure does not have as complicated continue conditions, and iterates the length of the data structure. I want to master the for .. each loop because it processes a data structure better …show more content…
I’ll keep looking for other students to post their discussion assignment, as I need to assess three student discussion posts.

This week, I feel it will be helpful to master the for .. each, while, and do … while control structures. Often, I use the for loop, and select case / switch, but the other loops escape my programming toolbox.

This week, I learned how to program with while, do … while, and for … each. These three control structures help complete processing tasks without programming a set number of iterations, or until a boolean condition is met(or not met).

Control structures that iterate a set number of times can miss processing the entirety of a data structure. Often, I use the for loop. I am very familiar with the for loop, but I want to use the other control structures more. I enjoyed learning other methods this week.

This week, the for … each loop caused me to wonder. I like thinking about putting a data structure into the top of a for … each loop, and letting the computer decide how many processing iterations to make. In my opinion, this avoids mistakes counting how many iterations to

Similar Documents

Premium Essay

Pt1420 Unit 6 Assignment

...MY DIARY 23.05.2016 (Related to 7.3.1 & 7.3.2 & 7.3.3 & 7.3.4 ) and 10.3.3 ICT. Today I started my day by marking student’s homework. Their homework topic was about connection words. There was some gaps in the sentences and students filled the gaps by connection words. After assembly, Miss B explained about the pattern of adding by 10. for example, 7- 17 – 27- 37-47-57-67-77 and she asked all students some questions related to that. after that she explained how to subtracting numbers. T O 5 8 3 1 (8 – 1 = 7) (50 – 30 =20 ) (20 +7 = 27 ) 7.3.1 L.O. I can use expanded column subtraction....

Words: 605 - Pages: 3

Premium Essay

Pt1420 Unit 6 Assignment

...1. Based on the beliefs of personal beliefs every culture has a different explanation to why people are born with disabilities. In the example of Pacific Islanders, Philipiens, and Chamorro they all have different beliefs and explanation to answer why they have been born with a disability. In comparison to American beliefs they are different because their beliefs are based on cultural assumptions. American beliefs are made by medical studies that try to explain why people are born with learning disabilities. Each culture has a different explanation for explaining why people are born with disability 2. Pacific Islander belief that the reason people are born with disability is because of an ancestor’s dishonest behavior. To work with a parent that beliefs that their child is a reflection of the behavior of an ancestor it to demonstrate to parents the students success. When addressing parents during a meeting, showing them sample work that the student has done and to show the progress they have done. As a teacher, you can not influence your personal beliefs towards a parents because teachers are trained to think with American belief and customes as a teacher it is not in our place to convince parents out of their. The best things for a teacher to do is to demonstrate how accomplished their child has become and how they have become successful. The role of a teacher is to work with the parent and child to see how the students is capable to successfully they are in school. 3. The cultural...

Words: 602 - Pages: 3

Premium Essay

Pt1420 Unit 6 Assignment

...land there was dry and gray, and everything that grew there was gradually dying. Suddenly Prince Lemon found a small lonely vegetable, which lay on the ground, leaning against a small stone and cried. “Who are you?” asked him Prince Lemon. “I'm a “Cuke”, I was left completely alone and absolutely colorless. But when I was so green!” answered the small lone vegetable. “Do not be sad now we will help you!” said Prince Lemon. “Now it's my turn to share the color! Who will help me? We need to get green!” “I'll help,” said Princess Blueberry, and gave Lemon a little blue. They took the brushes and stirred the lemon and blue in the bucket. The “Cuke” looked in the bucket and exclaimed,“Yes, this is my green color! Paint me in it soon!" Task 6 Mix most of the lemon color on the palette and the smaller part of the blue until a neutral green is obtained (in the process of work, be guided by the color of leaves or grass). Having received a green, paint Blueberry, Cuke, and Lemon. Study with the child the formula: blue (smaller part) + lemon (most) = green. After Lemon and Blueberry painted the "Cuke" in green, they saw that lonely colorless tree grows in the Royal Garden. "We still have a green color, let's paint the leaves of this tree," Prince Lemon suggested. "Of course, let's paint them," Blueberry and Raspberry agreed. "Will you colorize me too?" suddenly asked the fruit, lonely hanging on a tree. "And who are you?" Lemon asked him amazed."I am an"Orange,” answered a lonely fruit...

Words: 1016 - Pages: 5

Premium Essay

Pt1420 Unit 6 Assignment

...I have not been exposed to lot of computer science projects, only through class assignment. The hardest would be the 4th programming assignment I took in my second CS class. The objective was to write a while loop to convert numbers from decimals to any base less than 10 and a recursive function any base less than 10 to decimal in C++. For the first part of the assignment I wrote 2 different void functions to convert the decimal value to hexadecimal. I started by including my , and using namespace std The second question was a personal project to practice my recursive functions and while loops, I created a long function with long n and long c parameter as n is the number to be converted and c the base to be converted to. I added long a long increment and long result with 1 and 0 as initializers...

Words: 488 - Pages: 2

Premium Essay

Pt1420 Unit 6 Assignment

...This unit comprises one of the heavier workloads as there is a graded exam in addition to the normally required discussion, programming, learning journal assignments and associated peer assessments. However, it is fortuitous that the Christmas holiday does not fall during this unit which should allow ample time to complete the required assignments. Foremost, I commenced this unit by opening my textbook and reading the required passages as assigned by the class professor. Consequently, the chapter for this unit was primarily devoted to the discussion of functions, the advantages of applying them in code and the particulars of parameter and return value usage. Personally, I feel that function excel in numerous areas yet one in particular that stands out is their reusability factor. Once a coder has encoded and successfully debugged a function, that function is not solely restricted to the program it was originally written for. Indeed, a coder can reapply that function in other programs without the inconvenience of having to resolve the problem that the...

Words: 512 - Pages: 3

Premium Essay

Pt1420 Unit 6 Assignment

...In order to select teacher and principal participants that meet the criteria, I will work collaboratively with the Department of Human Resources and the ESOL Department to first identify schools that have an ESOL population of at least 50 percent or higher, which mirrors an important characteristic of Robinson Elementary. After schools have been identified, I will identify schools from the selection that have a principal that has been at the current school for at least 4 consecutive years with a current retention rate of 70 percent. Teacher participants will be selected from those schools. Plan for Analyses I will look for patterns in the data using central questions to focus my analysis. As Patton (2002) explains, “qualitative data describes. They take us, as readers into the time and place of the observation so that we know what it was like to have been there. They capture and communicate someone else’s experience of the world in his or her own words” (p. 47). To capture the participating teachers’ and principals responses, the interviews and observations will be transcribed and read through many times to identify categories of responses, patterns, and themes, both by participant and question. In addition, answers to the interview questions will be looked at one at a time across all participant answers to find similarities of thought. Field notes taken during the interviews will be immediately analyzed and reflections written. This process will occur after each interview...

Words: 375 - Pages: 2

Premium Essay

Pt1420 Unit 6 Assignment

...In this module we are assigned to create an interactive project. It is quite hard to describe what exactly is needed to achieve something that is interactive. According to the Oxford dictionary (2015) something interactive can be defined in two ways, as following: “Allowing a two-way flow of information between a computer and a computer-user; responding to a user’s input:” “(Of two people of things) influencing each other” This is a very broad field with possibly infinite creations, which could be classified as interactive. As a musician myself, I’m always very interested in new inventions that can help musicians be more creative or make some tasks more time efficient and more affordable. When I first heard what needs to be done I had tons of various ideas that could possibly be done using Max/MSP in the time given. I had to narrow it down quite a bit. I decided that I would like to create some kind of controller to make music-creating process using Digital Audio Workstation (DAW) even easier for many people, including me. I was thinking about what I would like to have that is not really easy accessible. Using a standard MIDI keyboard and any DAW with MIDI roll feature, almost everyone can play every instrument/synth possible, yet people still try and make a MIDI versions of real instruments, such as MIDI guitars, wind MIDI synthesizers or electric drum kits. For someone whose main instrument is guitar, at first it was bit tricky to play what I wanted on keyboard, but after...

Words: 1005 - Pages: 5

Premium Essay

Pt1420 Unit 6 Assignment

...Once upon a time in the distant, distant kingdom lived Black King and White Queen. The kingdom was in black and white, so everything has been just black, white and gray. To live in the kingdom was very sad, so over time, it left all residents, while the King and Queen did not stay in it all alone. One day, when the Black King and White Queen sitting on the porch of gray lock and wept with grief, they flew a magical Fairy. “Do not be sad,” Fairy said. ”I will help you make your kingdom color, and all the inhabitants in it will return again. And to live in it will be much brighter and more fun!“ “However, how can you help us?” asked the King and Queen. “A year later,” - said the Fairy. “You will have a son, Prince Lemon. And a year later, you will be born two daughters Twins: Princess Blueberry and Princess Raspberry. When they grow up, they will be able to share their colors with each other. And you can paint the sky and the earth and everything, even a rainbow”. The fairy waved her magic wand and flew away, dissolving in the air. A year later, the Black King and White Queen was actually born son - Prince Lemon. Task 1 Color the Prince Lemon with lemon color. Another year passed and the Black King and White Queen really had two “twin” Princess: Raspberries and Blueberries. Task 2 Color the princes Raspberry with magenta color. Color the princes Blueberry with blue color. Another year passed, and all kids have grown. They were playing, having fun and fooling around. Black...

Words: 584 - Pages: 3

Premium Essay

Pt1420 Unit 6 Assignment 1

...Scenario 6 Additionally, in order to calculate the probability that exactly 1 marriage will be in the stock, one would apply the same formula as before. Since the stock is composed only of three cards, there could only be 1 marriage. There are 22 possible cards to receive (n) which are not a marriage since there can only be 1 other card (r). It doesn't matter whether the other card would be a pair card or not since it couldn't be a marriage by itself. There are four diverse marriages which means there could be four various marriages with 1 different card from the 22 other cards. This probability is extraordinarily low. It's the lowest probability of all. From my personal experience playing this game, it seems to be true, however, in an actual game the fact that players get cards one by one and not in a row, alters the probability and decreases it even more. The probability of getting exactly 1 marriage in the stock is exceedingly low itself. Rarely does it happen, that there is a pair in the stock which supports this calculation....

Words: 463 - Pages: 2

Premium Essay

Pt1420 Unit 6 Assignment 1

...election request when needed. Finally, the system is tested against failures of the workers and of the RM. The files containing the input pairs and the processed pairs must be complete, other way a redo action runs, and if repeated pairs are found an undo action is triggered to eliminate them. 5.2. Student Perspective Even though, the project is executed and tested locally in students’ laptops, they should not consider this as a realistic test environment for a distributed system that in production environment will not run in a single computer. If tests run locally, that cannot be considered as a real assessment of a Distributed Systems project. So, going from the classroom/laptop to the cloud indeed evaluates the application of the DS concepts. 6. LESSONS LEARNED 6.1. Software Engineering From the five activities of the Software Engineering process [13], construction, and deployment are undertaken from the beginning with distributed purposes in mind. The construction rested on the development tool, node.js; whereas the deployment is subject to the cloud provisioning, whose learning has a steep learning curve at the beginning, but later it becomes a mechanical process. So, as our experience shows, a course to learn IaaS may not be needed. Instead, it is preferable to learn it as a medium to run the distributed applications. Although, node.js is a powerful tool to develop distributed applications and provides libraries focused on easing communication oriented software, coding in node...

Words: 1197 - Pages: 5

Free Essay

Pt1420 Unit 6 Assignment 1

...Week 06 Assignments Textbook Reading * Chapter 4 * Chapter 5 sections 5.1, 5.2, and 5.3 (pages 196-201) Week 06 Homework From the Gaddis textbook: * Programming Exercises 2, 6 and 9, on pages 160-161 For the Programming Exercises, design a program means write the pseudocode for the program. Except for Programming Exercise 2, your design should include multiple modules, not just main(). Upload a Microsoft Word document with the pseudocode to your shared PT1420 community website or submit a paper copy to your instructor by the beginning of the Week 7 class. Programing Exercises pg. 160-161 2. Areas of rectangles Module Main() Declare width1 integer = 0 Declare length1 integer = 0 Declare width2 integer = 0 Declare length2 integer = 0 Declare area1 integer = 0 Declare area2 integer = 0 Call rectangle1 (width1, length1, area1) Call rectangle2 (width2, length2, area2) Call comparison (rectangle1, rectangle2) Display “press enter to continue” End module Module rectangle1 (value width1 as integer, value length1 as integer, value area1 as integer) Display "Enter the width of rectangle 1” Input width1 Display "Enter the length of rectangle 1" Input length1 area1 = width1 * length1 End module Module rectangle2 (value width2 as integer, value length2 as integer, value area2 as integer) Display "Enter the width of rectangle 2” Input width2 Display "Enter the length of rectangle 2" Input length2 area2 = width2 * length2 End module ...

Words: 764 - Pages: 4

Premium Essay

Home Page » Computers and Technology Pt1420 Unit 1 in: Computers and Technology Pt1420 Unit 1 “Unit 1 Assignment 1” Itt Technical Institute Intro to Programming – Pt1420 Unit 1 Assignment 1 Short Answer Questions 1.

...Home Page » Computers and Technology Pt1420 Unit 1 In: Computers and Technology Pt1420 Unit 1 “Unit 1 Assignment 1” ITT Technical Institute Intro to Programming – PT1420 Unit 1 Assignment 1 Short Answer Questions 1. Why is the CPU the most important component in a computer? The reason the CPU is the most important component in a computer is because without the CPU you can’t run any software. 2. What number does a bit that is turned on represent? What number does a bit that is turned off represent? The number in a bit that represents a turned on position is 1. The number in a bit that represents a turned off position is 0. 3. What would call a device that works with binary data? A digital device is a device that works with binary data. 4. What are the words that make up a high-level programming language called? Keywords or Reserved Words are words that make up a high-level programming language. 5. What are short words that are used in assembly language called? Mnemonics are short words that are used in assembly language. 6. What is the difference between a compiler and an interpreter? The difference between a compiler and an interpreter is that a compiler translates high-level language into separate machine language program while an interpreter translates AND executes the instructions in a high-level language program. 7. What type of software controls the internal operations of the computer’s hardware? An operating...

Words: 393 - Pages: 2

Free Essay

Itt Technical Institute Pt1420 Unit 2

...David Camacho PT1420 Programming Lab 2.1 Display Welcome to the Fiber Optic Calculator Program. Enter company name. Enter the number of fiber optic cable needed. Multiply .87 times the feet needed for the total cost. Display the total cost of the fiber optic cable and the company name. Purpose of Variable | Variable Name | Stores cost of fiber | fiberCost | Stores the company name | firstChoice | Stores the number of feet to be installed | 50 | Stores the calculated cost of installed fiber | .87 | Display “Welcome to the Fiber Optic Calculator Program” Set fiberCost = .87 Display “What is the company name?” Input companyName Display “How many feet of fiber will be installed” Input feetInstalled Set totalCost = fiberCost * feetInstalled Display “For the company” , companyName, “the total cost will be $” , totalCost David Camacho PT1420 Lab 2.2 Flowchart David Camacho PT1420 Programming Lab 2.3 Visual Studios Program David Camacho Unit 2 HW Assignment 1 Short Answer 1.What does a professional programmer usually do first to gain an understanding of a problem? The programmer creates a design for the program, which starts by asking the customer what they need the program to accomplish. 2.What is pseudocode? Pseudocode is an informal language that has no syntax rules, and is not meant to be compiled or executed. 3.Computer programs typically perform what three steps? Step 1: Input is received. Step 2: Some...

Words: 718 - Pages: 3

Premium Essay

Nt1230 Syllabus

...Networking I Syllabus Where Does This Course Belong? 1st QTR GS1140 NT1110 GS1145 Problem Solving Theory Computer Structure and Logic Strategies for the Technical Professional 2nd QTR NT1210 Introduction to Networking NT1230 Client-Server Networking I MA1210 College Mathematics I 3rd QTR NT1310 NT1330 MA1310 4th QTR PT1420 NT1430 EN1320 5th QTR PT2520 NT2580 EN1420 6th QTR NT2640 NT2670 CO2520 7th QTR NT2799 SP2750 Physical Networking Client-Server Networking II College Mathematics II Introduction to Programming Linux Networking Composition I Database Concepts Introduction to Information Security Composition II IP Networking Email and Web Services Communications Network Systems Administration Capstone Project Group Theory The follow diagram indicates how this course relates to other courses in the NSA program: 1 Date: 8/31/2012 Client-Server Networking I Syllabus NT2799 NSA Capstone Project NT2580 Introduction to Information Security NT2670 Email and Web Services NT2640 IP Networking PT2520 Database Concepts NT1330 Client-Server Networking II NT1230 Client-Server Networking I NT1430 Linux Networking PT1420...

Words: 1834 - Pages: 8

Premium Essay

Week 1 Homework

...Unit 1 Assignment 1: Homework Ronald Pennix PT1420 1. Why is the CPU the most important component in a computer? A. The CPU is the most important component in a computer is because without it you would not be able to run any type of software on the computer. 2. What number does a bit that is turned on represent? What number does a bit that is turned off represent? A. The number a bit that is turned on represents the number 1. The number a bit that is turned off represents the number 0. 3. What would you call a device that works with binary data? A. The device that works with binary data is called Digital device. 4. What are the words that make up a high-level programming language called? A. The word that make up a high-level programming language are called Keywords or reserved words. 5. What are the short words that are used in assembly language called? A. The short words that are used in assembly language is called Mnemonics. 6. What is the difference between a compiler and an interpreter? A. A complier is a program that translates a high-level language program into a separate machine language. An interpreter is a program that both translate and executes the instructions in a high-level language program. 7. What type of software controls the internal operations of the computer’s hardware? A. The Operating systems is the software that controls the internal operations of the computer’s...

Words: 253 - Pages: 2